Matlab---数字图像处理---直方图均衡化和规定化

f1= imread('16.jpg');
f2= imread('football_gray.bmp');
z1 = histeq(f1);%原图像直方图均衡化
z2 = histeq(f1,g2);%原图像直方图规定化

figure;
subplot(321);imshow(f1);title('原图像');
subplot(322);imshow(z1);title('原图像均衡化处理');
subplot(323);imhist(f1);title('原图像直方图统计');
subplot(324);imhist(z1);title('原图像均衡化后直方图统计');
subplot(325);imhist(f2);title('对比图像直方图统计');
subplot(326);imhist(z2);title('原图像规定化后直方图统计');

 

 

                                                                                                                  football_gray
posted @ 2022-05-10 11:56  JimJZY  阅读(285)  评论(0)    收藏  举报