spinalcordtoolbox / manual-correction

Scripts for the manual correction of spinal cord labels
MIT License
4 stars 0 forks source link

2023 SCT Course example #70

Open valosekj opened 1 year ago

valosekj commented 1 year ago

This issue summarizes changes between the manual_correction.py script used during previous SCT courses (see issue here) and the current manual_correction.py (r20231101) script located within this repository.


The following section describes an example from the SCT 6.1 course, slide 147:

Considering the following folder (produced by sct_run_batch):

$ cd output/data_processed/
$ tree
.
└── sub-03
    └── anat
        ├── sub-03_T2w.nii.gz
        └── sub-03_T2w_seg.nii.gz

And the following qc_fail.yml config file listing images to correct:

FILES_SEG:
- sub-03_T2w.nii.gz

The manual_correction.py command is:

python manual_correction.py -config qc_fail.yml -path-img output/data_processed -path-label output/data_processed -path-out data/derivatives/labels

Notable changes compared to the manual_correction.py script used during previous SCT courses:

CORR_SEG:
- sub-03_T2w.nii.gz
FILES_SEG: []