MATLAB: I am doing a peanut colour sorting project?can anybody help me with the code.

color spacefruitImage Processing Toolboxpeanutsortingvegetable

I have a rough code, but now I need to scan each row of the image and find HSV .please can anybody help me with the code.

Best Answer

for row_number = 1 : size(YourRGBImage, 1)
hsv_of_row = rgb2hsv( YourRGBImage(row_number, :, :));
%now what?
end