Skip to main content

resize_into

Function resize_into 

Source
pub fn resize_into<T: PixelComponent, const CHANNELS: usize>(
    input: ImageView<'_, T, CHANNELS>,
    output: ImageViewMut<'_, T, CHANNELS>,
    interpolation: Interpolation,
) -> VisionResult<()>
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.