Core Optical, Inc.
BinaryMask GetSharedRegionMask Method Industrial Strength, Scientific Grade
Returns a BinaryMask consisting of the masked regions common to the two input masks.

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

public static BinaryMask GetSharedRegionMask(
	BinaryMask mask1,
	BinaryMask mask2,
	Int32Rect regionOfInterest = null
)

Parameters

mask1
Type: PrecisionImage.BinarizationAndMorphology BinaryMask
A BinaryMask type to use as one of the mask fusion sources.
mask2
Type: PrecisionImage.BinarizationAndMorphology BinaryMask
An BinaryMask type to use as one of the mask fusion sources.
regionOfInterest (Optional)
Type: OnlineSystem.Windows Int32Rect
An OnlineInt32Rect type indicating the region of interest. Coordinates are zero-index based. This parameter is optional and defaults to the entire image.

Return Value

A BinaryMask consisting of the common masked regions of the input masks.
Exceptions

ExceptionCondition
OnlineSystem ArgumentNullException Thrown when mask1 or mask2 is null.
OnlineSystem ArgumentException Thrown when the dimensions of mask1 do not match those of mask2.
OnlineSystem ArgumentOutOfRangeException Thrown when regionOfInterest specifies a region not completely contained within the input masks.
Remarks

Use this function to generate a single BinaryMask consisting of the masked regions common to the two specified input masks.
See Also