Skip to content

Commit

Permalink
Use lanczos3 for resize pad?
Browse files Browse the repository at this point in the history
  • Loading branch information
EricLBuehler committed Nov 7, 2024
1 parent f4dd913 commit 5eca076
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mistralrs-vision/src/pad.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fn resize_image_to_max_edge(img: &DynamicImage, max_edge: u32) -> DynamicImage {
let new_height = (height as f32 * scale) as u32;

// Resize the image
img.resize_exact(new_width, new_height, FilterType::CatmullRom)
img.resize_exact(new_width, new_height, FilterType::Lanczos3)
}

/// 1) Resize the images to the maximum edge length - preserving aspect ratio
Expand Down

0 comments on commit 5eca076

Please sign in to comment.