mistralrs_vision

Function pad_to_max_edge

source
pub fn pad_to_max_edge(
    images: &[DynamicImage],
    max_edge: u32,
) -> Vec<DynamicImage>
Expand description
  1. Resize the images to the maximum edge length - preserving aspect ratio
  2. Pad all the images with black padding.