pub struct CannyResult {
pub edges: Image<u8, 1>,
pub gradient_x: Image<f32, 1>,
pub gradient_y: Image<f32, 1>,
pub magnitude: Image<f32, 1>,
pub suppressed: Image<f32, 1>,
}Expand description
Edge map and numerical stages produced by Canny.
Fields§
§edges: Image<u8, 1>Final binary edge map containing 0 or 255.
gradient_x: Image<f32, 1>Horizontal signed Sobel derivative.
gradient_y: Image<f32, 1>Vertical signed Sobel derivative.
magnitude: Image<f32, 1>L1 or Euclidean gradient magnitude before suppression.
suppressed: Image<f32, 1>Magnitude retained by directional non-maximum suppression.
Trait Implementations§
Source§impl Clone for CannyResult
impl Clone for CannyResult
Source§fn clone(&self) -> CannyResult
fn clone(&self) -> CannyResult
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 CannyResult
impl Debug for CannyResult
Source§impl PartialEq for CannyResult
impl PartialEq for CannyResult
Source§fn eq(&self, other: &CannyResult) -> bool
fn eq(&self, other: &CannyResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CannyResult
Auto Trait Implementations§
impl Freeze for CannyResult
impl RefUnwindSafe for CannyResult
impl Send for CannyResult
impl Sync for CannyResult
impl Unpin for CannyResult
impl UnsafeUnpin for CannyResult
impl UnwindSafe for CannyResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more