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].
pub fn image_to_tensor(
image: DynamicImage,
) -> Result<NdTensor<f32, 3>, ReadImageError>Convert an image into a CHW tensor with 3 channels and values in the range [0, 1].