#include "BIFILTER.H"
HANDLE CALLBACK FreqDIBFFT( HANDLE hSrcDIB,
BOOL bFFTMethod)
Description
This function uses the Fast Fourier Transform (FFT) algorithm. The returning DIB contains the Fourier spectrum of the source DIB. It works with 4, 8 or 24 bits/pixel. In case of 4 or 8 bits/pixel, the source DIB must contain grayscale images and the palette values in the source DIB must be monotone increasing. It makes no sense to use this function in case of 1 bits/pixel. If the source DIB size is not a power of two, zero padding is used.
Examples
The original object and it’s power spectra.
Parameters
HANDLE |
hSrcDIB |
Source DIB |
BOOL |
bFFTMethod |
There are two ways realized to process the power spectra of an image. One uses trigonometrical sinus and cosinus functions and the other one uses square root functions. There can be different between the two ways only at the processing time. Available values: TRUE (1) - The power spectra will be processed by sinus and cosinus functions. FALSE (0) - The power spectra will be processed by square root functions. |
Return values
Handle of the newly created DIB on success or NULL on failure.
Requirements
Header : Declared in BIFilter.h; include BIFilter.h.
Library : Use BIFilter.lib.
DLLs : BIFilter.dll.