-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Demonstrate that the dog template can be used for template-based registration #14
Comments
Updating here, currently facing a few issues but I suspect it is due to the template cord labeling and template disc labeling (I'll explain below) Using SCT latest version: The command I am using for this task is: sct_register_to_template -i /Users/rohanbanerjee/Documents/research/neuropoly/dog_template_updated/bids_data/sub-HarshmanDobby/anat/sub-HarshmanDobby_T1.nii.gz -s /Users/rohanbanerjee/Documents/research/neuropoly/dog_template_updated/bids_data_updated/derivatives/labels/sub-HarshmanDobby/anat/sub-HarshmanDobby_T1_label-SC_seg.nii.gz -l /Users/rohanbanerjee/Documents/research/neuropoly/dog_template_updated/bids_data_updated/derivatives/labels/sub-HarshmanDobby/anat/sub-HarshmanDobby_T1_labels-disc_updated.nii.gz -t /Users/rohanbanerjee/Documents/research/neuropoly/dog_template_updated/template-dog/templatedog-r20240112/ -c t1 -s-template-id 2 -ofolder /Users/rohanbanerjee/Documents/research/neuropoly/dog_template_updated/register_op I am using the template files from the latest release: https://github.com/spinalcordtoolbox/template-dog/releases/tag/v2.1 I am getting the following error: When I investigated the temporary files created during the straightening during the registration, I found that template disc labeled values started from I'm currently rectifying the above issue. Will keep updating here. |
"-l" refers to vertebral levels, whereas you are using disc labels ("-ldisc") |
if you have difficulties, maybe @joshuacwnewton can provide assistance. |
As mentioned above, I made changes to the template cord file, template disc level file and template vertebrae file. Along with this, I also used The updated command I used for the registration is as follows: sct_register_to_template -i /Users/rohanbanerjee/Documents/research/neuropoly/dog_template_updated/bids_data/sub-HarshmanDobby/anat/sub-HarshmanDobby_T2.nii.gz -s /Users/rohanbanerjee/Documents/research/neuropoly/dog_template_updated/bids_data_updated/derivatives/labels/sub-HarshmanDobby/anat/sub-HarshmanDobby_T2_label-SC_seg.nii.gz -ldisc /Users/rohanbanerjee/Documents/research/neuropoly/dog_template_updated/bids_data_updated/derivatives/labels/sub-HarshmanDobby/anat/sub-HarshmanDobby_T2_labels-disc_updated.nii.gz -t /Users/rohanbanerjee/Documents/research/neuropoly/dog_template_updated/template-dog/templatedog-r20240112/ -c t2 -s-template-id 2 -ofolder /Users/rohanbanerjee/Documents/research/neuropoly/dog_template_updated/register_op The output of the registrations are as follows: For t2, template2anatScreen.Recording.2024-01-18.at.2.09.54.AM.movanat2template (Template is the copper overlay)Screen.Recording.2024-01-18.at.2.31.56.AM.movFor t1, template2anathttps://github.com/spinalcordtoolbox/template-dog/assets/25586344/6436492b-0f25-43fe-97c6-01efa352c4ee anat2templateScreen.Recording.2024-01-18.at.3.08.41.AM.movFor t1, the anat2template registration (registration done with default parameters) does not produce great results. Attaching all the above mentioned files: All registration related files: https://drive.google.com/file/d/1TNtpVcZZ45nWyxamPTMhTXJ-Vu5WJua5/view?usp=sharing |
clarification about disc labels:
Therefore, we CANNOT use the 26 labels disc file to register to the template. that's fine, we will just do 2 labels. my syntax to reproduce:
|
Context: https://forum.spinalcordmri.org/t/integrating-dog-template/1179/2
The text was updated successfully, but these errors were encountered: