matlab图像(直方图)均衡实现

G=imread('***.JPG');
I=rgb2gray(G);
I1=G(:,:,1);
J1=histeq(I1);  
I2=G(:,:,2);
J2=histeq(I2);  
I3=G(:,:,3);
J3=histeq(I3);  

newG = ones(size(G));
newG(:,:,1)=J1;
newG(:,:,2)=J2;
newG(:,:,3)=J3;

figure()
imshow(uint8(newG))

おすすめ

転載: blog.csdn.net/ResumeProject/article/details/120933227