-
Notifications
You must be signed in to change notification settings - Fork 229
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
Philips enhanced vs classic - different positioning of image #507
Comments
@baxpr please confirm this is fixed in the latest commit to the development branch. The issue was specific to enhanced DICOM images that store extremely large and verbose headers. The issue is that the NIfTI header stores vox_offset (offset from start of file to image data) as a 32-bit ( In Matlab (which has the handy flintmax function):
The analogous C code (which prints
The updated code uses an integer to store the DICOM voxel offset. |
@neurolabusc wow, that's pretty out there. Yet another fun quirk of our recent forays into multiband fmri. Results from the d8a46aa look good to me - I get matching .nii from either set of DICOM. I get one difference in the files, here, don't know its significance:
|
An offset at 163 would be in the |
Just so. Thanks!
|
Describe the bug
We have (somehow) cajoled one of our scanners into producing both the usual classic series (26k files) and an enhanced DICOM of the same series. When the .nii produced by v1.0.20210317 are viewed in fsleyes, the image position is different by one voxel in the left/right dimension. The qform/sform of the two nifti files are the same.
To Reproduce
dcm2niix v1.0.20210317, no options
Expected behavior
I'd expect identical niftis for the two dicoms.
Output Log
** Version (please complete the following information):**
Chris Rorden's dcm2niiX version v1.0.20210317 Clang12.0.0 x86-64 (64-bit MacOS)
Most recent commit on development branch is ccf263d - it produces the same result.
Chris Rorden's dcm2niiX version v1.0.20210403 Clang12.0.0 x86-64 (64-bit MacOS)
The text was updated successfully, but these errors were encountered: