pub struct SeparationInputs<'a> {
pub local_field_ppm: &'a [f64],
pub qsm: &'a [f64],
pub mask: &'a [u8],
pub r2prime: Option<&'a [f64]>,
pub r2star: Option<&'a [f64]>,
pub magnitude_rss: Option<&'a [f64]>,
pub magnitude_multi: Option<&'a [f64]>,
pub se_magnitude_multi: Option<&'a [f64]>,
}Expand description
Inputs for run_separation. Provide whatever the chosen algorithm needs;
the dispatcher errors if a required input is missing.
Fields§
§local_field_ppm: &'a [f64]Local (tissue) field in ppm — for ChiSepIlsqr / ChiSepMedi.
qsm: &'a [f64]Conventional QSM χ_total in ppm — the QSM-init for ChiSepIlsqr and the
input for R2starQsm / WaveSep / Decompose / HcChisep.
mask: &'a [u8]Binary brain mask (n_voxels, 1 = inside).
r2prime: Option<&'a [f64]>R2’ map in Hz (ChiSepIlsqr / ChiSepMedi / WaveSep / HcChisep).
r2star: Option<&'a [f64]>R2* map in Hz (R2starQsm); if absent, fit from magnitude_multi.
magnitude_rss: Option<&'a [f64]>Root-sum-of-squares magnitude (ChiSepIlsqr / ChiSepMedi).
magnitude_multi: Option<&'a [f64]>Multi-echo magnitude, voxel-major (n_voxels, n_echoes)
(R2starQsm / Decompose / HcChisep).
se_magnitude_multi: Option<&'a [f64]>Multi-echo spin-echo magnitude, voxel-major (n_voxels, n_se) (HcChisep, optional).
Trait Implementations§
Source§impl<'a> Clone for SeparationInputs<'a>
impl<'a> Clone for SeparationInputs<'a>
Source§fn clone(&self) -> SeparationInputs<'a>
fn clone(&self) -> SeparationInputs<'a>
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<'a> Copy for SeparationInputs<'a>
Auto Trait Implementations§
impl<'a> Freeze for SeparationInputs<'a>
impl<'a> RefUnwindSafe for SeparationInputs<'a>
impl<'a> Send for SeparationInputs<'a>
impl<'a> Sync for SeparationInputs<'a>
impl<'a> Unpin for SeparationInputs<'a>
impl<'a> UnsafeUnpin for SeparationInputs<'a>
impl<'a> UnwindSafe for SeparationInputs<'a>
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