Skip to main content

qsm_core/segment/
mod.rs

1//! Anatomical segmentation.
2//!
3//! - **SynthSeg** ([`synthseg`], `onnx` feature): contrast-agnostic whole-brain segmentation
4//!   into FreeSurfer labels. Because it is trained on synthesised contrasts it runs directly on
5//!   a GRE magnitude image, so susceptibility can be reported per structure without acquiring
6//!   and registering a separate T1w scan. See [`synthseg`](self::synthseg) for the caveats.
7//!
8//! Brain extraction (whole-head → brain mask) lives in [`crate::bet`].
9
10pub mod labels;
11pub mod synthseg;
12
13pub use labels::{SynthSegLabels, SynthSegVersion};
14#[cfg(feature = "onnx")]
15pub use synthseg::synthseg;
16pub use synthseg::{synthseg_network_grid, PosteriorPrecision, SynthSegInference, SynthSegParams, SynthSegResult};