Jump to content

Dominant color descriptor


Recommended Posts

Hi,

    How to extract and calculate dominant color in an image,using this dominant color of an image,how to create color mask image.I have attached an example image of an screw.If anyone can provide me with an algorithm for color mask image,it would be helpful.

 

 

Thank you

MADHUBALAN

post-36931-0-19353000-1370249779_thumb.p

Link to post
Hi shaun R,

                can you please breif me,How you calculated grey is a dominant color,is there any formula or method to calculate it.

 

Thanks 

MADHUBALAN

It was a joke. It is a grey-scale image, therefore it can only be grey :P

Edited by ShaunR
Link to post

Hi shaun R,

                  No,it is a color image.

 

 

Regards

MADHUBALAN

 

OK. Maybe you have taken a colour image, but you have taken a colour  picture of a grey object against a grey background. The dominant colour will still be "GREY".

 

A quick and dirty (although not foolproof) method is to just look at the mean of each colour component.

 

 

A better but much more complicated method is to use K-means clustering.

 

I don't know of any LabVIEW examples off-hand, but here is one you can translate from Python.

Link to post
OK. Maybe you have taken a colour image, but you have taken a colour  picture of a grey object against a grey background. The dominant colour will still be "GREY".

 

A quick and dirty (although not foolproof) method is to just look at the mean of each colour component.

 

attachicon.gifpng histogram color.jpg

attachicon.gifpng histogram color BD.jpg

 

A better but much more complicated method is to use K-means clustering.

 

I don't know of any LabVIEW examples off-hand, but here is one you can translate from Python.

Hi shaunR,

  I will try this,can please send the vi file of png histogram color.

Thank you

Madhubalan

Link to post
Hi shaunR,

  I will try this,can please send the vi file of png histogram color.

Thank you

Madhubalan

It comes with the IMAQ toolkit I believe.

Link to post
It comes with the IMAQ toolkit I believe.

Hi,

Color mask  and dominant color descriptor both options are not available in both labview and vision assistant..

It comes with the IMAQ toolkit I believe.

Hi,

if you could find both,can you please send me.

 

Thanks

MADHUBALAN

Link to post
OK. Maybe you have taken a colour image, but you have taken a colour  picture of a grey object against a grey background. The dominant colour will still be "GREY".

 

A quick and dirty (although not foolproof) method is to just look at the mean of each colour component.

 

attachicon.gifpng histogram color.jpg

attachicon.gifpng histogram color BD.jpg

 

A better but much more complicated method is to use K-means clustering.

 

I don't know of any LabVIEW examples off-hand, but here is one you can translate from Python.

Hi,

  In the image you posted, finding the dominant color from RGB,but if to find first 10 or 20 or..dominant color in an image,how to find it?.

Link to post
Give some more Information, what are the characteristics of your input picture, what result do you have to deliver.

 

The additional toolkit will cost you money, somehow I don't think this is an option for you.

Hi,

    Thank you for the reply.For dominant color in an image and color mask image,my project is to find the object(screw) from the other objects,i am using the technique from a paper "Fast Object Detection Based on Color Histograms and Local Binary Patterns"http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=6412323.In this paper they have to find the printer from other object,i have to find the screw instead of printer.In this paper,they are using few techniques,in which initial step is calculate color mask image show in fig 5.

 

Thank you

Madhubalan

Link to post
I guess I would try with bucket sorting the pixels. 2^24 buckets should not make a problem on a normal machine and bucket sorting is a very easy algorithm.

i am trying with k-means clustering...

Edited by Madhubalan
Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Similar Content

    • By Shaun07
      Hello All,
       
      I am new to the camera labview programming. 
       
      For my research work, I am using camera to grab the live image. I am stuck with one problem. 
      how to treat the background?
      I tried to subtract the constant value from the entire image, but with that i am loosing few of my data.
      I know one solution, but I don't know how to implement this solution. 
      Problem: how to take the values from the 4 corner of the image and subtract those value from entire image?
       
      If anybody previously develop similar stuff then please help me out for this. 
       
      Any help would be appreciate.
       
      Thanks,
      Shaun

      removebackground.vi
    • By Shaun07
      Hello All,
       
      I am trying to removing the background and normalizing the image data. I have an image which I attached here. 
      All I want as end result of normalized image with no background. 
      At last  I want to check the beam profile before and after.
       
      Is anybody previously worked on it?
      Any VI?
      Any help would be appreciate.
       
      Thanks in Advance 

    • By 花落阳关
      Hello,everyone!
      I want  to use LabVIEW to make grayscale images convert to  pseudo-color image by using lookup table.But I do not know how to use this function. How can I  customize a LUT function ?I had find a lot of lut files from imageJ ,can I load the  available lut files into LabVIEW ?Thanks! 
    • By Rakesh Kumar
      I am trying to do hand gesture recognition for any background ( not by using a single color plane behind the hand ). I am acquiring the image by using the integrated webcam that is present in my laptop. once the gestures are identified , i need to take some decisions to control someother instrument. I am trying this by using image processing techniques like edge detection, template matching etc. I am not able to find expected results..Is there any precautions to be handled to get this correct ?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.