Code:
A=imread('light-image.tif'); %needs image file “light-image.tif”
B=histeq(A);
subplot(3,3,1); %subplotting
original Image
imshow(A);
title('Original image');
subplot(3,3,2);
imhist(A);
title('Histogram of Original Image');
subplot(3,3,3);
imshow(B);
title('Equalized Image');
subplot(3,3,4);
imhist(B);
title('Equalized
Histogram'); Outputs:
Equalized Image and Histogram:
No comments:
Post a Comment