ff.m

来自「Index to gray conversion in matlab」· M 代码 · 共 26 行

M
26
字号
close all
clear all
clc

% Load a gray scale image
I=imread('pout.tif');
%

% Show the image
figure(1);imshow(I,[]);
%

% Take the 2D Fast Fourier Transform
FI = fft2(I);
%

% Shift the DC component to the center 
SFI = fftshift(FI);
%

% Use logarithmic compression of dynamic range
% and display the image

figure(2);imshow(log(1+abs(SFI)),[]);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?