Issue 1653 consistent interpretation of mask penalty i: applied when 5+i=5 (i=0) consecutive modules are the same

git-svn-id: https://zxing.googlecode.com/svn/trunk@2600 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen@gmail.com 2013-03-30 09:27:04 +00:00
parent fc42aacc43
commit b8873b8007

View file

@ -208,7 +208,7 @@ final class MaskUtil {
prevBit = bit; prevBit = bit;
} }
} }
if (numSameBitCells > 5) { if (numSameBitCells >= 5) {
penalty += N1 + (numSameBitCells - 5); penalty += N1 + (numSameBitCells - 5);
} }
} }