brianmanderson / Dicom_RT_and_Images_to_Mask

Tools to help with the conversion of DICOM images, RT Structures, and dose to useful Python objects. Essentially DICOM to NumPy and SimpleITK Images
GNU General Public License v3.0
87 stars 28 forks source link

Write output for multiple RS associated with single CT #23

Closed RafeMcBeth closed 2 years ago

RafeMcBeth commented 2 years ago

Hi Brian! Thank you for sharing this fantastic tool.

When using the write_parallel function, Is it possible to write out multiple RS masks to .nii.gz files and corresponding excel file? My data folders contain the CT scan and 2 RS files (clinical_1, clinical_2) in the same folder as the CT scan.

Dicom_reader has no problem identifying and adding the different RS files to the dictionaries, but when writing out using the write_parallel function, it seems only to write out the masks for a single RS file. I tried to quickly implement a write_parallel_mult calling the get_images_and_mask_mult function, but I think I'm missing something.

Any help would be greatly appreciated.

Best Regards, Rafe

brianmanderson commented 2 years ago

Hi Rafe,

No problem! I'm glad it's been somewhat helpful for you. Sorry for the delay in response, does this mean that you were able to solve your issue?

Best, Brian