Core Optical, Inc.
BinaryMask GetCroppedMask Method Industrial Strength, Scientific Grade
Returns a new BinaryMask object based on a region of interest in the current BinaryMask.

Namespace: PrecisionImage.BinarizationAndMorphology
Assembly: PrecisionImage (in PrecisionImage.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax

public BinaryMask GetCroppedMask(
	Int32Rect regionOfInterest = null
)

Parameters

regionOfInterest (Optional)
Type: OnlineSystem.Windows Int32Rect
An OnlineInt32Rect type indicating the cropping region.

Return Value

A BinaryMask object consisting of the region of interest in the current BinaryMask.
Exceptions

ExceptionCondition
OnlineSystem ArgumentOutOfRangeException Thrown when regionOfInterest specifies a region not completely contained within the current BinaryMask object.
See Also