?? third.m
字號:
clear all;
close all;
I=imread('Lena.bmp');
rect=[210,40,15,15];
I2=imcrop(I,rect);
h=fspecial('gaussian',16,4);
r=h.*double(I2);
w=fftshift(fft2(double(r),256,256));
am=abs(w);
subplot(2,2,1);imshow(I);title('Lena原圖');
subplot(2,2,2);imshow(I2);title('截取局部圖形');
subplot(2,2,3);imshow(uint8(log(am)),[]);title('Fourier變換后');
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -