MATLAB: How can I calculate hsv value for the object of interest

colorfeature extractionfruithsvimage processingImage Processing Toolbox

Sir, I am doing fruit classification system.I finished preprocessing and segmentation using k-mean and thresholding. I think to use HSV color space for color feature. I want to know how can I calculate hsv value for the object of interest (fruit image). I find hsv value but I got the value of the whole image including background. Thank you so much,sir.

Best Answer

I do that in my HSV color segmentation demo in my file Exchange: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
Also search the forum for tag:fruit since fruit analysis seems to be one of the most popular subjects for student projects.