Skip to content

Commit b895661

Browse files
batch_single_subject.sh: Update segmentation section
1 parent 3bccca7 commit b895661

1 file changed

Lines changed: 6 additions & 15 deletions

File tree

single_subject/batch_single_subject.sh

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -38,23 +38,11 @@ fi
3838

3939
# Go to T2 contrast
4040
cd data/t2
41-
# Spinal cord segmentation
42-
sct_propseg -i t2.nii.gz -c t2 -qc ~/qc_singleSubj
41+
# Spinal cord segmentation (
42+
sct_deepseg_sc -i t2.nii.gz -c t2 -qc ~/qc_singleSubj
4343
# To check the QC report, use your web browser to open the file qc_singleSubj/qc/index.html, which has been created in
4444
# your home directory
4545

46-
# Go to T1 contrast
47-
cd ../t1
48-
# Spinal cord segmentation
49-
sct_propseg -i t1.nii.gz -c t1 -qc ~/qc_singleSubj
50-
# Check QC report: Go to your browser and do "refresh". Notice that the segmentation is "leaking".
51-
# Try another algorithm based on deep-learning
52-
sct_deepseg_sc -i t1.nii.gz -c t1 -ofolder deepseg -qc ~/qc_singleSubj
53-
# Check QC report: Go to your browser and do "refresh". Notice that the leakage is fixed.
54-
# Optional: Check results in FSLeyes. In red: PropSeg, in green: DeepSeg. Tips: use the right arrow key to switch
55-
# overlay on/off.
56-
fsleyes t1.nii.gz -cm greyscale t1_seg.nii.gz -cm red -a 70.0 deepseg/t1_seg.nii.gz -cm green -a 70.0 &
57-
5846

5947

6048
# Vertebral labeling
@@ -379,8 +367,11 @@ sct_register_multimodal -i "${SCT_DIR}"/data/PAM50/template/PAM50_t2s.nii.gz -d
379367
# Other features
380368
# ======================================================================================================================
381369

382-
# Smooth spinal cord along centerline (extracted from the segmentation)
383370
cd ../t1
371+
# Segment T1-weighted image (to be used in later steps)
372+
sct_deepseg_sc -i t2.nii.gz -c t1
373+
374+
# Smooth spinal cord along centerline (extracted from the segmentation)
384375
sct_smooth_spinalcord -i t1.nii.gz -s t1_seg.nii.gz
385376
# Tips: use flag "-sigma" to specify smoothing kernel size (in mm)
386377

0 commit comments

Comments
 (0)