The paper uses some basic GDCM APIs to convert DICOM-RT files into images. I just want to confirm that this is still the best way, and there are no higher-level filters or classes for the task in ITK.
I don’t think ITK can create high-quality surfaces from the usual poor-quality RT contours (planar contours with large spacing, potentially with branches, keyholes, etc). There is a contour converter class in 3D Slicer’s SlicerRT extension that you may use: either take the parts that you need (mostly in this class) or use 3D Slicer’s end-to-end solution for DICOM RT structure set, dose map, plan, and image import/export, visualization, and analysis. 3D Slicer contains ITK (accessible from both C++ and Python), so you should be able to use ITK within Slicer to do any kind of processing or analysis.
Try putting full paths there, such as C:/image/outfile.nrrd. You might be running as ordinary user, and might not have permission to write to whatever is the current directory.
You should be running the program as an administrator in order to write to C:/Program Files/, as it is a known system directory. Also possible reason: the path C:/Program Files/Plastimatch/_11F06DD_Y5_M6_P50_/ does not exist, so no file in it could be written.
Maybe pick another path? I am administrator too, and I can’t write into some folders e.g. C:\, so I write into C:\a\, as a short path which is easy to type.
By “running the program as an administrator” I meant invoke it from a command prompt which was started as an administrator:
Being a user with administrative privileges is not the same as special account “Administrator”.
I guess Microsoft’s programmers concluded that people are mostly having administrator privileges and reserved a few operations for “Administrator” account only.