DiscreteFourierTransformation method (Main Control)
Builder Syntax |
int DiscreteFourierTransformation(int nMinHarmonicX, int nMinHarmonicY, int nMaxHarmonicX, int nMaxHarmonicY, unsigned uFlags); |
Delphi Syntax |
Function DiscreteFourierTransformation (nMinHarmonicX: L_INT; nMinHarmonicY: L_INT; nMaxHarmonicX: L_INT; nMaxHarmonicY: L_INT; uFlags: L_UINT): L_INT; |
Overview |
Refer to Removing Noise |
Remarks
(Raster Pro and above toolkits) Computes the Discrete Fourier transform of an image or the Inverse Discrete Fourier transform as specified in the uFlags parameter.
This method converts the image from the time domain to the frequency domain and vice versa using the Discrete Fourier Transform algorithm. Use the FastFourierTransformation method to use a Fast Fourier Transform algorithm on a bitmap. Please note however, that this method does not impose the size restrictions (the width and height having to be powers of 2) that the Fast Fourier Transform method, (FastFourierTransformation method), imposes upon bitmaps.
The nMinHarmonicX, nMaxHarmonicX, nMinHarmonicY and nMaxHarmonicY parameters specify the frequency range to be computed when DFT_DFT is set in uFlags. It specifies the frequency range that will be used in the image construction when DFT_IDFT is chosen.
Before using this method, you need to use the InitFourierTransformationData method. When you are finished, you should free the allocated array by calling the FreeFourierTransformationData method.
This method does not support 12 and 16-bit grayscale and 48 and 64-bit color images. If the image is 12 and 16-bit grayscale and 48 and 64-bit color, the method will not return an error.
This method does not work on regions. If a bitmap has a region the method ignores it and processes the entire bitmap.
This method does not support signed data images. It returns the error code ERROR_SIGNED_DATA_NOT_SUPPORTED if a signed data image is passed to this method.
See Also