nipype icon indicating copy to clipboard operation
nipype copied to clipboard

TOPUP and ApplyTOPUP crash with images with odd number of pixels

Open oesteban opened this issue 11 years ago • 6 comments

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

oesteban avatar Oct 10 '14 09:10 oesteban

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

satra avatar Oct 10 '14 12:10 satra

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 avatar Oct 10 '14 13:10 oesteban

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: https://github.com/nipy/nipype/pull/2832

akeshavan avatar Dec 19 '18 02:12 akeshavan

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?

nqueder avatar Apr 19 '22 22:04 nqueder

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?

DISAPPEARED13 avatar Dec 18 '23 03:12 DISAPPEARED13