C# port, QRCode finder pattern update based on r814 update

git-svn-id: https://zxing.googlecode.com/svn/trunk@819 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
mfzpeyo 2009-01-09 17:24:25 +00:00
parent 54164f7cce
commit 57afc8d154

View file

@ -408,10 +408,10 @@ namespace com.google.zxing.qrcode.detector
// How far down can we skip before resuming looking for the next
// pattern? In the worst case, only the difference between the
// difference in the x / y coordinates of the two centers.
// This is the case where you find top left first. Draw it out.
// This is the case where you find top left last.
hasSkipped = true;
return (int) (Math.Abs(firstConfirmedCenter.getX() - center.getX()) -
Math.Abs(firstConfirmedCenter.getY() - center.getY()));
Math.Abs(firstConfirmedCenter.getY() - center.getY())) / 2;
}
}
}