FloatVisionOps

Trait FloatVisionOps 

Source
pub trait FloatVisionOps: Backend {
    // Provided methods
    fn float_erode(
        input: FloatTensor<Self>,
        kernel: BoolTensor<Self>,
        opts: MorphOptions<Self, Float>,
    ) -> FloatTensor<Self> { ... }
    fn float_dilate(
        input: FloatTensor<Self>,
        kernel: BoolTensor<Self>,
        opts: MorphOptions<Self, Float>,
    ) -> FloatTensor<Self> { ... }
}
Expand description

Vision ops on float tensors

Provided Methods§

Source

fn float_erode( input: FloatTensor<Self>, kernel: BoolTensor<Self>, opts: MorphOptions<Self, Float>, ) -> FloatTensor<Self>

Erodes an input tensor with the specified kernel.

Source

fn float_dilate( input: FloatTensor<Self>, kernel: BoolTensor<Self>, opts: MorphOptions<Self, Float>, ) -> FloatTensor<Self>

Dilates an input tensor with the specified kernel.

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<B: FusionBackend + FloatVisionOps> FloatVisionOps for Fusion<B>

Source§

impl<E: FloatNdArrayElement, I: IntNdArrayElement, Q: QuantElement> FloatVisionOps for NdArray<E, I, Q>

Source§

impl<R, F, I, BT> FloatVisionOps for CubeBackend<R, F, I, BT>

Implementors§