imaqAverageConstant
Usage
int imaqAverageConstant(Image* dest, const Image* source, PixelValue value);
Purpose
Computes the average between a source image and a constant and places the result into a destination image.
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 source image. |
value | PixelValue | The value to average with the source image. 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(). |