Skip to main content

IntVisionOps

Trait IntVisionOps 

Source
pub trait IntVisionOps: Backend {
    // Provided methods
    fn int_erode(
        input: IntTensor<Self>,
        kernel: BoolTensor<Self>,
        opts: MorphOptions<Self, Int>,
    ) -> IntTensor<Self> { ... }
    fn int_dilate(
        input: IntTensor<Self>,
        kernel: BoolTensor<Self>,
        opts: MorphOptions<Self, Int>,
    ) -> IntTensor<Self> { ... }
}
Expand description

Vision ops on int tensors

Provided Methods§

Source

fn int_erode( input: IntTensor<Self>, kernel: BoolTensor<Self>, opts: MorphOptions<Self, Int>, ) -> IntTensor<Self>

Erodes an input tensor with the specified kernel.

Source

fn int_dilate( input: IntTensor<Self>, kernel: BoolTensor<Self>, opts: MorphOptions<Self, Int>, ) -> IntTensor<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 + IntVisionOps> IntVisionOps for Fusion<B>

Source§

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

Source§

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

Implementors§