pub struct SliceChopping {
pub coherence: [f64; 3],
pub corrected: [bool; 3],
pub detected: bool,
}Expand description
What complex_to_mag_phase found and did about slice chopping.
Fields§
§coherence: [f64; 3]Magnitude-weighted coherence of neighbouring voxels along each axis ([x, y, z]), in
[-1, 1], pooled over all echoes and measured on the input as given: about +1 for smooth
phase, about −1 for an axis chopped by π. See slice_chopping_coherence.
corrected: [bool; 3]Axes the (−1)^k correction was applied along.
detected: boolWhether corrected came from detection (ChopCorrection::Auto) or was imposed.
Implementations§
Source§impl SliceChopping
impl SliceChopping
Sourcepub fn ambiguous_axes(&self) -> Vec<usize>
pub fn ambiguous_axes(&self) -> Vec<usize>
Axes whose coherence is too close to zero for the chop decision to be trusted
(|coherence| < CHOP_AMBIGUOUS_COHERENCE).
Trait Implementations§
Source§impl Clone for SliceChopping
impl Clone for SliceChopping
Source§fn clone(&self) -> SliceChopping
fn clone(&self) -> SliceChopping
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 SliceChopping
Source§impl Debug for SliceChopping
impl Debug for SliceChopping
Source§impl PartialEq for SliceChopping
impl PartialEq for SliceChopping
impl StructuralPartialEq for SliceChopping
Auto Trait Implementations§
impl Freeze for SliceChopping
impl RefUnwindSafe for SliceChopping
impl Send for SliceChopping
impl Sync for SliceChopping
impl Unpin for SliceChopping
impl UnsafeUnpin for SliceChopping
impl UnwindSafe for SliceChopping
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