CxAttenuate Method

NI Vision for Visual Basic

CxAttenuate Method

Syntax

CWIMAQVision.CxAttenuate SourceImage, DestImage [, HighPass = False]

Return Type

Long

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

Purpose

Attenuates the frequencies of a complex image.

Remarks

SourceImage and DestImage must be Complex images.

Parameters

SourceImage As CWIMAQImage

The source image.

DestImage As CWIMAQImage

The resulting image.

HighPass As Variant

[Optional] Determines which frequencies to attenuate. Set this parameter to True to attenuate the high frequencies or False to attenuate the low frequencies.

This parameter has a default value of False.

Example

Dim i As New CWIMAQImage

' Make i a Complex image
i.Type = cwimaqImageTypeComplex

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