HOW CAN I PRODUCE A SEGMENTED BINARY IMAGE OF A PARTICULAR COLOR CHANNEL USING MATLAB?

7 views (last 30 days)
OK i want to come up with a function that allows me to produce a #segmented binary image of a particular color channel that am interested in and i just don't know where to begin from.
  1 Comment
Adam
Adam on 19 Jan 2018
You could start by switching Caps Lock off...
If your image has a small number of pure colours then you can just identify the rgb value of the colour you want and do an equality test on your n*m*3 image.
If you have an image that has a huge number of colours blending into each other then it is more difficult and some kind of clustering is needed, possibly after converting to greyscale or by using colour distance metrics, depending how detailed you want to be.

Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 19 Jan 2018
Try the Color Thresholder app on the Apps tab of the tool ribbon, or see the color segmentation demos in my File Exchange: https://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862&sort=downloads_desc

Community Treasure Hunt

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

Start Hunting!