createBinarizer method
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
@override
Binarizer createBinarizer(LuminanceSource source) {
return GlobalHistogramBinarizer(source);
}