Skip to content

Commit e51c8fb

Browse files
batch_single_subject.sh: Add cmd to generate t2_seg_labeled.nii.gz
CSV generation will fail due to missing labeled seg file.
1 parent 60ebdeb commit e51c8fb

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

single_subject/batch_single_subject.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ sct_deepseg totalspineseg -i t2.nii.gz -qc ~/qc_singleSubj
7272
# Check results using FSLeyes
7373
fsleyes t2.nii.gz -cm greyscale t2_step1_canal.nii.gz -cm YlOrRd -a 70.0 t2_step1_cord.nii.gz -cm YlOrRd -a 70.0 t2_step1_levels.nii.gz -cm subcortical -a 70.0 t2_step1_output.nii.gz -cm subcortical -a 70.0 t2_step2_output.nii.gz -cm subcortical -a 70.0 &
7474
# Check QC report: Go to your browser and do "refresh".
75+
76+
# Optionally, you can use the generated disc labels to create a labeled segmentation
77+
sct_label_utils -i t2_seg.nii.gz -project-centerline t2_step1_levels.nii.gz -o t2_seg_labeled.nii.gz
78+
79+
7580
# Note: Here, two files are output: t2_seg_labeled, which represents the labeled segmentation (i.e., the value
7681
# corresponds to the vertebral level), and t2_seg_labeled_discs, which only has a single point for each
7782
# inter-vertebral disc level. The convention is: Value 3 —> C2-C3 disc, Value 4 —> C3-C4 disc, etc.

0 commit comments

Comments
 (0)