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.ImageProcessingAssembly: Cognex.VisionPro.ImageProcessing (in Cognex.VisionPro.ImageProcessing.dll) Version: 91.0.0.0
Syntax
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: CogMaskCreatorResultExceptions
| Exception | Condition |
|---|---|
| CogImageNoPixelsException | If the supplied image argument has not been allocated. |
| ArgumentNullException | If the supplied argument is null. |
| ArgumentException | If the supplied argument does not support the ICogImage interface. |
See Also