Trait SobelExt

Source
pub trait SobelExt
where Self: Sized,
{ type Output; // Required methods fn apply_sobel(&self) -> Result<Self::Output, Error>; fn full_sobel(&self) -> Result<(Self::Output, Self::Output), Error>; }
Expand description

Runs the sobel operator on an image

Required Associated Types§

Source

type Output

Type to output

Required Methods§

Source

fn apply_sobel(&self) -> Result<Self::Output, Error>

Returns the magnitude output of the sobel - an image of only lines

Source

fn full_sobel(&self) -> Result<(Self::Output, Self::Output), Error>

Returns the magntitude and rotation outputs for use in other algorithms like the Canny edge detector. Rotation is in radians

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T, U> SobelExt for ArrayBase<U, Ix3>
where U: DataMut<Elem = T>, T: Copy + Clone + Num + NumAssignOps + Neg<Output = T> + FromPrimitive + Real,

Source§

type Output = ArrayBase<OwnedRepr<T>, Dim<[usize; 3]>>

Source§

fn apply_sobel(&self) -> Result<Self::Output, Error>

Source§

fn full_sobel(&self) -> Result<(Self::Output, Self::Output), Error>

Implementors§

Source§

impl<T, U, C> SobelExt for ImageBase<U, C>
where U: DataMut<Elem = T>, T: Copy + Clone + Num + NumAssignOps + Neg<Output = T> + FromPrimitive + Real, C: ColourModel,