ivadomed / model-spinal-rootlets

Deep-learning based segmentation of the spinal nerve rootlets
5 stars 2 forks source link

Rootlet-informed regsitration to PAM50 template #78

Open sandrinebedard opened 2 weeks ago

sandrinebedard commented 2 weeks ago

Description

This issue is a follow-up on #13. More precisly, the aim is to use the spinal nerve rootlets for registration to the template. The aim is to provide more accurate alinement of spinal levels, for example for groupe-level analysis in spinal cord fMRI.

(TODO: add more details)

sandrinebedard commented 3 days ago

Some points to consider:

sandrinebedard commented 2 days ago

Here are some premilinary results of sub-007_ses-headNormal and sub-007_ses-headDown (same subject, 2 head positions)of resgistration to the template using the nerve rootlets. here are the steps: Code version

  1. Resgistration to the template using 2 mid-vertebrae labels
  2. Bringing nerve rootlets to the template space
  3. Z-regsitration of the rootlets with PAM50rootlets
  4. Bringing spinal levels (PAM50) to native space using concatenated transforms of template reg + z-reg of rootlets
  5. Getting midpoints of the spinal levels in the native space (form the registered PAM50 spinal levels)
  6. Registration to the template using flag -lspinal using midpoints

Results

Traditional registration 2 template using 2 mid vertebrae labels (C2 and C7) (in PAM50 space):

https://github.com/user-attachments/assets/8598e05f-d187-4d68-b060-bab4a2c110ef

Regsitration to template using spinal nerve rootlets (in PAM50 space):

https://github.com/user-attachments/assets/0e7475df-9342-4d1b-941d-6a52240ff97c

I think this looks very promissing! Next steps: