pub struct Filters;Expand description
Common convolution kernels.
Implementations§
Source§impl Filters
impl Filters
Sourcepub fn gaussian_3x3() -> Vec<f32>
pub fn gaussian_3x3() -> Vec<f32>
Gaussian blur kernel (3x3).
Sourcepub fn gaussian_5x5() -> Vec<f32>
pub fn gaussian_5x5() -> Vec<f32>
Gaussian blur kernel (5x5).
Sourcepub fn sobel_horizontal() -> Vec<f32>
pub fn sobel_horizontal() -> Vec<f32>
Sobel edge detection (horizontal).
Sourcepub fn sobel_vertical() -> Vec<f32>
pub fn sobel_vertical() -> Vec<f32>
Sobel edge detection (vertical).
Sourcepub fn box_blur_3x3() -> Vec<f32>
pub fn box_blur_3x3() -> Vec<f32>
Box blur (3x3).
Auto Trait Implementations§
impl Freeze for Filters
impl RefUnwindSafe for Filters
impl Send for Filters
impl Sync for Filters
impl Unpin for Filters
impl UnsafeUnpin for Filters
impl UnwindSafe for Filters
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more