InverseFFT Method

NI Vision for Visual Basic

InverseFFT Method

Syntax

CWIMAQVision.InverseFFT SourceImage, DestImage

Return Type

Long

On success, this method returns 0. On failure, this method returns a negative number.

Purpose

Takes the inverse Fourier transform of an image.

Remarks

SourceImage must be a Complex image. DestImage must be a U8, I16, SGL, or Complex image.

SourceImage and DestImage must be different to perform this operation.

This method uses a buffer equal to the size of the complex image. An 8-bit image with a resolution of 256 × 256 pixels uses 64 KB of memory. The FFT associated with this image requires eight times the memory, or 512 KB. The calculation of the inverse FFT also requires a temporary buffer of 512 KB. Therefore, the total memory necessary for this operation is 1080 KB.

This method is optimized for MMX.

Parameters

SourceImage As CWIMAQImage

The source image.

DestImage As CWIMAQImage

The resulting image.

Example

' This example assumes that the image in Viewer1 is a complex image.
Dim i As New CWIMAQImage

' Perform an inverse FFT on the image in Viewer1.
' Store the result in i.
CWIMAQVision1.InverseFFT CWIMAQViewer1.Image, i

See Also

FFT