dicompyler/dicompyler-core

RTSTRUCT dicom files from Oncentra Prostate software produce empty DVH

gacou54 opened this issue · 1 comments

Hi, first of all thank you for this nice library!

I encounter a problem when calculating DVH with RTSTRUCT dicom files from Oncentra Prostate v4 software. The resulting DVH is always empty. This is because the dataset in those RTSTRUCT files does not have a ContourImageSequence tag. There is the condition in GetStructureCoordinates method where it appears (in dicomparser.py):

contourimagesequence

This tag does not seems to be used later in the code.

As you can see, this tag is not in RTSTRUCT dicom files from Oncentra Prostate v4:
contourimagenotthere

But in other cases (not Oncentra Prostate) they are:
contourimageisthere

I have solved my problem by simply removing this condition:
master...gacou5:bug/OCP-dicom-file-fail

I was wondering if there was any reason for the presence of this condition that I have not find out. If no I could do a Pull Request to remove this.

Thank you,
Gabriel

Hi no problem and thank you for the kind words.

I believe you are correct. This condition is definitely not used anywhere and can be safely removed.

Also according to the DICOM standard it is a Type 3 element and thus isn't guaranteed to be present.

If you want to make a PR about this, I would be glad to merge it.

Thanks!