Skip to main content

normalize_into

Function normalize_into 

pub fn normalize_into<T, const CHANNELS: usize>(
    input: ImageView<'_, T, CHANNELS>,
    output: ImageViewMut<'_, f32, CHANNELS>,
    scale: f32,
    mean: [f32; CHANNELS],
    std: [f32; CHANNELS],
) -> Result<(), VisionError>
where T: PixelComponent,
Expand description

Normalizes interleaved pixels into caller-owned f32 storage.