how to segment the color image and how to extract the RGB value of the whole segmented image
Show older comments
i am working on project that classification based on color, now i have an image how to extract only that image by removing all other stuff in that and please show me how to extract the RGB value of the whole fruit.
thank you in advance
Answers (1)
Image Analyst
on 7 Nov 2012
0 votes
I have three color segmentation demos in my File Exchange. One does it in RGB space, one does it in HSV space, and one does it in LAB space using the color difference metric called Delta E.
2 Comments
pradeep
on 8 Jan 2013
Image Analyst
on 8 Jan 2013
Assuming that you have any number from zero up to 7 fruits in the image and you have to figure out which types are present, and you can tell this based solely on their color, then you can run any of those demos. I'd suggest the Delta E method. You have to know in advance what the center color of the 7 fruits is and program that into the program instead of using the color taken from the mean of the region the user drew, but that's really easy. Just draw over the 7 fruits and get the mean hsv from the program and then hard code those in and comment out the part where you draw a reference region. Try it.
Categories
Find more on Image Thresholding 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!