11-25-2014 06:29 AM
hello,
Anyone can tell me how to segment a color image? This image contains red、white and black background.
I want the red and white parts, and caculate each parts' L*a*b* value.
Thank you very much.
rex
11-25-2014 12:34 PM
Sounds like maybe you don't have Image Toolbox?
Attached is a VI to convert RGB to Lab. IIRC, I think there is no one correct answer for conversion to Lab so check the formula.
To do your segmentation without the toolbox, unflatten the image cluster and decompose the RGB array into separate 2D arrays (R, G, B). Threshold your red areas by finding pixels with high R and low G and B. Find white by finding pixels with R, G, and B values all high.