pub struct MorphOptions<B: Backend, K: TensorKind<B>> {
pub anchor: Option<Point>,
pub iterations: usize,
pub border_type: BorderType,
pub border_value: Option<Tensor<B, 1, K>>,
}Expand description
Options for morphology ops
Fields§
§anchor: Option<Point>Anchor position within the kernel. Defaults to the center.
iterations: usizeNumber of iterations to apply
border_type: BorderTypeBorder type. Default: constant based on operation
border_value: Option<Tensor<B, 1, K>>Value of each channel for constant border type
Implementations§
Source§impl<B: Backend, K: TensorKind<B>> MorphOptions<B, K>
impl<B: Backend, K: TensorKind<B>> MorphOptions<B, K>
Sourcepub fn builder() -> MorphOptionsBuilder<B, K>
pub fn builder() -> MorphOptionsBuilder<B, K>
Create an instance of MorphOptions using the builder syntax
Trait Implementations§
Source§impl<B: Clone + Backend, K: Clone + TensorKind<B>> Clone for MorphOptions<B, K>
impl<B: Clone + Backend, K: Clone + TensorKind<B>> Clone for MorphOptions<B, K>
Source§fn clone(&self) -> MorphOptions<B, K>
fn clone(&self) -> MorphOptions<B, K>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<B: Debug + Backend, K: Debug + TensorKind<B>> Debug for MorphOptions<B, K>
impl<B: Debug + Backend, K: Debug + TensorKind<B>> Debug for MorphOptions<B, K>
Source§impl<B: Backend, K: TensorKind<B>> Default for MorphOptions<B, K>
impl<B: Backend, K: TensorKind<B>> Default for MorphOptions<B, K>
Auto Trait Implementations§
impl<B, K> Freeze for MorphOptions<B, K>
impl<B, K> RefUnwindSafe for MorphOptions<B, K>
impl<B, K> Send for MorphOptions<B, K>
impl<B, K> Sync for MorphOptions<B, K>
impl<B, K> Unpin for MorphOptions<B, K>
impl<B, K> UnwindSafe for MorphOptions<B, K>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().