[−][src]Trait ndarray_vision::processing::kernels::KernelBuilder
Builds a convolutioon kernel given a shape and optional parameters
Associated Types
type Params
Parameters used in construction of the kernel
Required methods
fn build<D>(shape: D) -> Result<Array3<T>, Error> where
D: Copy + IntoDimension<Dim = Ix3>,
D: Copy + IntoDimension<Dim = Ix3>,
Build a kernel with a given dimension given sensible defaults for any parameters
Provided methods
fn build_with_params<D>(shape: D, _p: Self::Params) -> Result<Array3<T>, Error> where
D: Copy + IntoDimension<Dim = Ix3>,
D: Copy + IntoDimension<Dim = Ix3>,
For kernels with optional parameters use build with params otherwise appropriate default parameters will be chosen
Implementors
impl<T> KernelBuilder<T> for BoxLinearFilter where
T: Float + Num + NumAssignOps + FromPrimitive,
[src]
T: Float + Num + NumAssignOps + FromPrimitive,
type Params = bool
If false the kernel will not be normalised - this means that pixel bounds may be exceeded and overflow may occur
fn build<D>(shape: D) -> Result<Array3<T>, Error> where
D: Copy + IntoDimension<Dim = Ix3>,
[src]
D: Copy + IntoDimension<Dim = Ix3>,
fn build_with_params<D>(
shape: D,
normalise: Self::Params
) -> Result<Array3<T>, Error> where
D: Copy + IntoDimension<Dim = Ix3>,
[src]
shape: D,
normalise: Self::Params
) -> Result<Array3<T>, Error> where
D: Copy + IntoDimension<Dim = Ix3>,
impl<T> KernelBuilder<T> for GaussianFilter where
T: Copy + Clone + FromPrimitive + Num,
[src]
T: Copy + Clone + FromPrimitive + Num,
type Params = [f64; 2]
The parameter for the Gaussian filter is the horizontal and vertical covariances to form the covariance matrix.
ⓘThis example is not tested
[ Params[0], 0] [ 0, Params[1]]
fn build<D>(shape: D) -> Result<Array3<T>, Error> where
D: Copy + IntoDimension<Dim = Ix3>,
[src]
D: Copy + IntoDimension<Dim = Ix3>,
fn build_with_params<D>(
shape: D,
covar: Self::Params
) -> Result<Array3<T>, Error> where
D: Copy + IntoDimension<Dim = Ix3>,
[src]
shape: D,
covar: Self::Params
) -> Result<Array3<T>, Error> where
D: Copy + IntoDimension<Dim = Ix3>,