-
-
Notifications
You must be signed in to change notification settings - Fork 381
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
ImageMath TimeSeriesAssemble #1689
Comments
It requires two initial arguments for the time dimension, the spacing (TR) and origin (usually 0) |
Oh! I see. What does "origin" mean here? |
It should go into the "toffset" field of the NIFTI header, but it appears not to work. I've never used it, I don't know if it's supported in ITK. |
It looks like the origin is set correctly in ImageMath but is not written to disk. I would go ahead and use 0 here. |
Thanks! I tried
And the exact error I got: "Bus error (core dumped)". |
I think it should require less memory than Did you intend to resample the data to the template at full resolution? If not, you can downsample it with |
Oh wow, I didn't realize how large the output image was. That definitely has me questioning my broader framework. Definitely can't store many images of that size... Basically, I am putting the preprocessed functional data from fmriprep into the T1w space (or subject's anat space) using the So if I can resample freesurfer's T1w image to a lower resolution and still project the functional data to the surface in this downsampled space, then I don't need the data at full resolution. I'll try downsampling and see if that fixes things. The pipeline for getting the data to the surface, as it exists right now: https://github.com/NU-ACNLab/mwmh/blob/main/scripts/process/create_ciftis.sh |
Sounds sensible. Does fmriprep's |
I looked into it briefly, but it would have required me to rework my postprocessing pipeline to work on the surface. I wasn't even sure if that was possible, so I decided to take this route, maybe foolishly thinking that it would be easier 😰 |
I am trying to reassemble a timeseries using
ImageMath
'sTimeSeriesAssemble
that I originally split here usingImageMath
'sTimeSeriesDisassemble
, and then transformed usingantsApplyTransforms
as I asked about here. I triedImageMath 4 ${VolumefMRI_fs} TimeSeriesAssemble ${funcoutdir}/TR*
but got the following error:"terminate called after throwing an instance of 'itk::ExceptionObject'
what(): /software/sources/builds/ants/2.3.4/ANTsX-ANTs-6829396/build/staging/include/ITK-5.2/itkImageBase.hxx:177:
itk::ERROR: itk::ERROR: Image(0x29aead0): A spacing of 0 is not allowed: Spacing is [0.8, 0.8, 0.8, 0]
Aborted (core dumped)"
This call comes out as:
I get the same output when I run it with the
-v 1
flag. How can I address this issue?The text was updated successfully, but these errors were encountered: