sct-pipeline / contrast-agnostic-softseg-spinalcord

Contrast-agnostic spinal cord segmentation project with softseg
MIT License
4 stars 3 forks source link

Preprocessing for extracting the spinal cord ROI via centerline estimation. #20

Closed uzaymacar closed 1 year ago

uzaymacar commented 2 years ago

The added script get_sc_roi_via_centerline.sh extracts the spinal cord ROI via centerline estimation using SCT's sct_get_centerline command.

To run this preprocessing, use:

sct_run_batch -path-data PATH_TO_SPINE_GENERIC_PROCESSED -path-output spine-generic-processed_sc_roi -script get_sc_roi_via_centerline.sh

To-dos:

uzaymacar commented 2 years ago

Here is a visualization of this current preprocessing pipeline for subject sub-amu01: sc_roi_via_centerline_demonstration

uzaymacar commented 2 years ago

The latest commit 957debf dilates the GT mask and crops the images as discussed last week. Data exploration shows that after cropping via the current preprocessing script in this PR and resampling to 1 mm^3:

We'll use these values to inform the selection of center-crop, length, and stride parameters.

NOTE: This PR will NOT be merged and we'll incorporate the preprocessing done here in a unified preprocessing script.