文件名称:MATLAB实现的锐化
文件大小:489B
文件格式:NONE
更新时间:2014-03-26 15:58:59
锐化
function out1=shiyan2(filename) x=imread(filename); tt= histeq(x); imshow(tt); figure; x=double(x); [m,n]=size(x); a=zeros(1,256); for i=1:m for j=1:n k=x(i,j)+1; a(k)=a(k)+1; end end b(1)=a(1)/m/n; for i=2:256 b(i)=a(i)/m/n+b(i-1); end for i=1:m for j=1:n junheng(i,j)=b(x(i,j)+1)*255; end end imshow(junheng,[]);