public class GlobalHistogramBinarizer extends Binarizer
| 构造器和说明 |
|---|
GlobalHistogramBinarizer(LuminanceSource source) |
| 限定符和类型 | 方法和说明 |
|---|---|
Binarizer |
createBinarizer(LuminanceSource source)
Creates a new object with the same type as this Binarizer implementation, but with pristine
state.
|
BitMatrix |
getBlackMatrix()
Converts a 2D array of luminance data to 1 bit data.
|
BitArray |
getBlackRow(int y,
BitArray row)
Converts one row of luminance data to 1 bit data.
|
getHeight, getLuminanceSource, getWidthpublic GlobalHistogramBinarizer(LuminanceSource source)
public BitArray getBlackRow(int y, BitArray row) throws NotFoundException
BinarizergetBlackRow 在类中 Binarizery - The row to fetch, which must be in [0, bitmap height)row - An optional preallocated array. If null or too small, it will be ignored.
If used, the Binarizer will call BitArray.clear(). Always use the returned object.NotFoundException - if row can't be binarizedpublic BitMatrix getBlackMatrix() throws NotFoundException
BinarizergetBlackMatrix 在类中 BinarizerNotFoundException - if image can't be binarized to make a matrixpublic Binarizer createBinarizer(LuminanceSource source)
BinarizercreateBinarizer 在类中 Binarizersource - The LuminanceSource this Binarizer will operate on.