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§
Sourcefn float_erode(
input: FloatTensor<Self>,
kernel: BoolTensor<Self>,
opts: MorphOptions<Self, Float>,
) -> FloatTensor<Self>
fn float_erode( input: FloatTensor<Self>, kernel: BoolTensor<Self>, opts: MorphOptions<Self, Float>, ) -> FloatTensor<Self>
Erodes an input tensor with the specified kernel.
Sourcefn float_dilate(
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>
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.