MaskUtil.applyMaskPenaltyRule3

Applies mask penalty rule 3 and returns the penalty.

Finds consecutive cells of 00001011101 or 10111010000, and gives penalty to them. If we find patterns like 000010111010000, we give penalties twice (i.e. 40 * 2).

@param ByteMatrix matrix @return integer

class MaskUtil
static
int
applyMaskPenaltyRule3

Meta