You are on page 1of 1

MATLAB Code:

clc
clear all
A = imread ('C:\Users\mrasr\Desktop\Kingfisher.jpg');

subplot(2,2,1);
imshow(A);
title('Original Image');

B=imadjust(A,[0 1],[1 0]);


subplot(2,2,2);
imshow(B);
title('Negative Image');

C=rgb2gray(A);
subplot(2,2,3);
imhist(C);
title ('Histogram of the Image');

OutPut:

You might also like