image_to_tensor

Function image_to_tensor 

Source
pub fn image_to_tensor(
    image: DynamicImage,
) -> Result<NdTensor<f32, 3>, ReadImageError>
Expand description

Convert an image into a CHW tensor with 3 channels and values in the range [0, 1].