CogPMRedLineRunParams SearchImageMask Property Cognex VisionPro 9.8 SR1
Gets or sets the mask to be used when running CogPMRedLine. The mask allows you to identify areas of the runtime input image as "Care" or "Don't Care".

Namespace: Cognex.VisionPro.PMRedLine
Assembly: Cognex.VisionPro.PMRedLine (in Cognex.VisionPro.PMRedLine.dll) Version: 75.0.0.0
Syntax

public CogImage8Grey SearchImageMask { get; set; }

Property Value

Type: CogImage8Grey
The mask for the search image. Default value is null.
Events

Event TypeReason
ICogChangedEvent Changed Fires when this property changes. The following state flag may be affected:
Remarks

The search mask is a CogImage8Grey whose pixels must contain a either a value of zero ("Don't Care") or a value of 255 ("Care"). The mask is aligned to the InputImage as specified by the SearchImageMaskOffsetX and SearchImageMaskOffsetY values.

The search mask prevents parts of the input image from being searched by PMRedLine at runtime. Any pixel in the input image that aligns with a "Don't Care" mask pixel will be ignored by PMRedLine. Any pixel in the input image that aligns with a "Care" mask pixel (or no mask pixel at all) will be processed by PMRedLine.

See Also