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
See Implementation
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