LinearAverages Method

NI Vision for Visual Basic

LinearAverages Method

Syntax

CWIMAQVision.LinearAverages SourceImage, LinearAveragesReport [, Rectangle]

Return Type

Long

On success, this method returns 0. On failure, this method returns a negative number.

Purpose

Obsolete—Use LinearAverages2 instead. Computes the mean line profile of an image.

Remarks

Use this method with U8, I16, and SGL images.

Parameters

SourceImage As CWIMAQImage

The image on which to perform the linear average.

LinearAveragesReport As CWIMAQLinearAveragesReport

On return, a report containing information about the computed mean line profile.

Rectangle As Variant

[Optional] The rectangle that specifies the region in the image on which the mean line profile is computed.