Thursday, 5 September 2013

PROGRAM TO INVERSE THE IMAGE

img=imread('img1.jpg');
gray=rgb2gray(img);

negative=255-gray;

figure
imshow(gray)
figure
imshow(negative)



No comments:

Post a Comment