Write a MATLAB program for Histogram Equalization
Code:
clc;
clear;
I=imread('d:/matimage/his.jpg'); %Black and White image
B=histeq(I);
subplot(2,2,1),imshow(I),title('Original Image');
subplot(2,2,2),imshow(B),title('after histogram equalization');
subplot(2,2,3),imhist(I),title('Original Image');
subplot(2,2,4),imhist(B),title('after histogram equalization');
Output:
Leave a Comment