-
-
Notifications
You must be signed in to change notification settings - Fork 663
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
Behaviour change between ITK 5.3 and 5.4 with DICOM spacing #4794
Comments
The behavior change may probably be related to these lines introduced in the commit malaterre/GDCM@836f7a7. In fact BTW, the 'Multiple' series is just duplicated file, both with the same Instance UID (this is invalid) and z-spacing is just a matter of fallback (it is 0 or undefined). |
CC @dclunie |
The spacing parameter on the z axis when reading a single image changed between ITK 5.3 and 5.4. Issue with change raised here: InsightSoftwareConsortium/ITK#4794 This is due to the underlying change in GDCM (MediaStorage::SecondaryCaptureImageStorage deriving the z spacing from this information): malaterre/GDCM@836f7a7
Further to some discussions in #4647 and #4521, we still have a situation that isn't quite clear to us, and since those are merged already, we thought we'd create a new ticket.
Basically, there is a change in behaviour between ITK 5.3 and 5.4 that we are trying to understand if it's a bug or deliberate & correct.
If we query a DICOM file for its image spacing information, we get different results depending on:
itk::ImageSeriesReader
vs usingitk::GDCMImageIO
A small C++ test case is attached: inconsistency_in_spacing.zip
It uses a DICOM file named
D_CLUNIE_CT1_J2KR1.dcm
, from the GDCM test suite I think, but from David Clunie's collection ultimately I suppose.In ITK 5.3:
Notice everything agrees: the z spacing is 1.
In ITK 5.4 / master:
Notice now everything does not agree.
The change from 1 to 5 is presumably deliberate from #4521.
But then shouldn't that lone 1 (in the bottom left) also be 5?
Thanks.
The text was updated successfully, but these errors were encountered: