#[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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DistanceTransformLabelTypes
impl Debug for DistanceTransformLabelTypes
Source§impl From<DistanceTransformLabelTypes> for i32
impl From<DistanceTransformLabelTypes> for i32
Source§fn from(v: DistanceTransformLabelTypes) -> Self
fn from(v: DistanceTransformLabelTypes) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DistanceTransformLabelTypes
impl PartialEq for DistanceTransformLabelTypes
Source§fn eq(&self, other: &DistanceTransformLabelTypes) -> bool
fn eq(&self, other: &DistanceTransformLabelTypes) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl TryFrom<i32> for DistanceTransformLabelTypes
impl TryFrom<i32> for DistanceTransformLabelTypes
impl Copy for DistanceTransformLabelTypes
impl Eq for DistanceTransformLabelTypes
impl StructuralPartialEq for DistanceTransformLabelTypes
Auto Trait Implementations§
impl Freeze for DistanceTransformLabelTypes
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