createBinarizer abstract method

Binarizer createBinarizer(
  1. LuminanceSource source
)

Creates a Binarizer with the same type as this Binarizer implementation, but with pristine state.

The Binarizer will operate on source. 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.

Implementation

Binarizer createBinarizer(LuminanceSource source);