-
Notifications
You must be signed in to change notification settings - Fork 166
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
to_nibabel and from_nibabel don't cancel out #64
Comments
I've tested this in the past and it "works for me" this probably tests the same thing: ANTsPy/tests/test_core_ants_image_io.py Lines 270 to 277 in 5ed4d11
is there something different about these images? if you look at the code, I don't think there is any way that spacing could change as you describe ....... would need a reproducible example to debug. |
also ITK coords are LPS. |
Yes, import ants
data = ants.image_read("~/Downloads/clone.nii")
ants.plot_ortho(data, flat=True)
ants.plot_ortho(ants.from_nibabel(ants.to_nibabel(data)), flat=True) |
probably resolved with 30b0038 please reopen if not |
Describe the bug
I believe this may be related to #52. I've just built AntsPy from master, though, so the fix for #52 doesn't solve the issue.
For an ANTsImage (RSA), converting to and from nibabel changes their orientation (or at least their display). Also values for spacing and direction change.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The to_nibabel and from_nibabel conversions cancel each other out?
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: