how to expand a ROI in a DICOM image in MATLAB

5 ビュー (過去 30 日間)
Farah
Farah 2024 年 1 月 31 日
回答済み: Sai Pavan 2024 年 2 月 12 日
I have a dicom contour file, I was able to create dicomcontour object now I want to expand one of the ROIs that I have what's the workflow to do so?

回答 (1 件)

Sai Pavan
Sai Pavan 2024 年 2 月 12 日
Hello Farah,
I assume you want to add more Contour Data to the ROIContourSequence. The ROIs of the dicomContours object can be expanded dynamically by directly setting the next element of ContourData array of an item, whose original size is 813, by accessing the struct data as follows with dot indexing:
info.ROIContourSequence.Item_2.ContourSequence.Item_12.ContourData(814) = 401.13;
The length of a ContourData array of an item within the ROIContourSequence is updated dynamically when the above statement is executed.
However, if you want to add a new ROI sequence to the ROIs property of dicomContours object, please refer to the below documentation of an example illustrating the workflow to add and modify ROIs: https://www.mathworks.com/help/images/add-and-modify-rois-of-dicomrt-contour-data.html
Hope it helps!

カテゴリ

Help Center および File ExchangeDICOM Format についてさらに検索

タグ

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by