Similar color segmentation in an RG image.

3 views (last 30 days)
Tibor Oravecz
Tibor Oravecz on 26 Feb 2014
Answered: Image Analyst on 26 Feb 2014
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
Tibor Oravecz on 26 Feb 2014
Thanks, but I tried it, with no luck. :( Maybe I messed up something, because it clustered the colors, but not the way I wanted. For example, all four yellow fruits (the lemon and the three oranges, without the green thingy) are in the same cluster, which is right (in a way), because they are similar colors, but I'd like to segment the similar objects (like the three orenges, as you can see in the attached pictures - the first one is how I managed to segment, and the second one is how it should) not just the colors.

Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 26 Feb 2014

Community Treasure Hunt

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

Start Hunting!