imaqAverage

NI Vision for LabWindows/CVI Function

imaqAverage

Usage

int imaqAverage(Image* dest, const Image* sourceA, const Image* sourceB);

Purpose

Computes the average of two source images and places the result in the destination image.

Image Types Supported

IMAQ_IMAGE_U8, IMAQ_IMAGE_I16, IMAQ_IMAGE_SGL

Parameters

Name

Type

Description

dest Image* The destination image.
sourceA const Image* The first source image.
sourceB const Image* The second source image, which must be the same type of image as sourceA.

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