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

TOPUP and ApplyTOPUP crash with images with odd number of pixels #948

Open
oesteban opened this issue Oct 10, 2014 · 5 comments · May be fixed by #2832
Open

TOPUP and ApplyTOPUP crash with images with odd number of pixels #948

oesteban opened this issue Oct 10, 2014 · 5 comments · May be fixed by #2832

Comments

@oesteban
Copy link
Contributor

When any of the dimensions of the images has odd number of pixels, topup crashes:

Topup: msg=topup_clp::topup_clp: Subsampling levels incompatible with image data

It'd be great if the interfaces checked this and transparently added the slices as FSL experts suggest here: https://www.jiscmail.ac.uk/cgi-bin/webadmin?A2=fsl;67dcb45c.1209

@satra
Copy link
Member

satra commented Oct 10, 2014

instead of adding we could subtract, but this will depend on the field of view of the data. if that is tight one could run into issues. i think we leave this to the user. we could make a note of this in the docstrings of topup and applytopup

@oesteban
Copy link
Contributor Author

Yes, it's better to subtract. Anyways, I need this in my pipelines, so I will have the implementation in my fork. Just in case we reconsider leaving this to the user, it's only a PR.

oesteban added a commit to oesteban/nipype that referenced this issue Oct 10, 2014
@akeshavan akeshavan linked a pull request Dec 19, 2018 that will close this issue
2 tasks
@akeshavan
Copy link
Collaborator

akeshavan commented Dec 19, 2018

I'm reopening this! I'm still having this problem. I've changed oscar's original commit by adding a flag to turn the resizing on/off.

For some reason, the applytopup interface isn't working. Any ideas? Here's the PR: #2832

@akeshavan akeshavan reopened this Dec 19, 2018
@nqueder
Copy link

nqueder commented Apr 19, 2022

I noticed that this issue is a bit old, but I am running into the same error when I'm trying to run topup on my dmri dataset.
Has anyone been able to find a way around it?

@DISAPPEARED13
Copy link

DISAPPEARED13 commented Dec 18, 2023

I solved this problem with adding some slices in the front and back of the volume... I thought that my data got something wrong or I gave the wrong input, but is it very common for adding slices to solve this kind of problem?

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

Successfully merging a pull request may close this issue.

5 participants