Color feature of the image

3 views (last 30 days)
Ivan
Ivan on 18 Feb 2014
Commented: Image Analyst on 18 Feb 2014
Hi,
I would like to obtain the color feature of the 3 images(attached) as the color of the image are quite distinctive among each other. But matlab only permit Red , Green and Blue pixel which do not relevant to this case. I am quite new to matlab programming could anyone help generate the code to obtain the color feature as one of the feature vector of the image? Thankyou in advance.
Regards, Ivan

Accepted Answer

Image Analyst
Image Analyst on 18 Feb 2014
I don't know what you mean that MATLAB only handles red, blue, and green. For 24 bit images (8 bit for each of red, green, and blue), there are 16.7 million possible colors and I deal with true color images all the time with no problem. See my color segmentation demos in my File Exchange http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
  2 Comments
Image Analyst
Image Analyst on 18 Feb 2014
Ivan answered his question as
"Thankyou Image Analyst for the response. The main idea is to differentiate the three image based on the colour present in the components automatically. Could you provide me some code or some brief idea how could it be done?"
but I moved it here since it's not an Answer to his original question but a reply to me.
Image Analyst
Image Analyst on 18 Feb 2014
All the demos in my File Exchange provide you some code. Not sure why you're asking. Maybe you don't know what the File Exchange is, but it's a way for people to provide other people with some code to do something useful. Do you want me to just open them up and paste their contents here?
Brief idea is to find a color space where you can threshold the gamut to get the colors you want, then to threshold them and extract or mask them to show only those colors.

Sign in to comment.

More Answers (0)

Categories

Find more on Image Processing Toolbox in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!