Monday 30 January 2017

Negative of an Image - MATLAB Code


Code:

A = imread(‘cameraman.jpg’);    %needs image file “cameraman.jpg”
negative = imcomplement(A);        %creating complement of image
imshow(negative);


Output:


                           Original Image                                                             Negative of Image


No comments:

Post a Comment