Page MenuHomePhabricator

Error loading plain DICOM 2D images
Closed, ResolvedPublic

Description

Some DICOM 2D images cannot be loaded in MITK independent of modality. This was noticed during the pilot integration of the MES server (MITK as backend) at the Koblenz' hospital. Their main field are 2D X-ray images (CR images).

We found so far:

The error happens in the DicomSeriesReader::LoadDicom method at the location where SortIntoBlocksFor3DplusT is called. This one returns no image blocks for this kind of 2D images.

Event Timeline

Images can be loaded via ITK but there is a problem with cr x-ray images when the MONOCHROME1 flag (0x0028,0x0004) is set. In this type of images the colors are inverted. Just inverting the image doesn't solve the problem, since the levelwindows discribed in the dicom isn't vald anymore. A better solution would be to invert the image, if needed, with the predefined slope and rescale values from the dicom image during rendering or other postprocessing steps, to also consider the change of the levelwindow value range.

Do you have example images? Have you already found out what part of the logic is wrong? The sorting part SHOULD be fine with sorting flat 3D images (oriented 2D images), but I can imagine that orientation information is missing. We need to make up this information for 2D images then to place them 3D. An implementation should be simple, there is already similar code I think. Let's talk when I'm back in Heidelberg (2 weeks)

What is the status of this bug? Changing target milestone

Loading 2D - DICOM images works in current master after the various DicomReader fixes made by Daniel.