pub struct HomogeneityParams {
pub sigma_mm: f64,
pub nbox: usize,
}Expand description
Parameters for inhomogeneity correction (bias field removal).
Not used by makehomogeneous, which takes sigma_mm and nbox directly; the pipeline
config carries them as masking.homogeneity_sigma_mm / masking.homogeneity_nbox (defaults
7.0 and 15, MriResearchTools’ defaults) for the host to apply.
Fields§
§sigma_mm: f64Gaussian smoothing sigma in mm (default: 7.0)
nbox: usizeBoxes per dimension for the boxsegment tissue segmentation, makehomogeneous‘s nbox
(default: 15, MriResearchTools’). Not the number of box-filter passes of the smoothing.
Measured on the EMTP travelling heads (bridge run 1; #314): the earlier default of 3 left echo 1 visibly uneven, with a large dark centre on a GE MR750 (in-brain coefficient of variation 0.429, against 0.114 with 15 and 0.116 with N4; Philips Achieva 0.152 / 0.098 / 0.103). With 15 the image matches N4’s; BET masks moved by at most 1.4 % in volume, and on GE agreed better with HD-BET.
Trait Implementations§
Source§impl Clone for HomogeneityParams
impl Clone for HomogeneityParams
Source§fn clone(&self) -> HomogeneityParams
fn clone(&self) -> HomogeneityParams
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for HomogeneityParams
impl Debug for HomogeneityParams
Source§impl Default for HomogeneityParams
impl Default for HomogeneityParams
Auto Trait Implementations§
impl Freeze for HomogeneityParams
impl RefUnwindSafe for HomogeneityParams
impl Send for HomogeneityParams
impl Sync for HomogeneityParams
impl Unpin for HomogeneityParams
impl UnsafeUnpin for HomogeneityParams
impl UnwindSafe for HomogeneityParams
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
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