QRCode v2.0.0 QRCode.DataMasking View Source
A mask pattern changes which modules are dark and which are light according to a particular rule. The purpose of this step is to modify the QR code to make it as easy for a QR code reader to scan as possible.
Link to this section Summary
Link to this section Functions
Link to this function
apply(qr)
View Source
apply(qr)
View Source
apply(QRCode.QR.t()) :: QRCode.QR.t()
apply(QRCode.QR.t()) :: QRCode.QR.t()
Link to this function
best_mask(matrices)
View Source
best_mask(matrices)
View Source
best_mask(Enumerable.t()) :: {non_neg_integer(), MatrixReloaded.Matrix.t()}
best_mask(Enumerable.t()) :: {non_neg_integer(), MatrixReloaded.Matrix.t()}
Link to this function
masking_matrices(matrix)
View Source
masking_matrices(matrix)
View Source
masking_matrices(MatrixReloaded.Matrix.t()) :: Enumerable.t()
masking_matrices(MatrixReloaded.Matrix.t()) :: Enumerable.t()
Link to this function
penalty(matrix, int)
View Source
penalty(matrix, int)
View Source
penalty(MatrixReloaded.Matrix.t(), 1 | 2 | 3 | 4) :: non_neg_integer()
penalty(MatrixReloaded.Matrix.t(), 1 | 2 | 3 | 4) :: non_neg_integer()
Link to this function
total_penalties(matrices)
View Source
total_penalties(matrices)
View Source
total_penalties(Enumerable.t()) :: Enumerable.t()
total_penalties(Enumerable.t()) :: Enumerable.t()
Link to this function
total_penalty(matrix)
View Source
total_penalty(matrix)
View Source
total_penalty(MatrixReloaded.Matrix.t()) :: pos_integer()
total_penalty(MatrixReloaded.Matrix.t()) :: pos_integer()