Similar color segmentation in an RG image.
Show older comments
Hi! I have an RGB image with four main colors (green, orange, yellow, white-ish (the background):

I'd like to separate the fruits from the image similar to the images that I attached.
My first thought would be to decompose the image to the three color channels (R, G, B) and somehow, depending on the brightness of the images (from each channel) threshold the objects, but it gives me a very bad result... Any ideas?
Thank you so much, for advance!
2 Comments
Tibor Oravecz
on 26 Feb 2014
Answers (1)
Image Analyst
on 26 Feb 2014
0 votes
Maybe try this demo: http://www.mathworks.com/products/demos/image/color_seg_k/ipexhistology.html Or else look at the color segmentation methods in my File Exchange: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
Categories
Find more on Image Segmentation in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!