CxFlipFrequency Method

NI Vision for Visual Basic

CxFlipFrequency Method

Syntax

CWIMAQVision.CxFlipFrequency SourceImage, DestImage

Return Type

Long

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

Purpose

Transposes the high and low frequencies of a complex image.

The method flips the high and low frequency components of an FFT image to produce a central, symmetric representation of the spatial frequencies.

Remarks

All images must be Complex.

Parameters

SourceImage As CWIMAQImage

The source image.

DestImage As CWIMAQImage

The resulting image.

Example

Dim i As New CWIMAQImage

' Make i a Complex image
i.Type = cwimaqImageTypeComplex

' Flip the frequencies of the Complex image in Viewer1.
' Store the result in i.
CWIMAQVision1.CxFlipFrequency CWIMAQViewer1.Image, i