segmentation — generic segmentation toggles#

Schema: SegmentationConfig in src/thesis/core/config/validators.py.

Reserved for generic-segmentation steps inside the preprocess and meta pipelines. For the standalone SynthSeg workflow, see synthseg.

Field

Type

Default

Constraints

Description

method

str

"synthseg"

one of synthseg / fast / freesurfer

Segmentation backend.

tissue_types

List[str]

["GM", "WM", "CSF"]

Tissue classes to segment.

create_masks

bool

True

Whether binary masks are emitted alongside the labelled segmentation.

labels

Dict[str, int] | None

None

Optional label_name integer mapping.

Example#

segmentation:
  method: synthseg
  tissue_types: [GM, WM, CSF]
  create_masks: true