필터 지우기
필터 지우기

Create a new dicom structure in dicom rt file with the contour data from the contour matrix returned from matlab contour() function

조회 수: 8 (최근 30일)
Does anybody know how to translate the coordinates returned by matlab contour() function to dicom contour data? c is the contour matrix i need to translate into dicom countour data and define as the parameter contours.
[c h]=contour(R);
info = dicominfo("RS_00170.dcm");
contourIn = dicomContours(info);
contourOut = addContour(contourIn,9,'name',contours,'Closed_planar');
info = convertToInfo(contourOut);
dicomwrite([],"RS_00170.dcm",info,CreateMode="copy");

답변 (1개)

Shubham
Shubham 2023년 9월 15일
I understand that you want to convert the contour matrix into dicom contour data.
The contour matrix consists of two rows and the data is arranged in n sets of contour lines. Here is an example from the documentation of “contour()” function.
You can iterate over this matrix and add the coordinates of the contour lines to the dicom contour.
Create a temporary matrix storing the desired coordinates [x1 y1; x2 y2 …. xn yn] from the contour matrix, and add the matrix to the dicom contour data using the “addContour()” function.
You can refer to the following for more information:
Hope this helps!!

카테고리

Help CenterFile Exchange에서 DICOM Format에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by