Applies mask penalty rule 1 and returns the penalty.
Finds repetitive cells with the same color and gives penalty to them.
00000 or 11111.
@param ByteMatrix $matrix @return integer
See Implementation
Applies mask penalty rule 1 and returns the penalty.
Finds repetitive cells with the same color and gives penalty to them.