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

DTIPrep data type output #53

Closed
mriedel56 opened this issue Mar 21, 2018 · 1 comment
Closed

DTIPrep data type output #53

mriedel56 opened this issue Mar 21, 2018 · 1 comment

Comments

@mriedel56
Copy link

I converted DICOMs to a .nrrd file, and found that the data type was "short". After running DTIPrep, the resulting .nrrd file has data type "unsigned_short". This prevents Slicer (4.8.1) from being able to convert from Nrrd to FSL format. Is there any way to specify the output data type during a call to DTIPrep from the command line, or convert the data type of a .nrrd file?

@styner
Copy link
Member

styner commented Mar 21, 2018

Thanks for the comment. The original DICOM data should be in unsigned short (raw MRI data should not have negative values). I don't think though that this should be the issue if you are not able to convert from NRRD to FSL (as we are doing so regularly without a problem, using unsigned short data). Still, if you are interested in converting the data type of a nrrd file, you can use the "unu" tool distributed with Slicer. unu is a swiss army knife kinda tool for nrrd files and can do a lot of operations. For type conversions you would need to do (via terminal):
unu convert -t short -i input.nrrd -o output.nrrd
Best Martin

@styner styner closed this as completed Mar 21, 2018
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

2 participants