mistralrs_
vision
0.3.4
mistralrs_vision
Function
pad_to_max_edge
Copy item path
source
pub fn pad_to_max_edge( images: &[DynamicImage], max_edge:
u32
, ) ->
Vec
<DynamicImage>
Expand description
Resize the images to the maximum edge length - preserving aspect ratio
Pad all the images with black padding.