Skip to main content

interleaved_image_view

Function interleaved_image_view 

Source
pub fn interleaved_image_view<T: TensorElement, const CHANNELS: usize>(
    image: &Image<T, CHANNELS>,
) -> Result<TensorView<'_>, TensorError>
Expand description

Borrows a packed interleaved image as a zero-copy [height, width, channels] tensor.