Friday 27 November 2015

RGB TO BINARY USING MATLAB IN IMAGE PROCESSING



Query=> How to convert colour  image into binary image based on Threshold using MATLAB?...

Ans=> To convert colour image into binary image we have to use the syntax “im2bw”...An example is given below for reference...

a=imread('cameraman.tif');          %reading an image
b=im2bw(a,0.3);                          %coverting to binary based on Th value
figure,                                          %opening figure window
subplot(1,2,1),subimage(a);        %display colour image
subplot(1,2,2),subimage(b);        %display binary image
FOR MORE DETAILS

1 comment:

  1. hi, could you me the matlab code to my email atikahbasid@gmail.com
    thank you.

    ReplyDelete