Page MenuHomePhabricator

Dicom Reader can only Read 4D Dicom Data
Closed, ResolvedPublic

Description

If i try to convert a 3D Dicom mitk Image into a 3D Dicom itk Image, there occurs an error named: "Image Dimension is 4 instead of 3". I guess i found the position in code which triggers this error:

In File mitkDicomSeriesReader.txx is the function LoadDicom(const StringContainer &filenames, DataNode &node) implemented. There is an image type defined by using: typedef itk::Image<PixelType, 4> ImageType; which holds 4 Dimensions of an Image. I guess this is the Problem. There is no Reader for 3D Data, because the Image type is defined fix as a 4D Type.

If i change the 4 into a 3, it works fine. But this is only a temporary solution for me :)))

Event Timeline

[SVN revision 24574]
FIX (#4648): Instead of hard-setting the number dimensions to 4 in the itk image, it is checked if there are more then one time step. If there is only one, dimensions is set to 3.