MATLAB: HELP FOR IDENTIFYING A RED APPLE FROM BLACK BACKGROUND

MATLABsegmentation

Hi.. Am trying to identify an apple from an image on black background. and then extract texture properties from it. If i convert it to gray-scale then the RGB properties will be lost. I tried segmentation..but not properly getting. So pls can any1 help me how to go about this..?

Best Answer

What texture feature are you after? Not all features will be lost upon conversion to grayscale.
By the way, I have a variety of color segmentation algorithms here http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862 but I don't think you need any color segmentation algorithm, not even Anton's, because you said you had an object on a black background. Simple gray level thresholding on a single color channel or the image you get from rgb2tiff would work fine there - no need to do complicated stuff like color segmentation. If you don't believe me then show why by posting your image.
Related Question