Skip to main content

planar_f32_to_nchw

Function planar_f32_to_nchw 

Source
pub fn planar_f32_to_nchw<const CHANNELS: usize>(
    planar: &PlanarImage<f32, CHANNELS>,
) -> VisionResult<TensorBuffer>
Expand description

Packs a planar CHW f32 image into contiguous NCHW [1,C,H,W].