%直方图均衡化 MATLAB 程序实现如下:
I=imread('e:\role0\003i.bmp'); 
I=rgb2gray(I);
figure; 
subplot(2,2,1); 
imshow(I); 
subplot(2,2,2);
imhist(I); 
I1=histeq(I); 
figure; 
subplot(2,2,1); 
imshow(I1);
subplot(2,2,2); 
imhist(I1);
原文:http://blog.csdn.net/whk100312/article/details/45338409