Skip to main content

MorphologyExt

Trait MorphologyExt 

Source
pub trait MorphologyExt {
    type Output;

    // Required methods
    fn erode(&self, kernel: ArrayView2<'_, bool>) -> Self::Output;
    fn erode_inplace(&mut self, kernel: ArrayView2<'_, bool>);
    fn dilate(&self, kernel: ArrayView2<'_, bool>) -> Self::Output;
    fn dilate_inplace(&mut self, kernel: ArrayView2<'_, bool>);
    fn union(&self, other: &Self) -> Self::Output;
    fn union_inplace(&mut self, other: &Self);
    fn intersection(&self, other: &Self) -> Self::Output;
    fn intersection_inplace(&mut self, other: &Self);
}

Required Associated Types§

Required Methods§

Source

fn erode(&self, kernel: ArrayView2<'_, bool>) -> Self::Output

Source

fn erode_inplace(&mut self, kernel: ArrayView2<'_, bool>)

Source

fn dilate(&self, kernel: ArrayView2<'_, bool>) -> Self::Output

Source

fn dilate_inplace(&mut self, kernel: ArrayView2<'_, bool>)

Source

fn union(&self, other: &Self) -> Self::Output

Source

fn union_inplace(&mut self, other: &Self)

Source

fn intersection(&self, other: &Self) -> Self::Output

Source

fn intersection_inplace(&mut self, other: &Self)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<U> MorphologyExt for ArrayBase<U, Ix3>
where U: DataMut<Elem = bool>,

Source§

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

Source§

fn erode(&self, kernel: ArrayView2<'_, bool>) -> Self::Output

Source§

fn erode_inplace(&mut self, kernel: ArrayView2<'_, bool>)

Source§

fn dilate(&self, kernel: ArrayView2<'_, bool>) -> Self::Output

Source§

fn dilate_inplace(&mut self, kernel: ArrayView2<'_, bool>)

Source§

fn union(&self, other: &Self) -> Self::Output

Source§

fn union_inplace(&mut self, other: &Self)

Source§

fn intersection(&self, other: &Self) -> Self::Output

Source§

fn intersection_inplace(&mut self, other: &Self)

Implementors§

Source§

impl<U, C> MorphologyExt for ImageBase<U, C>
where U: DataMut<Elem = bool>, C: ColourModel,