Applies mask penalty rule 2 and returns the penalty.
Finds 2x2 blocks with the same color and gives penalty to them. This is
actually equivalent to the spec's rule, which is to find MxN blocks and
give a penalty proportional to (M-1)x(N-1), because this is the number of
2x2 blocks inside such a block.
Applies mask penalty rule 2 and returns the penalty.
Finds 2x2 blocks with the same color and gives penalty to them. This is actually equivalent to the spec's rule, which is to find MxN blocks and give a penalty proportional to (M-1)x(N-1), because this is the number of 2x2 blocks inside such a block.
@param ByteMatrix matrix @return integer