$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 {@link FinderPatternFinder}. 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.
__construct(mixed $image, mixed $startX, mixed $startY, mixed $width, mixed $height, mixed $moduleSize, mixed $resultPointCallback) : mixed
<p>Creates a finder that will look in a portion of the whole image.</p>
mixed | $image | |
mixed | $startX | |
mixed | $startY | |
mixed | $width | |
mixed | $height | |
mixed | $moduleSize | |
mixed | $resultPointCallback |
handlePossibleCenter(mixed $stateCount, mixed $i, mixed $j) : mixed
<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>
mixed | $stateCount | |
mixed | $i | |
mixed | $j |
crossCheckVertical(mixed $startI, mixed $centerJ, mixed $maxCount, mixed $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>
mixed | $startI | |
mixed | $centerJ | |
mixed | $maxCount | |
mixed | $originalStateCountTotal |
center of alignment pattern, or {@link Float#NaN} if not found