摘要:
cl;img=imread('15.bmp');%img=double(img);f=fft2(img); %傅里叶变换f=fftshift(f); %使图像对称r=real(f); %图像频域实部i=imag(f); %图像频域虚部margin=log(abs(f)); %图像幅度谱,加log便于显示phase=log(angle(f)*180/pi); %图像相位谱l=log(f); subplot(2,2,1),imshow(img),title('源图像');%subplot(2,2,2)... 阅读全文
摘要:
cl;img=imread('15.bmp');%imshow(img);[m n]=size(img);max=0;min=256;avg=0;for i=1:1:m for j=1:1:n if img(i,j)<min min=img(i,j); end if img(i,j)>max max=img(i,j); end avg=avg+double(img(i,j)); endend%avg=mean(mean(img));avg=uint8(avg/(m*n)... 阅读全文