Fixed dumb bug that caused grid sampling to sample 2x too wide in the horizontal direction.

git-svn-id: https://zxing.googlecode.com/svn/trunk@7 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2007-10-26 17:52:37 +00:00
parent 7726e8fcb2
commit 265036c128

View file

@ -67,7 +67,7 @@ public final class DefaultGridSampler extends GridSampler {
int max = points.length;
float iValue = (float) i + 0.5f;
for (int j = 0; j < max; j += 2) {
points[j] = (float) j + 0.5f;
points[j] = (float) (j >> 1) + 0.5f;
points[j + 1] = iValue;
}
transform.transform(points);