Trait MedianFilterExt

Source
pub trait MedianFilterExt {
    type Output;

    // Required method
    fn median_filter<E>(&self, region: E) -> Self::Output
       where E: IntoDimension<Dim = Ix2>;
}
Expand description

Median filter, given a region to move over the image, each pixel is given the median value of itself and it’s neighbours

Required Associated Types§

Required Methods§

Source

fn median_filter<E>(&self, region: E) -> Self::Output
where E: IntoDimension<Dim = Ix2>,

Run the median filter given the region. Median is assumed to be calculated independently for each channel.

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.

Implementations on Foreign Types§

Source§

impl<T, U> MedianFilterExt for ArrayBase<U, Ix3>
where U: Data<Elem = T>, T: Copy + Clone + FromPrimitive + ToPrimitive + Num + Ord,

Source§

type Output = ArrayBase<OwnedRepr<T>, Dim<[usize; 3]>>

Source§

fn median_filter<E>(&self, region: E) -> Self::Output
where E: IntoDimension<Dim = Ix2>,

Implementors§

Source§

impl<T, U, C> MedianFilterExt for ImageBase<U, C>
where U: Data<Elem = T>, T: Copy + Clone + FromPrimitive + ToPrimitive + Num + Ord, C: ColourModel,