Wednesday, 9 July 2014

convert image to binary in vision toolbox

 a=imread('untitled1.jpg');
 hcsc = vision.ColorSpaceConverter;
hcsc.Conversion = 'RGB to intensity';
 i2 = step(hcsc, a);
imshow(i2);
 bin = step(hautoth,i2);
figure;imshow(bin);

No comments:

Post a Comment