Clear Filters
Clear Filters

How to rename ROI Name of the rtstructure file of the DICOM?

1 view (last 30 days)
I have the list of the ROI number, ROI name, contour data, geometry type of the strucutre file (rs.dcm) in the DICOM format. I want to rename the ROI name. How can i do that? I wnat to rename 'Bowel' as 'Sigmoid'.
Thank you

Answers (1)

Moksh
Moksh on 15 Sep 2023
Hi Suman,
I understand that you have DICOM geometry data that includes information about different regions of interest (ROIs). You would like to modify the name of the second ROI from "Bowel" to "Sigmoid".
I am assuming that you have the data available in a table structure in the MATLAB workspace. Therefore, you can use the appropriate index values to modify the content of the specific cell to the desired value.
Here is an example code:
% Index of the cell you want to edit (Assuming an index here)
rowIndex = 2;
columnIndex = 2;
% Assigning a new cell to this index (Assuming the variable name for table is "data")
val = {"Sigmoid"};
data{rowIndex, columnIndex} = val;
Please refer to the below documentation for more information about manipulating table data in MATLAB:
Hope this information is helpful!
Best Regards,
Moksh Aggarwal

Categories

Find more on Read, Write, and Modify Image in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!