使用matlab实现直方图均衡化
function histgramequalization(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);
for i=1:m
for j=1:n
r(A(i,j)+1)=r(A(i,j)+1)+1;
end
end
................
2019-12-21 20:06:20
754B
直方图金恒华
1