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

Inverse two-dimensional Fast Fourier Transformation from complex to real.

Pascal
function IFFT2DToReal(const Mtx: TMtx; NoScale: boolean = False): TMtx; overload;

Transformation is applied on source Mtx matrix and results are saved in the calling matrix. Source matrix must be real, if TDenseMtxVec.FFTStorageFormat was set to fsfPack or to fsfPack. Check the storage format requirements to see how the complex numbers are to be stored in a real matrix. Source matrix must be complex, if TDenseMtxVec.FFTStorageFormat was set to fsfCCS. The source matrix will not be changed. The calling matrix becomes real. Size of the calling matrix will be set to [Mtx.Rows,Mtx.Cols], if TDenseMtxVec.FFTStorageFormat was set to fsfPack or to fsfPack. Size of calling matrix will be set to [Mtx.Rows, 2*Mtx.Cols], if TDenseMtxVec.FFTStorageFormat is set to fsfCCS. All element are involved into the inverse transformation, but the number of reconstructed elements depends on the property TDenseMtxVec.FFTStorageFormat. If that property is set to fsfPerm or to fsfPack, then all elements will be reconstructed after inverse transformation. If that property is set to fsfCCS (which is default), then the number of elements which will be reconstructed depends on the property TDenseMtxVec.FFTOddLength and these rules will be followed:

  • Number of source columns and rows must be more than one. An exception will be raised otherwise;
  • if TDenseMtxVec.FFTOddLength is set to False, elements in range [0..Cols-2] x [0..Rows-2] will be reconstructed;
  • if TDenseMtxVec.FFTOddLength is set to True, elements in range [0..Cols-1] x [0..Rows-2] will be reconstructed; Here Cols and Rows are the number of columns and rows of the calling matrix after the inverse transformation.

Both properties TDenseMtxVec.FFTStorageFormat and TDenseMtxVec.FFTOddLength must be set to the same values for forward and inverse transformation to get reversible results. NoScale parameter allows the scaling to be turned off.

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