TAlignmentPatternFinder.handlePossibleCenter Method

Definition

This is called when a horizontal scan finds a possible alignment pattern. It will cross check with a vertical scan, and if successful, will see if this pattern had been found on a previous horizontal scan. If so, we consider it confirmed and conclude we have found the alignment pattern.

Delphi
function handlePossibleCenter(const stateCount: TArray<Integer>; const i: Integer; const j: Integer): IAlignmentPattern

Parameters

stateCount
TArray<Integer>

reading state module counts from horizontal scan

i
Integer

row where alignment pattern may be found

j
Integer

end of possible alignment pattern in row

Returns

IAlignmentPattern

{@link TAlignmentPattern} if we have found the same pattern twice, or null if not