TBinarizer Class

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)

Unit: ZXing.Binarizer
System.TObject
  ZXing.Binarizer.TBinarizer
    ZXing.GlobalHistogramBinarizer.TGlobalHistogramBinarizer
type TBinarizer = class(TObject)

The TBinarizer type exposes the following members.

Show:
 NameDescription
Create

Initializes a new instance of the class.

Destroy

Top
Show:
 NameDescription
Height

Width

Top
Show:
 NameDescription
BlackMatrix

GetBlackRow

LuminanceSource

createBinarizer

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.

Top