for (int j = 0; j < width; j++) {\r
// Accumulate differences between this line and the\r
// previous line.\r
- if (bitMatrix.get(i, j) != bitMatrix.get(i - 1, j)) {\r
+ if (bitMatrix.get(j, i) != bitMatrix.get(j, i - 1)) {\r
rowDifference++;\r
}\r
}\r
if (rowDifference <= moduleWidth * MAX_ROW_DIFFERENCE) {\r
for (int j = 0; j < width; j++) {\r
// Accumulate the black pixels on this line\r
- if (bitMatrix.get(i, j)) {\r
+ if (bitMatrix.get(j, i)) {\r
rowCounters[j]++;\r
}\r
}\r