pub struct InversionConfig {Show 19 fields
pub algorithm: InversionAlgorithm,
pub tkd: TkdParams,
pub tsvd: TkdParams,
pub tikhonov: TikhonovParams,
pub tv: TvParams,
pub rts: RtsParams,
pub nltv: NltvParams,
pub medi: MediParams,
pub tfi: TfiParams,
pub ilsqr: IlsqrParams,
pub tgv: TgvParams,
pub qsmart: QsmartParams,
pub ndi: NdiParams,
pub fansi: FansiParams,
pub l1qsm: L1QsmParams,
pub whqsm: WhQsmParams,
pub hdqsm: HdQsmParams,
pub amp_pe: AmpPeParams,
pub tile: Option<(usize, usize)>,
}Expand description
Dipole inversion configuration
Fields§
§algorithm: InversionAlgorithm§tkd: TkdParams§tsvd: TkdParams§tikhonov: TikhonovParams§tv: TvParams§rts: RtsParams§nltv: NltvParams§medi: MediParams§tfi: TfiParams§ilsqr: IlsqrParams§tgv: TgvParams§qsmart: QsmartParams§ndi: NdiParams§fansi: FansiParamsShared by the Fansi (nlTV) and FansiTgv (nlTGV) algorithms; the
dispatcher sets is_tgv from the selected algorithm.
l1qsm: L1QsmParams§whqsm: WhQsmParams§hdqsm: HdQsmParams§amp_pe: AmpPeParamsAMP-PE (b0 is overridden from scan metadata by the dispatcher).
tile: Option<(usize, usize)>Overlap-tiling for the deep-learning inversions, as (core, halo) in voxels. None
(default) runs the net whole-volume; Some runs it patch-by-patch (bounded memory) via the
*_tiled variants — an approximation, mainly for memory-constrained targets (e.g. WASM).
Stored as a plain tuple so this config type stays available without the onnx feature;
the dispatcher converts it to a crate::inversion::TileConfig. Ignored by the
natively-patch-based nets (autoqsm/qsmgan) and by non-DL algorithms.
Trait Implementations§
Source§impl Clone for InversionConfig
impl Clone for InversionConfig
Source§fn clone(&self) -> InversionConfig
fn clone(&self) -> InversionConfig
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 moreSource§impl Debug for InversionConfig
impl Debug for InversionConfig
Auto Trait Implementations§
impl Freeze for InversionConfig
impl RefUnwindSafe for InversionConfig
impl Send for InversionConfig
impl Sync for InversionConfig
impl Unpin for InversionConfig
impl UnsafeUnpin for InversionConfig
impl UnwindSafe for InversionConfig
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