FFT Method
Syntax
CWIMAQVision.FFT SourceImage, DestImage
Return Type
On success, this method returns 0. On failure, this method returns a negative number.
Purpose
Computes the Fourier transform of an image.
Remarks
SourceImage type must be U8, I16, SGL, or Complex. DestImage type must be Complex.
The image can be any size, but the method works faster if the image dimensions are in powers of 2. The source image and destination image must be different to perform this operation.
This function is optimized for MMX.
Parameters
SourceImage As CWIMAQImage
The source image.
DestImage As CWIMAQImage
The complex image containing the resulting FFT image.
Example
Dim i As New CWIMAQImage ' Make i a complex image. i.Type = cwimaqImageTypeComplex ' Perform an FFT on the image in Viewer1 and ' store the resulting complex image in i. CWIMAQVision1.FFT CWIMAQViewer1.Image, i