Finished work on the local binarizer and renamed it to HybridBinarizer. It uses the...
authordswitkin <dswitkin@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Sun, 13 Dec 2009 21:08:57 +0000 (21:08 +0000)
committerdswitkin <dswitkin@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Sun, 13 Dec 2009 21:08:57 +0000 (21:08 +0000)
commit608fe313d82bb79f0f5a96856697bdfb4a6305d3
tree7a011019d35620b947483c50b2679f73aa2c500b
parentdb2d9dfbc5ca85836237e287cd8da84da2fb0ff4
Finished work on the local binarizer and renamed it to HybridBinarizer. It uses the old histogram for 1D and the new approach for 2D. The unit tests don't fully demonstrate how much better this is in real-world lighting, but it pretty much solves the situation of pointing at a QR Code for 30 seconds without scanning, due to a shadow or gradient.

HybridBinarizer is now the default across all the fast clients and the unit tests.

git-svn-id: http://zxing.googlecode.com/svn/trunk@1157 59b500cc-1b3d-0410-9834-0bbf25fbcc57
20 files changed:
android/src/com/google/zxing/client/android/DecodeThread.java
androidtest/src/com/google/zxing/client/androidtest/BenchmarkThread.java
core/src/com/google/zxing/common/GlobalHistogramBinarizer.java
core/src/com/google/zxing/common/HybridBinarizer.java [new file with mode: 0644]
core/src/com/google/zxing/common/LocalBlockBinarizer.java [deleted file]
core/test/data/blackbox/pdf417/01.png
core/test/src/com/google/zxing/common/AbstractBlackBoxTestCase.java
core/test/src/com/google/zxing/common/AbstractNegativeBlackBoxTestCase.java
core/test/src/com/google/zxing/datamatrix/DataMatrixBlackBox2TestCase.java
core/test/src/com/google/zxing/pdf417/PDF417BlackBox2TestCase.java
core/test/src/com/google/zxing/qrcode/QRCodeBlackBox1TestCase.java
core/test/src/com/google/zxing/qrcode/QRCodeBlackBox2TestCase.java
core/test/src/com/google/zxing/qrcode/QRCodeBlackBox3TestCase.java
core/test/src/com/google/zxing/qrcode/QRCodeBlackBox4TestCase.java
core/test/src/com/google/zxing/qrcode/QRCodeBlackBox5TestCase.java
javase/src/com/google/zxing/client/j2se/CommandLineRunner.java
javase/src/com/google/zxing/client/j2se/GUIRunner.java
javase/src/com/google/zxing/client/j2se/ImageConverter.java
zxingorg/src/com/google/zxing/web/DecodeEmailTask.java
zxingorg/src/com/google/zxing/web/DecodeServlet.java