Skip to main content

pack_chw

Function pack_chw 

Source
pub fn pack_chw<T: PixelComponent, const CHANNELS: usize>(
    input: ImageView<'_, T, CHANNELS>,
    scale: f32,
    mean: [f32; CHANNELS],
    std: [f32; CHANNELS],
) -> VisionResult<PlanarImage<f32, CHANNELS>>
Expand description

Packs and normalizes an interleaved image into planar CHW storage.