Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Binarizer.h
00001 #ifndef BINARIZER_H_ 00002 #define BINARIZER_H_ 00003 00004 /* 00005 * Binarizer.h 00006 * zxing 00007 * 00008 * Copyright 2010 ZXing authors All rights reserved. 00009 * 00010 * Licensed under the Apache License, Version 2.0 (the "License"); 00011 * you may not use this file except in compliance with the License. 00012 * You may obtain a copy of the License at 00013 * 00014 * http://www.apache.org/licenses/LICENSE-2.0 00015 * 00016 * Unless required by applicable law or agreed to in writing, software 00017 * distributed under the License is distributed on an "AS IS" BASIS, 00018 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00019 * See the License for the specific language governing permissions and 00020 * limitations under the License. 00021 */ 00022 00023 #include <zxing/LuminanceSource.h> 00024 #include <zxing/common/BitArray.h> 00025 #include <zxing/common/BitMatrix.h> 00026 #include <zxing/common/Counted.h> 00027 00028 namespace zxing { 00029 00030 class Binarizer : public Counted { 00031 private: 00032 Ref<LuminanceSource> source_; 00033 00034 public: 00035 Binarizer(Ref<LuminanceSource> source); 00036 virtual ~Binarizer(); 00037 00038 virtual Ref<BitArray> getBlackRow(int y, Ref<BitArray> row) = 0; 00039 virtual Ref<BitMatrix> getBlackMatrix() = 0; 00040 00041 Ref<LuminanceSource> getLuminanceSource() const ; 00042 virtual Ref<Binarizer> createBinarizer(Ref<LuminanceSource> source) = 0; 00043 00044 int getWidth() const; 00045 int getHeight() const; 00046 00047 }; 00048 00049 } 00050 #endif /* BINARIZER_H_ */
Generated on Wed Jul 13 2022 20:52:13 by
