CogOCVMaxParagraphIterator GetConfusion Method (Char, Char)Cognex VisionPro
Get the computed confusion between the specified search character and the specified alphabet character. This method assumes that the character keys in the associated font correspond to Unicode code point values.

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

public double GetConfusion(
	char searchCharacter,
	char alphabetCharacter
)

Parameters

searchCharacter
Type: System Char
The search character of interest. This character must be one of the characters in the text of this paragraph. This assumes that the character keys in the associated font correspond to Unicode code point values.
alphabetCharacter
Type: System Char
The alphabet character of interest. This character must be one of the alphabet characters for this paragraph. This assumes that the character keys in the associated font correspond to Unicode code point values.

Return Value

Type: Double
A System::Double in the range from zero to one. This is the computed confusion value between the specified search character and the specified alphabet character. This value will be negative if the operator did not compute the requested confusion score. A value near one means very confusable (e.g. '5' and 'S') while a value near zero means not confusable (e.g. '5' and '1').
Exceptions

ExceptionCondition
InvalidOperationExceptionIf this paragraph iterator cannot be found.
ObjectDisposedExceptionIf the associated CogOCVMaxPattern object has already been disposed.
See Also