pub trait Processing {
// Required methods
fn gaussian_blur(
img: &ImageBuffer<Luma<f32>, Vec<f32>>,
sigma: f64,
) -> ImageBuffer<Luma<f32>, Vec<f32>>;
fn resize_linear(
img: &ImageBuffer<Luma<f32>, Vec<f32>>,
width: u32,
height: u32,
) -> ImageBuffer<Luma<f32>, Vec<f32>>;
fn resize_nearest(
img: &ImageBuffer<Luma<f32>, Vec<f32>>,
width: u32,
height: u32,
) -> ImageBuffer<Luma<f32>, Vec<f32>>;
}
Expand description
Basic image operations used by SIFT. For testing or benchmarking, it’s useful to use exactly the same blur and interpolation procedures to obtain identical results and performance.
Required Methods§
fn gaussian_blur( img: &ImageBuffer<Luma<f32>, Vec<f32>>, sigma: f64, ) -> ImageBuffer<Luma<f32>, Vec<f32>>
fn resize_linear( img: &ImageBuffer<Luma<f32>, Vec<f32>>, width: u32, height: u32, ) -> ImageBuffer<Luma<f32>, Vec<f32>>
fn resize_nearest( img: &ImageBuffer<Luma<f32>, Vec<f32>>, width: u32, height: u32, ) -> ImageBuffer<Luma<f32>, Vec<f32>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.