pub enum MorphologyOperator {
Erode,
Dilate,
}Expand description
Morphological operators for dilate/erode operations.
These operators modify the shape of objects by expanding or contracting them. They work by examining neighborhoods of pixels and applying min/max operations.
Variants§
Erode
Erode operation (shrink/thin shapes).
Makes objects smaller by removing pixels at the edges. Takes the minimum value in the neighborhood. Useful for removing noise or separating touching objects.
Dilate
Dilate operation (expand/thicken shapes).
Makes objects larger by adding pixels at the edges. Takes the maximum value in the neighborhood. Useful for filling holes or connecting nearby objects.
Trait Implementations§
Source§impl Clone for MorphologyOperator
impl Clone for MorphologyOperator
Source§fn clone(&self) -> MorphologyOperator
fn clone(&self) -> MorphologyOperator
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MorphologyOperator
impl Debug for MorphologyOperator
Source§impl PartialEq for MorphologyOperator
impl PartialEq for MorphologyOperator
Source§fn eq(&self, other: &MorphologyOperator) -> bool
fn eq(&self, other: &MorphologyOperator) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for MorphologyOperator
impl Eq for MorphologyOperator
impl StructuralPartialEq for MorphologyOperator
Auto Trait Implementations§
impl Freeze for MorphologyOperator
impl RefUnwindSafe for MorphologyOperator
impl Send for MorphologyOperator
impl Sync for MorphologyOperator
impl Unpin for MorphologyOperator
impl UnsafeUnpin for MorphologyOperator
impl UnwindSafe for MorphologyOperator
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