Sikerdebaard / dcmrtstruct2nii

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

InvalidFileFormatException #21

Closed wwq1204 closed 3 years ago

wwq1204 commented 3 years ago

I want to know why I have the following error: rtstruct.dcm is not an rt-struct dicom. but it is a rt-struct dicom file.

Sikerdebaard commented 3 years ago

This exception is raised on this line: https://github.com/Sikerdebaard/dcmrtstruct2nii/blob/master/dcmrtstruct2nii/adapters/input/contours/rtstructinputadapter.py#L23

Looks like you either gave it a directory or an invalid dicom / dicom without a StructureSetROISequence.