Create new DICOM RT file

Version 1.0.1 (1.47 KB) by Lars Tolbod
Example function for creating new DICOM RT file using the Python module rs-utils within Matlab.
Updated 9 Mar 2023

View License

Function to create a dicom RT file from binary masks using python rt-utils (
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 (2024). Create new DICOM RT file (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2022b
Compatible with R2021a and later releases
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

bug fix