medInria / medInria-public

Open-source part of the medInria software
https://med.inria.fr/
BSD 4-Clause "Original" or "Old" License
92 stars 72 forks source link

[itkDCMTKImageIO]: software crashes when trying to open a DICOM image without the origin tag filled #1190

Closed paulineMig closed 8 months ago

paulineMig commented 9 months ago

If you try to open a DICOM in which the tag origin was not properly filled the software will crash.

This problem come from the fact that inside DCMTKImageIO::GetPositionFromPrincipalAxisIndex function the assumption is made that the tag (0020, 0032) is always filled