Skip to main content

resize_nearest_rgb8

Function resize_nearest_rgb8 

Source
pub fn resize_nearest_rgb8(
    src: ImageView<'_>,
    out_w: u32,
    out_h: u32,
    out: &mut [u8],
) -> Result<(), VisionError>
Expand description

Nearest-neighbour resize RGB8 → RGB8 into caller buffer (out_w * out_h * 3 bytes).