Skip to content
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

bug in image_vector.resample_space -- will sometimes shift images in axial plane #30

Open
yonestar opened this issue Jun 26, 2019 · 0 comments

Comments

@yonestar
Copy link
Contributor

In some but not all cases, resample_space causes an image to be shifted left/right / in the axial plane by a few mm. I have not figured out the boundary conditions of when this happens and when it does not happen. Here is an example of when it happens:

image

The top is the original image. The bottom is resampled to a new space -- notice how the image has been shifted right. In my testing, this occurrence of this bug may depend more on the target space being sampled to, rather than the resampling algorithm, but more testing is needed to better understand this.

Here is the code to recreate the bug:

limbicmask = fmri_data(fullfile(repodir, 'data', 'Etienne2016modules.nii'))
limbic_rs = resample_space(limbicmask, gbt, 'nearest');
orthviews_multiple_objs({limbicmask, limbic_rs})

Contact me directly for the brain imaging files used to above to reproduce the bug; I don't have permission to post them publicly. Using other files, the bug may or may not appear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant