Deric Law wrote:
> dear all,
> i'm trying to convert a colourful image into different binary
> for each of its colour.
> how can i read a HSV image and determine how many level of hue
> in that image?
> then display it according to its binary images for each hue level.
> thanks of your help
Read in your image as a RGB image
Image_rgb = imread(MyImage.jpg);
Convert it to hsv
Image_hsv = rgb2hsv(Image_rgb);
Extract yout hue image
Image_hue = Image_hsv(:,:,1);
You can use imhist to extract the information regarding your occupied
Getting the binary images of each hue level can be done using im2bw.
Hope that helps