pub struct DistanceTransformWorkspace { /* private fields */ }Expand description
Reusable host scratch storage for the unit-spacing exact distance transform.
The workspace makes allocation reuse explicit and never shares mutable state
between calls. Grow it once for the largest expected image, then pass it to
distance_transform_edt_into on the same worker thread.
Implementations§
Trait Implementations§
Source§impl Debug for DistanceTransformWorkspace
impl Debug for DistanceTransformWorkspace
Source§impl Default for DistanceTransformWorkspace
impl Default for DistanceTransformWorkspace
Source§fn default() -> DistanceTransformWorkspace
fn default() -> DistanceTransformWorkspace
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DistanceTransformWorkspace
impl RefUnwindSafe for DistanceTransformWorkspace
impl Send for DistanceTransformWorkspace
impl Sync for DistanceTransformWorkspace
impl Unpin for DistanceTransformWorkspace
impl UnsafeUnpin for DistanceTransformWorkspace
impl UnwindSafe for DistanceTransformWorkspace
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> 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 more