blackMatrix

abstract val blackMatrix: BitMatrix?

Converts a 2D array of luminance data to 1 bit data. As above, assume this method is expensive and do not call it repeatedly. This method is intended for decoding 2D barcodes and may or may not apply sharpening. Therefore, a row from this matrix may not be identical to one fetched using getBlackRow(), so don't mix and match between them.

Return

The 2D array of bits for the image (true means black).

Throws

if image can't be binarized to make a matrix