\Zxing\Qrcode\DecoderDataMask

<p>Encapsulates data masks for the data bits in a QR code, per ISO 18004:2006 6.8. Implementations of this class can un-mask a raw BitMatrix. For simplicity, they will unmask the entire BitMatrix, including areas used for finder patterns, timing patterns, etc. These areas should be unused after the point they are unmasked anyway.</p>

Note that the diagram in section 6.8.1 is misleading since it indicates that i is column position and j is row position. In fact, as the text says, i is row position and j is column position.

Summary

Methods
Properties
Constants
__construct()
Init()
forReference()
unmaskBitMatrix()
isMasked()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$DATA_MASKS
N/A

Properties

$DATA_MASKS

$DATA_MASKS : array

See ISO 18004:2006 6.8.1

Type

array

Methods

__construct()

__construct() : mixed

Returns

mixed —

Init()

Init() : void

forReference()

forReference(\Zxing\Qrcode\Decoder\a  $reference) : \Zxing\Qrcode\Decoder\DataMask

Parameters

\Zxing\Qrcode\Decoder\a $reference

value between 0 and 7 indicating one of the eight possible data mask patterns a QR Code may use

Returns

\Zxing\Qrcode\Decoder\DataMask —

encapsulating the data mask pattern

unmaskBitMatrix()

unmaskBitMatrix(\Zxing\Qrcode\Decoder\representation  $bits, \Zxing\Qrcode\Decoder\dimension  $dimension) : void

<p>Implementations of this method reverse the data masking process applied to a QR Code and make its bits ready to read.</p>

Parameters

\Zxing\Qrcode\Decoder\representation $bits

of QR Code bits

\Zxing\Qrcode\Decoder\dimension $dimension

of QR Code, represented by bits, being unmasked

isMasked()

isMasked(mixed  $i, mixed  $j) : mixed

Parameters

mixed $i
mixed $j

Returns

mixed —