GlobalHistogramBinarizer class

This Binarizer implementation uses the old ZXing global histogram approach.

It is suitable for low-end mobile devices which don't have enough CPU or memory to use a local thresholding algorithm. However, because it picks a global black point, it cannot handle difficult shadows and gradients.

Faster mobile devices and all desktop applications should probably use HybridBinarizer instead.

@author dswitkin@google.com (Daniel Switkin) @author Sean Owen

Inheritance
Implementers

Properties

blackMatrix BitMatrix
Get the 2D array of bits for the image (true means black).
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
height int
no setterinherited
luminanceSource LuminanceSource
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width int
no setterinherited

Methods

createBinarizer(LuminanceSource source) Binarizer
Creates a Binarizer with the same type as this Binarizer implementation, but with pristine state.
override
getBlackRow(int y, BitArray? row) BitArray
Converts the row y of luminance data to row(true means black).
override
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