mirror of
https://github.com/zxing/zxing.git
synced 2024-11-09 20:44:03 -08:00
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:
parent
7726e8fcb2
commit
265036c128
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue