ROLL NO: 60 Write a program for Image Negative: h=imread('cameraman.

tif'); subplot(2,2,1) imshow(h) title('Original Image') [m,n]=size(h) for i=1:m for j=1:n t(i,j)=256-1-h(i,j); end end subplot(2,2,3) imshow(t) title('Negative Image') OUTPUT:

Sign up to vote on this title
UsefulNot useful