imaqDivideConstant2

NI Vision for LabWindows/CVI Function

imaqDivideConstant2

Usage

int imaqDivideConstant2(Image* dest, const Image* source, PixelValue value, RoundingMode roundingMode);

Purpose

Divides each pixel in an image by a constant.

Image Types Supported

IMAQ_IMAGE_U8, IMAQ_IMAGE_I16, IMAQ_IMAGE_SGL, IMAQ_IMAGE_COMPLEX, IMAQ_IMAGE_RGB

Parameters

Name

Type

Description

dest Image* The destination image.
source const Image* The image by which the function divides a scalar constant.
value PixelValue The value by which the function divides the source image. Set the member of value that corresponds to the image type.
roundingMode RoundingMode Specifies the type of rounding to use when dividing image pixels.

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