final class MaskUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static int |
N1 |
private static int |
N2 |
private static int |
N3 |
private static int |
N4 |
Modifier | Constructor and Description |
---|---|
private |
MaskUtil() |
Modifier and Type | Method and Description |
---|---|
(package private) static int |
applyMaskPenaltyRule1(ByteMatrix matrix)
Apply mask penalty rule 1 and return the penalty.
|
private static int |
applyMaskPenaltyRule1Internal(ByteMatrix matrix,
boolean isHorizontal)
Helper function for applyMaskPenaltyRule1.
|
(package private) static int |
applyMaskPenaltyRule2(ByteMatrix matrix)
Apply mask penalty rule 2 and return the penalty.
|
(package private) static int |
applyMaskPenaltyRule3(ByteMatrix matrix)
Apply mask penalty rule 3 and return the penalty.
|
(package private) static int |
applyMaskPenaltyRule4(ByteMatrix matrix)
Apply mask penalty rule 4 and return the penalty.
|
(package private) static boolean |
getDataMaskBit(int maskPattern,
int x,
int y)
Return the mask bit for "getMaskPattern" at "x" and "y".
|
private static boolean |
isWhiteHorizontal(byte[] rowArray,
int from,
int to) |
private static boolean |
isWhiteVertical(byte[][] array,
int col,
int from,
int to) |
private static final int N1
private static final int N2
private static final int N3
private static final int N4
static int applyMaskPenaltyRule1(ByteMatrix matrix)
static int applyMaskPenaltyRule2(ByteMatrix matrix)
static int applyMaskPenaltyRule3(ByteMatrix matrix)
private static boolean isWhiteHorizontal(byte[] rowArray, int from, int to)
private static boolean isWhiteVertical(byte[][] array, int col, int from, int to)
static int applyMaskPenaltyRule4(ByteMatrix matrix)
static boolean getDataMaskBit(int maskPattern, int x, int y)
private static int applyMaskPenaltyRule1Internal(ByteMatrix matrix, boolean isHorizontal)