You are here: Symbol Reference > MtxVec Namespace > Classes > TMtx Class > public > FFT2D Method > TMtx.FFT2D Method (TMtx)
MtxVec VCL
ContentsIndex
PreviousUpNext
TMtx.FFT2D Method (TMtx)

Forward two-dimentional Fast Fourier Transformation from real/complex to complex.

Pascal
function FFT2D(const Mtx: TMtx): TMtx; overload;

The transformation is applied on data in Mtx matrix and results are saved in the calling matrix. The source matrix may be real or complex. The source matrix is not changed. The calling matrix will be complex and will be of the same size as the source matrix. (rows and cols will not chage).

var a,b: TMtx; begin CreateIt(a,b); try a.SetIt(2,4,False, [1, 2, 3, 4, -5, 6,-7, 8]); b.FFT2D(a); // result will be [(12,0), ( 0,4), (-28,0), (0,-4), ( 8,0), (-4,0), ( 24,0), (-4,0)] finally FreeIt(a,b); end; end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!