Skip to main content

resize_pack_chw_into

Function resize_pack_chw_into 

Source
pub fn resize_pack_chw_into(
    input: ImageView<'_, u8, 3>,
    output_width: usize,
    output_height: usize,
    scale: f32,
    mean: [f32; 3],
    std: [f32; 3],
    output: &mut [f32],
) -> VisionResult<()>
Expand description

Fuses bilinear RGB resize, normalization, and CHW packing into caller-owned storage.