Friday, 27 November 2015

USING MATLAB COMPLEMENTING ORIGINAL IMAGE


Query=> How to convert original  image into complement image using MATLAB?...

Ans=> To convert original image into complement image we have to use the syntax “imcomplement”...An example is given below for reference...

a=imread('cameraman.tif');         %reading an image
b=imcomplement(a);                  %taking complement
figure,                                         %opening figure window
subplot(1,2,1),subimage(a);title('original image');              %display colour image
subplot(1,2,2),subimage(b);title('complement image');      %display gray image



 FOR MORE DETAILS
                                      click here

No comments:

Post a Comment