Skip to main content

pack_interleaved_image

Function pack_interleaved_image 

Source
pub fn pack_interleaved_image<T: TensorElement, const CHANNELS: usize>(
    image: ImageView<'_, T, CHANNELS>,
) -> Result<TensorBuffer, TensorError>
Expand description

Explicitly packs a possibly strided interleaved image view into an owned HWC tensor.