blackMatrix property

BitMatrix blackMatrix

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

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. throws NotFoundException if image can't be binarized to make a matrix

Implementation

BitMatrix get blackMatrix;