mirror of
https://github.com/zxing/zxing.git
synced 2025-02-02 05:41:08 -08:00
Fix typo in Aztec. Tests match Java.
git-svn-id: https://zxing.googlecode.com/svn/trunk@2491 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
c8e2721f7d
commit
885856bbc4
|
@ -46,8 +46,6 @@ Detector::Detector(Ref<BitMatrix> image):
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// using namespace std;
|
|
||||||
|
|
||||||
Ref<AztecDetectorResult> Detector::detect() {
|
Ref<AztecDetectorResult> Detector::detect() {
|
||||||
Ref<Point> pCenter = getMatrixCenter();
|
Ref<Point> pCenter = getMatrixCenter();
|
||||||
|
|
||||||
|
@ -330,7 +328,7 @@ Ref<Point> Detector::getMatrixCenter() {
|
||||||
|
|
||||||
pointA = getFirstDifferent(Ref<Point>(new Point(cx+15/2, cy-15/2)), false, 1, -1)->toResultPoint();
|
pointA = getFirstDifferent(Ref<Point>(new Point(cx+15/2, cy-15/2)), false, 1, -1)->toResultPoint();
|
||||||
pointB = getFirstDifferent(Ref<Point>(new Point(cx+15/2, cy+15/2)), false, 1, 1)->toResultPoint();
|
pointB = getFirstDifferent(Ref<Point>(new Point(cx+15/2, cy+15/2)), false, 1, 1)->toResultPoint();
|
||||||
pointC = getFirstDifferent(Ref<Point>(new Point(cx-15/2, cy+15/2)), false, -1, -1)->toResultPoint();
|
pointC = getFirstDifferent(Ref<Point>(new Point(cx-15/2, cy+15/2)), false, -1, 1)->toResultPoint();
|
||||||
pointD = getFirstDifferent(Ref<Point>(new Point(cx-15/2, cy-15/2)), false, -1, -1)->toResultPoint();
|
pointD = getFirstDifferent(Ref<Point>(new Point(cx-15/2, cy-15/2)), false, -1, -1)->toResultPoint();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue