pub struct HdBetParams {
pub patch: (usize, usize, usize),
pub tile_step: f64,
pub mirror_tta: bool,
}Expand description
HD-BET inference parameters.
Fields§
§patch: (usize, usize, usize)Sliding-window patch size (px, py, pz) in voxels at 1 mm (default (192, 192, 96), the
size HD-BET was trained with). Must be multiples of (32, 32, 16). Smaller patches bound
memory (peak ≈1.9 GB for (128, 128, 64) vs ≈4.5 GB native, on a 164×205×205 volume) at a
small accuracy cost; below ~(128, 128, 64) tiles that lie wholly inside the brain start
to be labelled background.
tile_step: f64Sliding-window step as a fraction of the patch (default 0.5, nnU-Net’s).
mirror_tta: bool8-fold mirroring test-time augmentation (default off, as in QSM-CI; 8× slower for a marginal gain).
Implementations§
Source§impl HdBetParams
impl HdBetParams
Sourcepub fn low_memory() -> Self
pub fn low_memory() -> Self
Memory-bounded setting for constrained hosts (e.g. 32-bit WASM): (128, 128, 64) patches,
peak ≈1.9 GB on a 164×205×205 volume. Agreed with the native patch at Dice ≈0.99 in
validation (and with nnU-Net run at the same patch size to 2 voxels).
Trait Implementations§
Source§impl Clone for HdBetParams
impl Clone for HdBetParams
Source§fn clone(&self) -> HdBetParams
fn clone(&self) -> HdBetParams
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 HdBetParams
impl Debug for HdBetParams
Source§impl Default for HdBetParams
impl Default for HdBetParams
Source§impl PartialEq for HdBetParams
impl PartialEq for HdBetParams
Source§fn eq(&self, other: &HdBetParams) -> bool
fn eq(&self, other: &HdBetParams) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for HdBetParams
impl Serialize for HdBetParams
impl StructuralPartialEq for HdBetParams
Auto Trait Implementations§
impl Freeze for HdBetParams
impl RefUnwindSafe for HdBetParams
impl Send for HdBetParams
impl Sync for HdBetParams
impl Unpin for HdBetParams
impl UnsafeUnpin for HdBetParams
impl UnwindSafe for HdBetParams
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