CogMaskCreator Execute Method Cognex VisionPro 9.25 SR1
Generate a mask image whose size matches that of the input image and whose contents are determined by the BackgroundMaskValue property and the contents of the MaskAreas property.

Namespace: Cognex.VisionPro.ImageProcessing
Assembly: Cognex.VisionPro.ImageProcessing (in Cognex.VisionPro.ImageProcessing.dll) Version: 93.1.0.0
Syntax

public CogMaskCreatorResult Execute(
	ICogVisionData InputVisionData
)

Parameters

InputVisionData
Type: Cognex.VisionPro ICogVisionData
This input vision data parameter determines the size of the generated mask image, and provides the 2D coordinate space tree that allows user specified regions to be interpreted correctly. As such, it must support the ICogImage interface.

Return Value

Type: CogMaskCreatorResult
Exceptions

ExceptionCondition
CogImageNoPixelsExceptionIf the supplied image argument has not been allocated.
ArgumentNullExceptionIf the supplied argument is null.
ArgumentExceptionIf the supplied argument does not support the ICogImage interface.
See Also