MATLAB的原图1、原图2、图1的直方图规定化、图2的直方图规定化、图1的直方图规定化均值化、图2的直方图规定化均值化
A=imread('可爱.jpg')
B=imread('可爱1.jpg')
A1=rgb2gray(A)
B1=rgb2gray(B)
subplot(3,2,1),imshow(A1);
title('原图1')
subplot(3,2,2),imshow(B1);
title('原图2')
A2=histeq(A1,256);
B2=histeq(B1,256);
subplot(3,2,3),imhist(A1)
title('图1的直方图规定化')
subplot(3,2,4),imhist(B1)
title('图2的直方图规定化')
subplot(3,2,5),imhist(A2)
title('图1的直方图规定化均值化')
subplot(3,2,6),imhist(B2);
title('图2的直方图规定化均值化')