Function image_from_matrix_transposed

Source
pub fn image_from_matrix_transposed(
    mat: &DMatrix<u8>,
) -> ImageBuffer<Luma<u8>, &[u8]>
Expand description

Create a gray image with a borrowed reference to the matrix buffer.

Very performant since no copy is performed, but produces a transposed image due to differences in row/column major.