24小时热门版块排行榜    

查看: 815  |  回复: 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的回帖
相关版块跳转 我要订阅楼主 采呀采芣苡 的主题更新
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 290求调剂 +3 ADT 2026-03-13 3/150 2026-03-13 10:19 by peike
[考研] 270求调剂 085600材料与化工专硕 +3 YXCT 2026-03-11 3/150 2026-03-13 10:13 by houyaoxu
[考研] 材料与化工求调剂一志愿 985 总分 295 +5 dream…… 2026-03-12 5/250 2026-03-13 10:10 by houyaoxu
[考博] 2026博士申请 +7 起泡酒 2026-03-08 7/350 2026-03-13 09:56 by mumu真真
[考博] 福州大学杨黄浩课题组招收2026年专业学位博士研究生,2026.03.20截止 +3 Xiangyu_ou 2026-03-12 3/150 2026-03-13 09:36 by duanwu655
[考研] 26调剂/材料科学与工程/总分295/求收留 +7 2026调剂侠 2026-03-12 7/350 2026-03-13 09:23 by 星空星月
[考研] 283求调剂,材料、化工皆可 +8 苏打水7777 2026-03-11 10/500 2026-03-13 09:06 by Linda Hu
[考研] 268求调剂 +3 好运连绵不绝 2026-03-12 3/150 2026-03-13 00:09 by ganguoaichi
[考研] 290 材料与化工求调剂 +8 Nebulala 2026-03-08 8/400 2026-03-12 15:19 by wyb0328
[考研] 研究生招生 +3 徐海涛11 2026-03-10 7/350 2026-03-12 14:26 by 徐海涛11
[考研] 一志愿北京化工大学材料与化工296分求调剂 +15 稻妻小编 2026-03-09 17/850 2026-03-11 22:45 by 2020015
[考研] 279求调剂 +3 莫xiao 2026-03-10 4/200 2026-03-11 08:06 by 斩魂滴兔子!
[考研] 哈工大材料324求调剂 +6 闫旭东 2026-03-10 8/400 2026-03-10 22:49 by 星空星月
[考研] 327求调剂 +3 Ffff03 2026-03-10 3/150 2026-03-10 22:30 by macy2011
[考研] 085600材料与化工 326 求调剂 +4 热爱生活ing 2026-03-09 4/200 2026-03-10 08:25 by Linda Hu
[考研] 293求调剂 +4 上班不着吉 2026-03-09 4/200 2026-03-09 22:43 by bingxueer79
[考研] 一志愿武理314求调剂 +4 ( ̄~ ̄;) 2026-03-08 5/250 2026-03-08 23:12 by L135790
[考研] 288求调剂(0703)一志愿东北大学 +5 好好- 2026-03-07 5/250 2026-03-08 18:22 by zzpnuli111
[考研] 346分材料求调剂 +5 snow_反季节版 2026-03-07 5/250 2026-03-07 22:40 by Leeding1356
[考研] 求调剂 +4 呼呼?~+123456 2026-03-06 4/200 2026-03-06 23:11 by L135790
信息提示
请填处理意见