pub enum VsharpGrid {
Native,
IsotropicFinest,
Isotropic {
spacing_mm: f64,
},
}Expand description
Grid V-SHARP estimates the background field on. See the module docs.
Variants§
Native
The input voxel grid (no resampling). The enum’s Default; VsharpParams defaults
to Isotropic at STI_GRID_MM.
IsotropicFinest
An isotropic grid at the smallest input voxel dimension (e.g. 0.3 mm for 0.3 × 0.3 × 1 mm): no axis is coarsened. Isotropic input runs on the native grid.
Isotropic
An isotropic grid of spacing_mm, anchored at the mask’s bounding box. The background
is estimated there and interpolated back; the local field keeps native resolution.
Implementations§
Source§impl VsharpGrid
impl VsharpGrid
Sourcepub const ANISOTROPY_TOLERANCE: f64 = 0.01
pub const ANISOTROPY_TOLERANCE: f64 = 0.01
Voxels count as isotropic for IsotropicFinest when the
largest voxel dimension exceeds the smallest by at most this fraction (1 %), so header
rounding does not trigger a resample.
Trait Implementations§
Source§impl Clone for VsharpGrid
impl Clone for VsharpGrid
Source§fn clone(&self) -> VsharpGrid
fn clone(&self) -> VsharpGrid
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for VsharpGrid
Source§impl Debug for VsharpGrid
impl Debug for VsharpGrid
Source§impl Default for VsharpGrid
impl Default for VsharpGrid
Source§fn default() -> VsharpGrid
fn default() -> VsharpGrid
Returns the “default value” for a type. Read more
Source§impl PartialEq for VsharpGrid
impl PartialEq for VsharpGrid
Source§impl Serialize for VsharpGrid
impl Serialize for VsharpGrid
impl StructuralPartialEq for VsharpGrid
Auto Trait Implementations§
impl Freeze for VsharpGrid
impl RefUnwindSafe for VsharpGrid
impl Send for VsharpGrid
impl Sync for VsharpGrid
impl Unpin for VsharpGrid
impl UnsafeUnpin for VsharpGrid
impl UnwindSafe for VsharpGrid
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
impl<T> CloneAny for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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