clear all; d0=50; I=imread('mod.bmp'); max_i=max(max(max(I))); min_i=min(min(min(I))); i_normal_one=double(255.*((I-min_i)/(max_i-min_i))); imshow(I,'initialmagnification','fit');title('original'); H=[0 -1 0;-1 5 -1;0 -1 0]; J=imfilter(I,H); figure,imshow(J); figure,imhist(J); K=imadjust(J,[0.0 0.2],[]); figure,imhist(K); figure,imshow(K);
|