public final class HybridBinarizer extends GlobalHistogramBinarizer
Constructor and Description |
---|
HybridBinarizer(LuminanceSource source) |
Modifier and Type | Method and Description |
---|---|
Binarizer |
createBinarizer(LuminanceSource source)
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.
|
getBlackRow
getHeight, getLuminanceSource, getWidth
public HybridBinarizer(LuminanceSource source)
public BitMatrix getBlackMatrix() throws NotFoundException
getBlackMatrix
in class GlobalHistogramBinarizer
NotFoundException
- if image can't be binarized to make a matrixpublic Binarizer createBinarizer(LuminanceSource source)
Binarizer
createBinarizer
in class GlobalHistogramBinarizer
source
- The LuminanceSource this Binarizer will operate on.Copyright © 2007–2024. All rights reserved.