What I want to do is overwriting HU value of a contoured structure in a CT image.
Starting point is a CT image as DICOM sequence and a DICOM RT file for the structure set.
I know how to read in the CT image and get the array - now I need a binary array of the structure volume, which I want to overwrite. However, I am failing to read in the structure set file. Is there a way to do this with sITK?
I already saw this discussion, however I am looking for a solution for a python script, as this is only one step within a longer workflow.
Thanks for your help!