Module interop

Source
Expand description

Interoperability conversions between the image and matrix types.

Functionsยง

image_from_matrix
Convert an u8 matrix into a GrayImage. Inverse operation of matrix_from_image.
image_from_matrix_transposed
Create a gray image with a borrowed reference to the matrix buffer.
matrix_from_image
Convert a GrayImage into an u8 matrix. Inverse operation of image_from_matrix.
rgb_from_matrix
Convert an (u8,u8,8) matrix into an RgbImage.