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

DICOM: Fix slice timing import for mosaic data #1359

Merged
merged 1 commit into from Jun 2, 2018

Conversation

Lestropie
Copy link
Member

The wrong member function of class File::DICOM::CSAEntry was being used to pre-allocate the memory required to store slice timing, resulting in a mismatch in length between this data vector and the number of slices in the image.

For the sake of web searches, the issue that this fix corrects looks something like:

[WARNING] Number of entries in mosaic slice timing (82) does not match number of images in mosaic (60); omitting

Closes #1252.

Should probably wait for @jdtournier to run against private DICOM test suite.

The wrong member function of class File::DICOM::CSAEntry was being used to pre-allocate the memory required to store slice timing, resulting in a mismatch in length between this data vector and the number of slices in the image.
Closes #1252.
@Lestropie Lestropie added the bug label Jun 1, 2018
@Lestropie Lestropie self-assigned this Jun 1, 2018
@Lestropie Lestropie requested a review from jdtournier June 1, 2018 05:42
@Lestropie
Copy link
Member Author

Note: This only affects the ability of MRtrix3 to create the key-value entry "SliceTiming" in the image header, which may then be used by dwipreproc when instructing eddy to use slice-to-volume motion correction. Otherwise, it's just an annoying erroneous warning.

@thijsdhollander
Copy link
Contributor

Thanks for looking into it! Should definitely go to master once tested by Donald. It's making a lot of people panic / worry.

@jdtournier
Copy link
Member

OK, just put this through its paces on my DICOM test suite, it's all good!

@jdtournier jdtournier merged commit 92e06e0 into master Jun 2, 2018
@jdtournier jdtournier deleted the dicom_mosaic_slice_timing_fix branch June 2, 2018 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DICOM slice timing import for mosaic sequences
3 participants