pub enum DistanceType {
L1,
L2,
}Expand description
Distance metric used by distance_transform.
Variants§
L1
4-neighborhood unit-weight chamfer (exact Manhattan).
L2
8-neighborhood 1/sqrt(2) chamfer approximation.
Trait Implementations§
Source§impl Clone for DistanceType
impl Clone for DistanceType
impl Copy for DistanceType
Source§impl Debug for DistanceType
impl Debug for DistanceType
Source§impl Default for DistanceType
impl Default for DistanceType
impl Eq for DistanceType
Source§impl PartialEq for DistanceType
impl PartialEq for DistanceType
impl StructuralPartialEq for DistanceType
Auto Trait Implementations§
impl Forget for DistanceType
impl Freeze for DistanceType
impl Move for DistanceType
impl RefUnwindSafe for DistanceType
impl Send for DistanceType
impl Sync for DistanceType
impl Unpin for DistanceType
impl UnsafeUnpin for DistanceType
impl UnwindSafe for DistanceType
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