imaqTruncate

NI Vision for LabWindows/CVI Function

imaqTruncate

Usage

int imaqTruncate(Image* dest, const Image* source, TruncateMode highlow, float ratioToKeep);

Purpose

Truncates the frequencies of a complex image.

Image Types Supported

IMAQ_IMAGE_COMPLEX

Parameters

Name

Type

Description

dest Image* The destination image.
source const Image* The image whose frequencies the function truncates.
highlow TruncateMode Specifies which frequencies the function truncates.
ratioToKeep float Specifies the percentage of frequencies that the function retains. For example, set this parameter to 10.0 to retain 10 percent of the frequencies and attenuate 90 percent of the frequencies.

Return Value

Type

Description

int On success, this function returns a non-zero value. On failure, this function returns 0. To get extended error information, call imaqGetLastError().