[−][src]Struct ndarray_vision::processing::canny::CannyBuilder
Builder to construct the Canny parameters, if a parameter is not selected then a sensible default is chosen
Methods
impl<T> CannyBuilder<T> where
T: Copy + Clone + FromPrimitive + Real + Num,
[src]
T: Copy + Clone + FromPrimitive + Real + Num,
pub fn new() -> Self
[src]
Creates a new Builder with no parameters selected
pub fn lower_threshold(self, t1: T) -> Self
[src]
Sets the lower threshold for the parameters returning a new builder
pub fn upper_threshold(self, t2: T) -> Self
[src]
Sets the upper threshold for the parameters returning a new builder
pub fn blur<D>(self, shape: D, covariance: [f64; 2]) -> Self where
D: Copy + IntoDimension<Dim = Ix2>,
[src]
D: Copy + IntoDimension<Dim = Ix2>,
Given the shape and covariance matrix constructs a Gaussian blur to be used with the Canny Edge Detector
pub fn build(self) -> CannyParameters<T>
[src]
Creates the Canny parameters to be used with sensible defaults for unspecified
parameters. This method also rearranges the upper and lower threshold to
ensure that the relationship t1 <= t2
is maintained.
Defaults are: a lower threshold of 0.3, upper threshold of 0.7 and a 5x5 Gaussian blur with a horizontal and vertical variances of 2.0.
Trait Implementations
impl<T: Clone> Clone for CannyBuilder<T>
[src]
fn clone(&self) -> CannyBuilder<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: PartialEq> PartialEq<CannyBuilder<T>> for CannyBuilder<T>
[src]
fn eq(&self, other: &CannyBuilder<T>) -> bool
[src]
fn ne(&self, other: &CannyBuilder<T>) -> bool
[src]
impl<T: Eq> Eq for CannyBuilder<T>
[src]
impl<T: Hash> Hash for CannyBuilder<T>
[src]
fn hash<__HT: Hasher>(&self, state: &mut __HT)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<T: Debug> Debug for CannyBuilder<T>
[src]
Auto Trait Implementations
impl<T> Send for CannyBuilder<T> where
T: Send,
T: Send,
impl<T> Sync for CannyBuilder<T> where
T: Sync,
T: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,