helpers/convert_to_binary
library
Functions
-
convertBlackWhiteImageToBinary(Image image)
→ BitMatrix
-
Converts the image into a bit matrix with one bit per pixel.
A bit is set (1) when the corresponding pixel in the image is black.
Otherwise the pixel is unset (0).
A pixel is considered black if its red, green and blue channel are zero
and it's alpha channel, if present, is 255.
-
convertImageToBinary(Image image, {bool returnInverted = false})
→ BitMatrix
-
-
convertToBinary(Uint8List data, int width, int height, {bool returnInverted = false})
→ BitMatrix
-
Convert a List of image bytes into a 2D matrix of bits representing
black and white pixels