\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

See ISO 18004:2006 6.8.1

Methods

__construct()

__construct() : mixed

Returns

mixed —

Init()

Init() : mixed

Returns

mixed —

forReference()

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

Parameters

mixed $reference

Returns

\Zxing\Qrcode\Decoder\DataMask —

encapsulating the data mask pattern

unmaskBitMatrix()

unmaskBitMatrix(mixed  $bits, mixed  $dimension) : mixed

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

Parameters

mixed $bits
mixed $dimension

Returns

mixed —

isMasked()

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

Parameters

mixed $i
mixed $j

Returns

mixed —