CogLineMaxTool InputImageMask Property Cognex VisionPro 9.23
Gets or sets the pixel mask of the input image.

Namespace: Cognex.VisionPro.LineMax
Assembly: Cognex.VisionPro.LineMax (in Cognex.VisionPro.LineMax.dll) Version: 91.0.0.0
Syntax

public CogImage8Grey InputImageMask { get; set; }

Property Value

Type: CogImage8Grey
The inspection mask.
Events

Event TypeReason
ICogChangedEvent Changed

Fires when the value of this property changes.

The following state flag may be affected:

Remarks

Use a mask to categorize input image pixels as "Care" or "Don't Care". Mask pixels with values of 255 are defined as "Care" pixels, meaning the corresponding image pixels are processed normally. Pixels with values of 0 are defined as "Don't Care", meaning the corresponding image pixels are not considered. All other pixel values are undefined.

Mask pixels are aligned to InputImage pixels using the InputImageMaskOffsetX and InputImageMaskOffsetY values.

If the InputImageMask value is null or it is an unallocated CogImage8Grey then the entire InputImage is processed, subject to the Region property.

See Also