Skip to main content

pad

Function pad 

pub fn pad<T, const CHANNELS: usize>(
    input: ImageView<'_, T, CHANNELS>,
    padding: Padding,
    value: [T; CHANNELS],
) -> Result<Image<T, CHANNELS>, VisionError>
where T: PixelComponent,
Expand description

Pads an image with a constant pixel value.