Package boofcv.alg.fiducial.microqr
Class MicroQrCodeMaskPattern
java.lang.Object
boofcv.alg.fiducial.microqr.MicroQrCodeMaskPattern
Masks that are applied to Micro 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 MicroQrCodeMaskPattern
static final MicroQrCodeMaskPattern
static final MicroQrCodeMaskPattern
static final MicroQrCodeMaskPattern
static final MicroQrCodeMaskPattern
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract int
apply
(int row, int col, int bitValue) Applies the mask to the specified bit.static MicroQrCodeMaskPattern
lookupMask
(int maskPattern) static MicroQrCodeMaskPattern
lookupMask
(String maskPattern) toString()
static List<MicroQrCodeMaskPattern>
values()
-
Field Details
-
M00
-
M01
-
M10
-
M11
-
NONE
-
-
Constructor Details
-
MicroQrCodeMaskPattern
protected MicroQrCodeMaskPattern(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
-