public class GlobalHistogramBinarizer extends Binarizer
| Constructor and Description |
|---|
GlobalHistogramBinarizer(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()
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 in class Binarizery - The row to fetch, 0 <= y < 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.NotFoundExceptionpublic BitMatrix getBlackMatrix() throws NotFoundException
BinarizergetBlackMatrix in class BinarizerNotFoundExceptionpublic Binarizer createBinarizer(LuminanceSource source)
BinarizercreateBinarizer in class Binarizersource - The LuminanceSource this Binarizer will operate on.Copyright © 2007-2013. All Rights Reserved.