pub fn image_from_matrix(mat: &DMatrix<u8>) -> GrayImage
Expand description
Convert an u8
matrix into a GrayImage
.
Inverse operation of matrix_from_image
.
Performs a transposition to accomodate for the column major matrix into the row major image.