Skip to main content

resize_into

Function resize_into 

pub fn resize_into<T, const CHANNELS: usize>(
    input: ImageView<'_, T, CHANNELS>,
    output: ImageViewMut<'_, T, CHANNELS>,
    interpolation: Interpolation,
) -> Result<(), VisionError>
where T: PixelComponent,
Expand description

Resizes into caller-owned storage without allocating.

The output dimensions select the requested size. Packed and strided output views are accepted, and semantic metadata is replaced with the input metadata after channel validation.