X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=core%2Fsrc%2Fcom%2Fgoogle%2Fzxing%2Fcommon%2FHybridBinarizer.java;fp=core%2Fsrc%2Fcom%2Fgoogle%2Fzxing%2Fcommon%2FHybridBinarizer.java;h=e6a6952f02f26cd5fee8a337235a1be2859c3660;hb=ac343e4ddc7af1f54c2d2634abb1be992d183a35;hp=d8681483aa0b4ac8132688656d50d02a6884e28c;hpb=112aa0eb1c6b40b46c58f9133443fa1aa20e49fb;p=zxing.git diff --git a/core/src/com/google/zxing/common/HybridBinarizer.java b/core/src/com/google/zxing/common/HybridBinarizer.java index d8681483..e6a6952f 100644 --- a/core/src/com/google/zxing/common/HybridBinarizer.java +++ b/core/src/com/google/zxing/common/HybridBinarizer.java @@ -18,7 +18,7 @@ package com.google.zxing.common; import com.google.zxing.Binarizer; import com.google.zxing.LuminanceSource; -import com.google.zxing.ReaderException; +import com.google.zxing.NotFoundException; /** * This class implements a local thresholding algorithm, which while slower than the @@ -49,7 +49,7 @@ public final class HybridBinarizer extends GlobalHistogramBinarizer { super(source); } - public BitMatrix getBlackMatrix() throws ReaderException { + public BitMatrix getBlackMatrix() throws NotFoundException { binarizeEntireImage(); return matrix; } @@ -61,7 +61,7 @@ public final class HybridBinarizer extends GlobalHistogramBinarizer { // Calculates the final BitMatrix once for all requests. This could be called once from the // constructor instead, but there are some advantages to doing it lazily, such as making // profiling easier, and not doing heavy lifting when callers don't expect it. - private void binarizeEntireImage() throws ReaderException { + private void binarizeEntireImage() throws NotFoundException { if (matrix == null) { LuminanceSource source = getLuminanceSource(); if (source.getWidth() >= MINIMUM_DIMENSION && source.getHeight() >= MINIMUM_DIMENSION) {