TBinarizer Class
Definition
This class hierarchy provides a set of methods to convert luminance data to 1 bit data. It allows the algorithm to vary polymorphically, for example allowing a very expensive thresholding technique for servers and a fast one for mobile. It also permits the implementation to vary, e.g. a JNI version for Android and a Java fallback version for other platforms. dswitkin@google.com (Daniel Switkin)
Delphi
type TBinarizer = class(TObject)
- Inheritance
-
TObjectTBinarizer
- Derived
Constructors
| Create(TLuminanceSource) |
Initializes a new instance of the Binarizer class. |
| Destroy |
Properties
Methods
| BlackMatrix | |
| GetBlackRow(Integer, IBitArray) | |
| GetHeight | |
| GetWidth | |
| LuminanceSource | |
| createBinarizer(TLuminanceSource) |
Creates a new object with the same type as this Binarizer implementation, but with pristine state. This is needed because Binarizer implementations may be stateful, e.g. keeping a cache of 1 bit data. See Effective Java for why we can't use Java's clone() method. |