Core Optical, Inc.
BinaryMask GetFusedMask Method Industrial Strength, Scientific Grade
Returns a single BinaryMask consisting of the fused masked regions of 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 GetFusedMask(
	BinaryMask mask1,
	BinaryMask mask2,
	bool fuseMaskedRegions = true,
	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.
fuseMaskedRegions (Optional)
Type: OnlineSystem Boolean
A OnlineBoolean type indicating whether to fuse the masked regions (true) or fuse the unmasked regions (false) of the two input masks. If true, the output BinaryMask will be masked at any location where either of the input masks is masked. If false, the output BinaryMask will be unmasked at any location where either of the input masks is unmasked. The default value is true.
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 fused 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 either the fused masked regions or the fused unmasked regions of the two specified input masks.
See Also