MaskToRegions Method

NI Vision for Visual Basic

MaskToRegions Method

Syntax

CWIMAQRegions.MaskToRegions SourceImage, MaxPointsExceeded [, ExternalEdgesOnly = True] [, MaxPoints = 2500]

Purpose

Obsolete—Use CWIMAQVision.MaskToRegions instead. Transforms an image mask into regions of interest.

Remarks

This method removes all existing regions in the collection and adds new regions to describe the mask image. This method is valid only on a regions collection that is on a viewer.

Parameters

SourceImage As CWIMAQImage

Mask image to convert to regions.

MaxPointsExceeded As Boolean

True if there are too many points to define the contour of the region of interest.

ExternalEdgesOnly As Variant

[Optional] True indicates that only external edges are to be transformed.

This parameter has a default value of True.

MaxPoints As Variant

[Optional] The maximum size of the definition of a region of interest.

This parameter has a default value of 2500.

See Also

CWIMAQVision.MaskToRegions