Run SynthSeg

This process runs SynthSeg (https://github.com/BBillot/SynthSeg) to segment MRI data. SynthSeg is a deep learning-based brain segmentation tool that performs whole-brain segmentation and optionally cortical parcellation.

Description

SynthSeg is a robust brain segmentation tool that can segment MRI scans of any contrast and resolution, without retraining or fine-tuning. It uses a deep learning model trained on synthetic data to generalize to real scans. The process accepts Raw T1 MRI in NIfTI format and produces segmentation outputs organized in the subject folder structure.

Parameters

t1mri: Raw T1 MRI ( input )
Raw T1 MRI scan to be segmented. Must be in NIfTI format (.nii or .nii.gz).
output_folder: Acquisition ( output )
Output folder for SynthSeg results, organized according to BrainVISA database hierarchy with modality "synthseg".
segmentation: SynthSeg segmentation ( output )
Output segmentation volume containing brain structures labels.
volumes_csv: SynthSeg volumes ( optional, output )
Optional CSV file to save volumes for all segmented regions.
qc_csv: SynthSeg qc ( optional, output )
Optional CSV file to save quality control scores.
posterior: Tissue probability map ( optional, output )
Optional output for 3D posterior probabilities.
resampled: SynthSeg resampled ( optional, output )
Optional output to save resampled images at 1mm resolution.
execution_log: SynthSeg execution log ( output )
Optional JSON file to save execution log with all parameters, inputs, outputs, and command used.
parc: Boolean ( input )
Perform cortical parcellation in addition to whole-brain segmentation.
robust: Boolean ( input )
Use the variant for increased robustness (slower but better for clinical data with large slice spacing).
fast: Boolean ( input )
Disable some postprocessing for faster prediction (approximately twice as fast, slightly less accurate). Not compatible with --robust.
crop: ListOf( Integer ) ( optional, input )
Crop the inputs to a given shape before segmentation (must be divisible by 32). Can be a single integer or multiple integers in RAS coordinates (e.g., "160" or "160 128 192").
threads: Integer ( input )
Number of threads to be used by Tensorflow (default: 1). Increase to decrease runtime when using CPU version.
cpu: Boolean ( input )
Run on CPU rather than GPU.
v1: Boolean ( input )
Use the first version of SynthSeg (SynthSeg 1.0).
overwrite: Boolean ( input )
Allow overwriting of existing output directory if it already contains SynthSeg results.

Technical information

Toolbox : Freesurfer

User level : 1

Identifier : RunSynthSeg

File name : brainvisa/toolboxes/freesurfer/processes/Tools/RunSynthSeg.py

Supported file formats :

t1mri :
gz compressed NIFTI-1 image, FreesurferMGZ, NIFTI-1 image, gz compressed NIFTI-1 image
output_folder :
Directory, Directory
segmentation :
gz compressed NIFTI-1 image, FreesurferMGZ, NIFTI-1 image, gz compressed NIFTI-1 image
volumes_csv :
CSV file, CSV file
qc_csv :
CSV file, CSV file
posterior :
gz compressed NIFTI-1 image, FreesurferMGZ, NIFTI-1 image, gz compressed NIFTI-1 image
resampled :
gz compressed NIFTI-1 image, FreesurferMGZ, NIFTI-1 image, gz compressed NIFTI-1 image
execution_log :
JSON file, JSON file