pub enum OrientationSupport {
Arbitrary,
NotApplicable,
AxialOnly,
}Expand description
Whether an algorithm is valid when B0 does not lie along the voxel +z axis.
The dipole relationship is direction-dependent, and the FFT that implements it lives in the voxel grid, so an oblique acquisition has to be handled deliberately. There are three cases, and the difference matters because getting it wrong is silent — the reconstruction completes and the numbers are simply wrong.
Variants§
Arbitrary
The B0 direction is an explicit parameter — the dipole kernel is built from it — so the
method reconstructs correctly on the grid the data was acquired on, whatever its
orientation. See crate::geometry::b0_direction_from_affine.
NotApplicable
The method never uses B0. The SMV-family background removals rest on the spherical mean value property of harmonic fields, which is rotation-invariant.
AxialOnly
Assumes B0 along +z and offers no way to say otherwise. Deep-learning methods learned
the dipole relationship from axially-acquired training data, so there is no direction to
rotate; oblique data must be resampled to a cardinal grid first
(crate::geometry::resample_complex_to_axial).
Unrolled networks with a physics data-consistency term (LPCNN, MoDL-QSM, NeXtQSM) build that term from the true direction, so they are partly corrected — but their learned prior is still axial, so they belong here.
Implementations§
Source§impl OrientationSupport
impl OrientationSupport
Sourcepub fn requires_axial(&self) -> bool
pub fn requires_axial(&self) -> bool
Whether oblique data must be resampled before this method can be trusted.
Trait Implementations§
Source§impl Clone for OrientationSupport
impl Clone for OrientationSupport
Source§fn clone(&self) -> OrientationSupport
fn clone(&self) -> OrientationSupport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for OrientationSupport
Source§impl Debug for OrientationSupport
impl Debug for OrientationSupport
impl Eq for OrientationSupport
Source§impl PartialEq for OrientationSupport
impl PartialEq for OrientationSupport
Source§fn eq(&self, other: &OrientationSupport) -> bool
fn eq(&self, other: &OrientationSupport) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OrientationSupport
Auto Trait Implementations§
impl Freeze for OrientationSupport
impl RefUnwindSafe for OrientationSupport
impl Send for OrientationSupport
impl Sync for OrientationSupport
impl Unpin for OrientationSupport
impl UnsafeUnpin for OrientationSupport
impl UnwindSafe for OrientationSupport
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
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>
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>
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)
&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)
&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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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>
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>
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