Trait Filters

Source
pub trait Filters<T> {
    // Required methods
    fn erode(&self, size: usize, kernel_size: i32) -> Array2<T>;
    fn dilate(&self, size: usize, kernel_size: i32) -> Array2<T>;
    fn median_blur(&self, size: usize) -> Array2<T>;
    fn gaussian(&self, kernel_size: usize, sigma: f64) -> Array2<T>;
}
Expand description

Trait for image processing filters (requires use_opencv feature).

All operations use zero-copy OpenCV bindings internally — the input Array2 is borrowed (not copied) and the output is written in-place.

Required Methods§

Source

fn erode(&self, size: usize, kernel_size: i32) -> Array2<T>

Applies morphological erosion to the raster.

Source

fn dilate(&self, size: usize, kernel_size: i32) -> Array2<T>

Applies morphological dilation to the raster.

Source

fn median_blur(&self, size: usize) -> Array2<T>

Applies median blur to the raster.

Source

fn gaussian(&self, kernel_size: usize, sigma: f64) -> Array2<T>

Applies Gaussian blur to the raster.

Implementors§