CogPMAlignRunParams ContrastThreshold Property Cognex VisionPro 9.7
Minimum acceptable contrast for a pattern instance. Only pattern instances where the average difference in pixel values across all feature boundaries exceeds the contrast threshold are considered by PMAlign. Threshold must be between 0 and 65535.

Namespace: Cognex.VisionPro.PMAlign
Assembly: Cognex.VisionPro.PMAlign (in Cognex.VisionPro.PMAlign.dll) Version: 73.0.0.0
Syntax

public double ContrastThreshold { get; set; }

Property Value

Type: Double
Events

Event TypeReason
CogPMAlignRunParams Changed

Fires when the value of this property changes.

The following state flag may be affected:

Exceptions

ExceptionCondition
ArgumentExceptionIf you attempt to set this to a value less than zero or greater than 65535.
Remarks

ArgumentException is thrown at runtime if the value is greater than 255 and the image is CogImage8Grey.
See Also