24小时热门版块排行榜    

查看: 818  |  回复: 1

采呀采芣苡

新虫 (正式写手)

[交流] 二维快速傅里叶变换 已有1人参与

想要请教一下用matlab代码处理 二维快速傅里叶变换,有时间的大佬可以联系我交流一下吗,求助

发自小木虫Android客户端
回复此楼

» 猜你喜欢

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

wangyikeco

木虫 (正式写手)

newbie


小木虫: 金币+0.5, 给个红包,谢谢回帖
fft2
2-D fast Fourier transformcollapse all in page
Syntax
Y = fft2(X)
Y = fft2(X,m,n)
Description
example
Y = fft2(X) returns the two-dimensional Fourier transform of a matrix using a fast Fourier transform algorithm, which is equivalent to computing fft(fft(X).').'. If X is a multidimensional array, then fft2 takes the 2-D transform of each dimension higher than 2. The output Y is the same size as X.

example
Y = fft2(X,m,n) truncates X or pads X with trailing zeros to form an m-by-n matrix before computing the transform. Y is m-by-n. If X is a multidimensional array, then fft2 shapes the first two dimensions of X according to m and n.

Examples
collapse all
2-D Transform
View MATLAB Command

The 2-D Fourier transform is useful for processing 2-D signals and other 2-D data such as images.

Create and plot 2-D data with repeated blocks.

P = peaks(20);
X = repmat(P,[5 10]);
imagesc(X)
Figure contains an axes. The axes contains an object of type image.

Compute the 2-D Fourier transform of the data. Shift the zero-frequency component to the center of the output, and plot the resulting 100-by-200 matrix, which is the same size as X.

Y = fft2(X);
imagesc(abs(fftshift(Y)))
Figure contains an axes. The axes contains an object of type image.

Pad X with zeros to compute a 128-by-256 transform.

Y = fft2(X,2^nextpow2(100),2^nextpow2(200));
imagesc(abs(fftshift(Y)));
Figure contains an axes. The axes contains an object of type image.

Input Arguments
collapse all
X — Input array
matrix | multidimensional array
Input array, specified as a matrix or a multidimensional array. If X is of type single, then fft2 natively computes in single precision, and Y is also of type single. Otherwise, Y is returned as type double.

Data Types: double | single | int8 | int16 | int32 | uint8 | uint16 | uint32 | logical
Complex Number Support: Yes

m — Number of transform rows
positive integer scalar
Number of transform rows, specified as a positive integer scalar.

Data Types: double | single | int8 | int16 | int32 | uint8 | uint16 | uint32 | logical

n — Number of transform columns
positive integer scalar
Number of transform columns, specified as a positive integer scalar.

Data Types: double | single | int8 | int16 | int32 | uint8 | uint16 | uint32 | logical

More About
collapse all
2-D Fourier Transform
This formula defines the discrete Fourier transform Y of an m-by-n matrix X:

Y
p+1,q+1
=
m−1

j=0
n−1

k=0
ω
jp
m
ω
kq
n
X
j+1,k+1

ωm and ωn are complex roots of unity:

ω
m
=e
−2πi/m
ω
n
=e
−2πi/n

i is the imaginary unit. p and j are indices that run from 0 to m–1, and q and k are indices that run from 0 to n–1. This formula shifts the indices for X and Y by 1 to reflect matrix indices in MATLAB®.
2楼2021-07-21 00:25:42
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 采呀采芣苡 的主题更新
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 学硕285求调剂 +10 Wisjxn 2026-03-12 27/1350 2026-03-13 13:50 by JourneyLucky
[考研] 材料与化工(0856)304求B区调剂 +3 邱gl 2026-03-12 3/150 2026-03-13 12:27 by 科研小拿拿
[考研] 工科调剂 +3 Jiang191123! 2026-03-11 3/150 2026-03-13 11:21 by houyaoxu
[考研] 289求调剂 +3 李政莹 2026-03-12 3/150 2026-03-13 11:02 by 求调剂zz
[考研] 0817化学工程与技术考研312分调剂 +3 T123 tt 2026-03-12 3/150 2026-03-13 10:49 by houyaoxu
[考研] 材料专硕274一志愿陕西师范大学求调剂 +4 薛云鹏 2026-03-13 4/200 2026-03-13 10:40 by 学员8dgXkO
[基金申请] 国自科面上基金字体 +3 iwuli 2026-03-12 3/150 2026-03-12 22:43 by lfy8008
[考研] 工科278分求调剂 +4 周慢热啊 2026-03-12 6/300 2026-03-12 15:49 by Equinoxhua
[考博] 读博申请 +5 感dd 2026-03-10 7/350 2026-03-11 17:02 by QGZDSYS
[考研] 泣血叩求调剂恩,愿以丹心报师恩 +5 Iuruoh 2026-03-11 5/250 2026-03-11 16:19 by 暖阳芬芳
[考研] 材料工程307,求调剂 +7 我要燃烧你的梦 2026-03-08 7/350 2026-03-11 09:09 by 剑诗杜康
[考研] 298求调剂 +3 Vv呀! 2026-03-10 3/150 2026-03-10 22:40 by 剑诗杜康
[考博] 26申博求助 +3 跳跃饼干 2026-03-10 4/200 2026-03-10 21:15 by Tntcnn
[考研] 求调剂材料专硕293 +6 段_(:з」∠)_ 2026-03-10 6/300 2026-03-10 18:22 by ms629
[考研] 08工科 +5 li李乐成 2026-03-06 5/250 2026-03-10 14:51 by 在风落中
[考研] 320求调剂 +4 魏zy 2026-03-08 4/200 2026-03-09 16:14 by ruiyingmiao
[考研] 334求调剂 +5 Trying] 2026-03-07 5/250 2026-03-09 14:47 by ruiyingmiao
[考研] 求调剂,数一英一274分 +4 小菲会努力 2026-03-08 4/200 2026-03-09 12:40 by 一定上岸哟_
[考研] 求调剂,一志愿江南大学,食品科学与工程,总分,320 +3 yyyyyukino 2026-03-07 3/150 2026-03-08 23:07 by 清风月
[考研] 材料化工求调剂 +7 博斯特525 2026-03-06 8/400 2026-03-08 03:51 by lfhuang
信息提示
请填处理意见