[][src]Trait ndarray_vision::processing::canny::CannyEdgeDetectorExt

pub trait CannyEdgeDetectorExt<T> {
    type Output;
    fn canny_edge_detector(
        &self,
        params: CannyParameters<T>
    ) -> Result<Self::Output, Error>; }

Runs the Canny Edge Detector algorithm on a type T

Associated Types

type Output

Output type, this is different as canny outputs a binary image

Loading content...

Required methods

fn canny_edge_detector(
    &self,
    params: CannyParameters<T>
) -> Result<Self::Output, Error>

Run the edge detection algorithm with the given parameters. Due to Canny being specified as working on greyscale images all current implementations assume a single channel image returning an error otherwise.

Loading content...

Implementations on Foreign Types

impl<T> CannyEdgeDetectorExt<T> for Array3<T> where
    T: Copy + Clone + FromPrimitive + Real + Num + NumAssignOps
[src]

type Output = Array3<bool>

Loading content...

Implementors

impl<T, C> CannyEdgeDetectorExt<T> for Image<T, C> where
    T: Copy + Clone + FromPrimitive + Real + Num + NumAssignOps,
    C: ColourModel
[src]

type Output = Image<bool, C>

Loading content...