Matlab code to get negative of an image
clear all; clc; close all; OriImg=imread('lena.tif'); %This will reads the image to i NegImg=imcomplement(OriImg); %This will moves complement of image i into y %The below statements will produce the output subplot(1,2,1);imshow(OriImg);title('Original image'); subplot(1,2,2);imshow(NegImg);title('Negative image'); RESULT:
Very informative and impressive post you have written, this is quite interesting and i have went through it completely, an upgraded information is shared, keep sharing such valuable information.
ReplyDeleteget more: Digital Image Processing