pub enum ChamferMetric {
Taxicab,
Chessboard,
}Expand description
The metric of a chamfer distance transform.
Variants§
Taxicab
City-block (L1) distance: steps to the four edge neighbours.
Chessboard
Chessboard (L∞) distance: steps to all eight neighbours.
Trait Implementations§
Source§impl Clone for ChamferMetric
impl Clone for ChamferMetric
impl Copy for ChamferMetric
Source§impl Debug for ChamferMetric
impl Debug for ChamferMetric
impl Eq for ChamferMetric
Source§impl PartialEq for ChamferMetric
impl PartialEq for ChamferMetric
impl StructuralPartialEq for ChamferMetric
Auto Trait Implementations§
impl Freeze for ChamferMetric
impl RefUnwindSafe for ChamferMetric
impl Send for ChamferMetric
impl Sync for ChamferMetric
impl Unpin for ChamferMetric
impl UnsafeUnpin for ChamferMetric
impl UnwindSafe for ChamferMetric
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