Color feature of the image

1 次查看(过去 30 天)
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

采纳的回答

Image Analyst
Image Analyst 2014-2-18
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 个评论
Image Analyst
Image Analyst 2014-2-18
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 2014-2-18
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.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by