使用matlab实现直方图均衡化functionhistgramequalization(A)%对一幅图像进行直方图均衡化A=imread('barb.jpg');[m,n]=size(A);B=zeros(size(A));l=m*n;r=zeros(1,256);y=zeros(1,256);A=double(A);fori=1:mforj=1:nr(A(i,j)+1)=r(A(i,j)+1)+1;endend................