$image
$image :
<p>This class attempts to find alignment patterns in a QR Code. Alignment patterns look like finder patterns but are smaller and appear at regular intervals throughout the image.</p>
At the moment this only looks for the bottom-right alignment pattern.
This is mostly a simplified copy of [FinderPatternFinder](../classes/Zxing.Qrcode.Detector.FinderPatternFinder.html). It is copied, pasted and stripped down here for maximum performance but does unfortunately duplicate some code.
This class is thread-safe but not reentrant. Each thread must allocate its own object.
find() : \Zxing\Qrcode\Detector\{@link
<p>This method attempts to find the bottom-right alignment pattern in the image. It is a bit messy since it's pretty performance-critical and so is written to be fast foremost.</p>
if not found
AlignmentPattern} if found
handlePossibleCenter( $stateCount, $i, $j) : \Zxing\Qrcode\Detector\{@link
<p>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.</p>
$stateCount | ||
$i | ||
$j |
AlignmentPattern} if we have found the same pattern twice, or null if not
crossCheckVertical( $startI, $centerJ, $maxCount, $originalStateCountTotal) : \Zxing\Qrcode\Detector\vertical
<p>After a horizontal scan finds a potential alignment pattern, this method "cross-checks" by scanning down vertically through the center of the possible alignment pattern to see if the same proportion is detected.</p>
$startI | ||
$centerJ | ||
$maxCount | ||
$originalStateCountTotal |
center of alignment pattern, or {@link Float#NaN} if not found
Loading…