public final class HybridBinarizer extends GlobalHistogramBinarizer
| Constructor and Description |
|---|
HybridBinarizer(LuminanceSource
|
| Modifier and Type | Method and Description |
|---|---|
Binarizer |
createBinarizer(LuminanceSource
Creates a new object with the same type as this Binarizer implementation, but with pristine state.
|
BitMatrix |
getBlackMatrix()
Calculates the final BitMatrix once for all requests.
|
getBlackRowgetHeight, getLuminanceSource, getWidthpublic HybridBinarizer(LuminanceSourcesource)
public BitMatrixgetBlackMatrix() throws NotFoundException
getBlackMatrix in class
GlobalHistogramBinarizer
NotFoundException - if image can't be binarized to make a matrix
public BinarizercreateBinarizer(LuminanceSource source)
Binarizer
createBinarizer in class
GlobalHistogramBinarizer
source - The LuminanceSource this Binarizer will operate on.