imaqMinConstant

NI Vision for LabWindows/CVI Function

imaqMinConstant

Usage

int imaqMinConstant(Image* dest, const Image* source, PixelValue value);

Purpose

Copies the source image to the destination in the following manner: If the source image pixel value is less than the given constant, the function copies the source pixel to the destination. Otherwise the function copies the constant to the destination.

Image Types Supported

IMAQ_IMAGE_U8, IMAQ_IMAGE_I16, IMAQ_IMAGE_SGL

Parameters

Name

Type

Description

dest Image* The destination image.
source const Image* The first source image.
value PixelValue The value to use in the computation. Use the grayscale member of the PixelValue union.

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().