LinearAverages2 Method

NI Vision for Visual Basic

LinearAverages2 Method

Syntax

CWIMAQVision.LinearAverages2 SourceImage, LinearAveragesReport, Method [, Rectangle]

Return Type

Long

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

Purpose

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.

Method As CWIMAQLinearAveragesMethods

Specifies which mean line profiles the method computes.

Rectangle As Variant

[Optional] A CWIMAQRectangle object that specifies the region in the image on which the mean line profile is computed.

See Also

CWIMAQRectangle