MaskUtil

Mask utility.

Members

Manifest constants

N1
enum N1;

#@+ Penalty weights from section 6.8.2.1

N2
enum N2;
Undocumented in source.
N3
enum N3;
Undocumented in source.
N4
enum N4;
Undocumented in source.

Static functions

applyMaskPenaltyRule1
int applyMaskPenaltyRule1(ByteMatrix matrix)

Applies mask penalty rule 1 and returns the penalty.

applyMaskPenaltyRule1Internal
int applyMaskPenaltyRule1Internal(ByteMatrix matrix, bool isHorizontal)

Helper function for applyMaskPenaltyRule1.

applyMaskPenaltyRule2
int applyMaskPenaltyRule2(ByteMatrix matrix)

Applies mask penalty rule 2 and returns the penalty.

applyMaskPenaltyRule3
int applyMaskPenaltyRule3(ByteMatrix matrix)

Applies mask penalty rule 3 and returns the penalty.

applyMaskPenaltyRule4
int applyMaskPenaltyRule4(ByteMatrix matrix)

Applies mask penalty rule 4 and returns the penalty.

getDataMaskBit
int getDataMaskBit(int maskPattern, int x, int y)

Returns the mask bit for "getMaskPattern" at "x" and "y".

Meta