Page MenuHomePhabricator

DICOM-Reader cannot load files with a spacing of 0
Closed, ResolvedPublic

Description

The current implementation of the DICOM-Reader cannot create an mitkImage from a DICOM-Image if the spacing is 0.

The problem is the method DICOMImageBlockDescriptor::FixupSpacing() that tries to overwrite the spacing that GDCM/DCMTK/ITK has defined with the spacing from the actual DICOM tags.

If the tags define a spacing of 0 in any direction, this causes the resulting mitkImage to be NULL although it could actually be displayed.

Event Timeline

User engelm has pushed new remote branch:

bug-19016-error-in-fixup-spacing

User engelm has pushed new remote branch:

bug-19016-error-in-fixup-spacing-rebased

[140bc8]: Merge branch 'bug-19016-error-in-fixup-spacing-rebased'

Merged commits:

2015-06-26 13:43:54 Markus Engel [75cc33]
not attempting to fixup the pixelspacing if it's not correctly set

Has been integrated into master.

Has been integrated into 2015.05.02.