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
sform not preserved when running sct_warp_template #3254
Comments
I believe this issue is due to our call to the ANTs binary, because ITK (and by extension ANTs) ignores the sform. See: ANTsX/ANTs#333 (comment). However, I think we may have already addressed this problem inside our wrapper, This would properly copy over the |
great catch! OK, so my suggestion would be to switch back to |
Agreed. We use I may use 2 PRs here: one for switching the calls, and a second for the speed problem, just because that might be a more involved investigation. |
Aha! I've just realized that this issue is connected to the unset sform noticed a while back by @cfhammill in #2858 (comment).
|
Description
When applying a transformation to bring the PAM50 to the native space of an image using
sct_warp_template
, the sform field is not preserved (all zeros). We should ensure the qform is copied onto the sform for the generated PAM50 files.Steps to reproduce
Download and extract the following images: javier_20210226.zip
Run the following commands:
3a. (Optional) Open
label/template/PAM50_wm.nii.gz
in FSLeyes (version 0.34.2) to see the message "Displaying images with different orientations/fields of view"3b. (Optional) Run
flshd label/template/PAM50_wm.nii.gz
to see the following result:Result of
fslhd
The text was updated successfully, but these errors were encountered: