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程序如上,结果如下:
SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

更多精彩