qr_code v1.0.4 QRCode.DataMasking
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)
apply(qr)
apply(QRCode.QR.t()) :: QRCode.QR.t()
apply(QRCode.QR.t()) :: QRCode.QR.t()
Link to this function
best_mask(matrices, index)
best_mask(matrices, index)
best_mask(Enumerable.t(), non_neg_integer()) :: MatrixReloaded.Matrix.t()
best_mask(Enumerable.t(), non_neg_integer()) :: MatrixReloaded.Matrix.t()
Link to this function
index_best_mask(penalties)
index_best_mask(penalties)
index_best_mask(Enumerable.t()) :: non_neg_integer()
index_best_mask(Enumerable.t()) :: non_neg_integer()
Link to this function
masking_matrices(matrix)
masking_matrices(matrix)
masking_matrices(MatrixReloaded.Matrix.t()) :: Enumerable.t()
masking_matrices(MatrixReloaded.Matrix.t()) :: Enumerable.t()
Link to this function
penalty(matrix, int)
penalty(matrix, int)
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)
total_penalties(matrices)
total_penalties(Enumerable.t()) :: Enumerable.t()
total_penalties(Enumerable.t()) :: Enumerable.t()
Link to this function
total_penalty(matrix)
total_penalty(matrix)
total_penalty(MatrixReloaded.Matrix.t()) :: pos_integer()
total_penalty(MatrixReloaded.Matrix.t()) :: pos_integer()