Package boofcv.alg.fiducial.qrcode
Class QrCodeMaskPattern
java.lang.Object
boofcv.alg.fiducial.qrcode.QrCodeMaskPattern
Masks that are applied to QR codes to ensure that there are no regions with "structure" in them. Avoid
accidentally having patterns that look like a finder pattern or alignment pattern.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final QrCodeMaskPattern
static final QrCodeMaskPattern
static final QrCodeMaskPattern
static final QrCodeMaskPattern
static final QrCodeMaskPattern
static final QrCodeMaskPattern
static final QrCodeMaskPattern
static final QrCodeMaskPattern
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract int
apply
(int row, int col, int bitValue) Applies the mask to the specified bit.static QrCodeMaskPattern
lookupMask
(int maskPattern) static QrCodeMaskPattern
lookupMask
(String maskPattern) toString()
static List<QrCodeMaskPattern>
values()
-
Field Details
-
M000
-
M001
-
M010
-
M011
-
M100
-
M101
-
M110
-
M111
-
-
Constructor Details
-
QrCodeMaskPattern
protected QrCodeMaskPattern(int bits)
-
-
Method Details
-
values
-
apply
public abstract int apply(int row, int col, int bitValue) Applies the mask to the specified bit. grid coordinates are relative to top left corner (0,0)- Parameters:
row
- module rowcol
- module columnbitValue
- value of the bit. 0 or 1- Returns:
- value after masking has been applied
-
lookupMask
-
lookupMask
-
toString
-