Binarizer class abstract
This class hierarchy provides a set of methods to convert luminance data to 1 bit data.
It allows the algorithm to vary polymorphically, for example allowing a very expensive thresholding technique for servers and a fast one for mobile. It also permits the implementation to vary, e.g. a JNI version for Android and a Java fallback version for other platforms.
- Implementers
Constructors
- Binarizer(LuminanceSource _source)
Properties
- blackMatrix → BitMatrix
-
Get the 2D array of bits for the image (true means black).
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → int
-
no setter
- luminanceSource → LuminanceSource
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- width → int
-
no setter
Methods
-
createBinarizer(
LuminanceSource source) → Binarizer - Creates a Binarizer with the same type as this Binarizer implementation, but with pristine state.
-
getBlackRow(
int y, BitArray? row) → BitArray -
Converts the row
y
of luminance data torow
(true means black). -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited