[][src]Trait ndarray_vision::processing::kernels::FixedDimensionKernelBuilder

pub trait FixedDimensionKernelBuilder<T> {
    type Params;
    fn build() -> Result<Array3<T>, Error>;

    fn build_with_params(_p: Self::Params) -> Result<Array3<T>, Error> { ... }
}

Create a kernel with a fixed dimension

Associated Types

type Params

Parameters used in construction of the kernel

Loading content...

Required methods

fn build() -> Result<Array3<T>, Error>

Build a fixed size kernel

Loading content...

Provided methods

fn build_with_params(_p: Self::Params) -> Result<Array3<T>, Error>

Build a fixed size kernel with the given parameters

Loading content...

Implementors

impl<T> FixedDimensionKernelBuilder<T> for LaplaceFilter where
    T: Copy + Clone + Num + NumOps + Signed + FromPrimitive
[src]

type Params = LaplaceType

Type of Laplacian filter to construct

impl<T> FixedDimensionKernelBuilder<T> for SobelFilter where
    T: Copy + Clone + Num + Neg<Output = T> + FromPrimitive
[src]

type Params = Orientation

Orientation of the filter. Default is vertical

fn build() -> Result<Array3<T>, Error>[src]

Build a fixed size kernel

fn build_with_params(p: Self::Params) -> Result<Array3<T>, Error>[src]

Build a fixed size kernel with the given parameters

Loading content...