Matlab实现直方图均衡化

G=imread('aini555.jpg');
I=rgb2gray(G);
J=histeq(I);  %直方图均衡化,这一个函数就可以做到均衡化的效果
figure,
subplot(121),imshow(uint8(I));
title('原图')
subplot(122),imshow(uint8(J));
title('均衡化后')
figure,
subplot(121),imhist(I,64);
title('原图像直方图');
subplot(122),imhist(J,64);
title('均衡化后的直方图');
复制代码

matlab程序如上,结果如下:

原文地址:https://www.cnblogs.com/Ph-one/p/11567536.html