open-discussion
open-discussion > RE: DWIConvert
Jan 30, 2018 12:01 AM | Martin Styner
RE: DWIConvert
Ryan
Thanks for this info. This solves the source of the problem (likely).
Not sure what exactly happened from raw DICOM data to the data that you are using, but I have not seen a range of 0 to 93k in raw MRI data before.
But, assuming that your data is all fine, your upper range is 93K which is beyong the range of a short/16 bit integer. a short can go from 0 to 64k (for unsigned) or -32k to 32k (for signed). In your case you need to change the data first, so that you can convert it to short.
Dividing all your data by ten should do the trick (as your changed data values stay below 32k). Then you can put that into DWIConvert.
I think fslmaths can do that for you, not sure but this should do the trick
fslmaths -div 10 -odt short
Best
Martin
Thanks for this info. This solves the source of the problem (likely).
Not sure what exactly happened from raw DICOM data to the data that you are using, but I have not seen a range of 0 to 93k in raw MRI data before.
But, assuming that your data is all fine, your upper range is 93K which is beyong the range of a short/16 bit integer. a short can go from 0 to 64k (for unsigned) or -32k to 32k (for signed). In your case you need to change the data first, so that you can convert it to short.
Dividing all your data by ten should do the trick (as your changed data values stay below 32k). Then you can put that into DWIConvert.
I think fslmaths can do that for you, not sure but this should do the trick
fslmaths -div 10 -odt short
Best
Martin
Threaded View
Title | Author | Date |
---|---|---|
Jacek M | Apr 8, 2016 | |
Micah Johnson | Mar 22, 2018 | |
Daniel Berge | Mar 22, 2018 | |
Micah Johnson | Mar 22, 2018 | |
Daniel Berge | Mar 22, 2018 | |
Martin Styner | Mar 22, 2018 | |
Micah Johnson | Mar 22, 2018 | |
Micah Johnson | Mar 22, 2018 | |
Daniel Berge | Mar 22, 2018 | |
Micah Johnson | Mar 22, 2018 | |
Daniel Berge | Mar 22, 2018 | |
Micah Johnson | Mar 22, 2018 | |
Micah Johnson | Mar 22, 2018 | |
Ryan H | Jan 23, 2018 | |
Martin Styner | Jan 26, 2018 | |
Ryan H | Jan 26, 2018 | |
Martin Styner | Jan 26, 2018 | |
Ryan H | Jan 26, 2018 | |
Martin Styner | Jan 26, 2018 | |
Ryan H | Jan 26, 2018 | |
Martin Styner | Jan 29, 2018 | |
Ryan H | Jan 29, 2018 | |
Martin Styner | Jan 30, 2018 | |
Ryan H | Jan 30, 2018 | |
Martin Styner | Jan 31, 2018 | |
Ryan H | Feb 2, 2018 | |
Martin Styner | Feb 19, 2018 | |
Ryan H | Feb 19, 2018 | |
Martin Styner | Feb 21, 2018 | |
Ryan H | Jan 31, 2018 | |
Maike Kleemeyer | Jan 10, 2018 | |
Martin Styner | Jan 10, 2018 | |
Maike Kleemeyer | Jan 11, 2018 | |
Martin Styner | Jan 11, 2018 | |
Maike Kleemeyer | Jan 15, 2018 | |
Martin Styner | Jan 17, 2018 | |
Maike Kleemeyer | Jan 18, 2018 | |
Martin Styner | Jan 18, 2018 | |
Marie Drottar | Jun 7, 2016 | |
Jacek M | Apr 27, 2016 | |
Martin Styner | Apr 27, 2016 | |
Jacek M | Apr 15, 2016 | |
Martin Styner | Apr 15, 2016 | |
Micah Johnson | Mar 27, 2018 | |
Daniel Berge | Apr 2, 2018 | |
Micah Johnson | Apr 2, 2018 | |
Juan Prieto | Apr 8, 2016 | |
Jacek M | Apr 13, 2016 | |
Martin Styner | Apr 13, 2016 | |
Jacek M | Apr 13, 2016 | |
Martin Styner | Apr 8, 2016 | |