#[repr(C)]pub enum DistanceTransformLabelTypes {
DIST_LABEL_CCOMP = 0,
DIST_LABEL_PIXEL = 1,
}
Expand description
distanceTransform algorithm flags
Variants§
DIST_LABEL_CCOMP = 0
each connected component of zeros in src (as well as all the non-zero pixels closest to the connected component) will be assigned the same label
DIST_LABEL_PIXEL = 1
each zero pixel (and all the non-zero pixels closest to it) gets its own label.
Trait Implementations§
source§impl Clone for DistanceTransformLabelTypes
impl Clone for DistanceTransformLabelTypes
source§fn clone(&self) -> DistanceTransformLabelTypes
fn clone(&self) -> DistanceTransformLabelTypes
Returns a copy of the value. Read more
1.0.0 · 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 DistanceTransformLabelTypes
impl Debug for DistanceTransformLabelTypes
source§impl PartialEq for DistanceTransformLabelTypes
impl PartialEq for DistanceTransformLabelTypes
source§fn eq(&self, other: &DistanceTransformLabelTypes) -> bool
fn eq(&self, other: &DistanceTransformLabelTypes) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for DistanceTransformLabelTypes
impl Eq for DistanceTransformLabelTypes
impl StructuralEq for DistanceTransformLabelTypes
impl StructuralPartialEq for DistanceTransformLabelTypes
Auto Trait Implementations§
impl RefUnwindSafe for DistanceTransformLabelTypes
impl Send for DistanceTransformLabelTypes
impl Sync for DistanceTransformLabelTypes
impl Unpin for DistanceTransformLabelTypes
impl UnwindSafe for DistanceTransformLabelTypes
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