Create new DICOM RT file

Example function for creating new DICOM RT file using the Python module rs-utils within Matlab.

You are now following this Submission

Function to create a dicom RT file from binary masks using python rt-utils (github.com/qurit/rt-utils)
Inputs:
dcmIn Path for DICOM-series associated with the RT-structure
DICOM-series must have same dimensions as the binary masks
dcmOut Filename and path for the DICOM RT output file
mask Matlab Cell array of binary masks
names Matlab Cell array of ROI names
Tested with python-3.10.9 with pydicom, rs-utils and numPy in Matlab R2021a and R2022b

Cite As

Lars Tolbod (2026). Create new DICOM RT file (https://www.mathworks.com/matlabcentral/fileexchange/125945-create-new-dicom-rt-file), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with R2021a and later releases

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.1

bug fix

1.0.0