Skip to main content

normalize_into

Function normalize_into 

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

Normalizes interleaved pixels into caller-owned f32 storage.