Closed StellarStorm closed 2 years ago
That is an excellent contribution. Thanks for that! :)
I'll see if I can release a new version with these improvements later this week.
Had to fix the unit tests so it took a bit longer, but it's live now. pip install --upgrade dcmrtstruct2nii==2
Thanks again for this excellent contribution. :)
Hi @Sikerdebaard! I found that when there are dicoms with two different Series Instance UID values, non-image dicoms would sometimes be loaded and treated as images. For instance, in one dataset I'm using the RD.dcm has a different ID than the CT.dcm (although they do correspond in reality), and the dose structure was getting loaded as the image. Then the program would of course crash when trying to export the structures as it couldn't map them to the (non-)image. This allows the series ID to optionally be specified so that the correct images will be loaded.
Specifically:
GetGDCMSeriesFileNames
from SimpleITK returning only the files associated with the first series ID it discovers by defaultDepending on whether you were using the CLI or the Python interface, the error messages looked like this:
CLI:
Python:
Cheers!