CogOCVMaxSearchParams ContrastThreshold Property Cognex VisionPro 9.5
The ContrastThreshold applies to individual characters, and in theory if the threshold is higher than the grey level contrast of a character in the run-time image, the character will not be found. When CogOCVMaxPattern.CharacterRegistration is set to Standard, the measure of contrast is exactly that used by CogPMAlignPattern. When CogOCVMaxPattern.CharacterRegistration is set to Correlation, the measure of contrast is an approximation of that used by CogPMAlignPattern: it is approximately the average edge contrast of the character.

Namespace: Cognex.VisionPro.OCVMax
Assembly: Cognex.VisionPro.OCVMax (in Cognex.VisionPro.OCVMax.dll) Version: 69.0.0.0
Syntax

public double ContrastThreshold { get; set; }

Property Value

Type: Double
This read/write property of type Double must be greater than or equal to zero.
Events

Exceptions

ExceptionCondition
ArgumentOutOfRangeExceptionIf you attempt to set this to a value less than zero.
ObjectDisposedExceptionIf this CogOCVMaxSearchParams object has already been disposed.
See Also