X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=cpp%2Fcore%2Fsrc%2Fzxing%2FBinarizer.cpp;h=b1d8b642df7a8293fe0ee93b1b66825632558bf8;hb=cdcad8e2af288e66a22a247235bc0f6081e95215;hp=adaab05567f289dde6ae60050561260c189adcd5;hpb=d7cf61c05100985f6dd9dddc1f4631cb690c28fa;p=zxing.git diff --git a/cpp/core/src/zxing/Binarizer.cpp b/cpp/core/src/zxing/Binarizer.cpp index adaab055..b1d8b642 100644 --- a/cpp/core/src/zxing/Binarizer.cpp +++ b/cpp/core/src/zxing/Binarizer.cpp @@ -23,25 +23,13 @@ namespace zxing { - Binarizer::Binarizer(Ref source) : source_(source), array_(NULL), matrix_(NULL) { + Binarizer::Binarizer(Ref source) : source_(source) { } Binarizer::~Binarizer() { } - Ref Binarizer::getBlackRow(int y, Ref row){ - if (array_ == NULL) - array_ = estimateBlackRow(y, row); - return array_; - } - - Ref Binarizer::getBlackMatrix() { - if (matrix_ == NULL) - matrix_ = estimateBlackMatrix(); - return matrix_; - } - - Ref Binarizer::getSource() { + Ref Binarizer::getLuminanceSource() const { return source_; }