Sikerdebaard / dcmrtstruct2nii

DICOM RT-Struct to mask
MIT License
91 stars 27 forks source link

InvalidFileFormatException #7

Closed fishdda closed 4 years ago

fishdda commented 4 years ago

InvalidFileFormatException: File C:/GitFolder/RL-Application-in-TPS/AUTO-PLANNING/AutoTemplateTuning/projects/dose prediction/DATA/003/003_StrctrSets.dcm is not an rt-struct dicom

Do you know why this error occurs?

Sikerdebaard commented 4 years ago

Most likely this is caused because the program can't find the 'StructureSetROISequence' in the RT-Struct file.

The error most likely originates from this line of code: https://github.com/Sikerdebaard/dcmrtstruct2nii/blob/master/dcmrtstruct2nii/adapters/input/contours/rtstructinputadapter.py#L19