MaskUtil.applyMaskPenaltyRule4

Applies mask penalty rule 4 and returns the penalty.

Calculates the ratio of dark cells and gives penalty if the ratio is far from 50%. It gives 10 penalty for 5% distance.

@param ByteMatrix matrix @return integer

class MaskUtil
static
int
applyMaskPenaltyRule4

Meta