You are here: Symbol Reference > MtxExpr Namespace > Classes > Matrix Record > public > FFT2DFromReal Method > Matrix.FFT2DFromReal Method (TMtx)
MtxVec VCL
ContentsIndex
PreviousUpNext
Matrix.FFT2DFromReal Method (TMtx)

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

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

The transformation is applied on the Mtx matrix and results are saved in the calling matrix. The Mtx matrix must be real. And exception will be raised if the source matrix is complex. The source matrix will not be changed. The calling matrix will be real and will be resized up to [Mtx.Rows,Mtx.Cols], if FFTStorageFormat is set to fsfPack or to fsfPack. If FFTStorageFormat is set to fsfCCS, calling matrix will be complex and will be resized up to [Mtx.Rows, Mtx.Cols div 2]. The number of element which are involved in transformation depends on the property FFTStorageFormat. If that property is set to fsfPerm or to fsfPack, then all the source elements are involved into the trasformation. If that property is set to fsfCCS (which is default), then the number of elements which are involved into the transformation depends on the property FFTOddLength and these rules will be followed: 

 

  • Number of source columns must be even and more then two. Number of source rows must be more than two. Exception will be raised otherwise;
  • if FFTOddLength is set to False, elements from range [0..Mtx.Cols-2] x [0..Mtx.Rows-2] will be involved into transformation;
  • if FFTOddLength is set to True, elements from range [0..Mtx.Cols-1] x [0..Mtx.Rows-2] will be involved into transformation;

Not all source elements are involved into transformation but all elements in the result matrix are needed for the inverse transformation.

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!