How to read DICOM RT Structure?

조회 수: 75(최근 30일)
Yun Inn
Yun Inn 2014년 3월 4일
답변: SimonD 2020년 9월 22일
I have a DICOM RT STRUCTURE file (attached) with 1 structure set. I tried dicomread(filename) but it returned an empty array. Are there any scripts to read DICOM RT STRUCTURE file with Matlab?

채택된 답변

Thomas
Thomas 2014년 3월 4일
편집: Thomas 2014년 3월 4일
or try
RSInfo=dicominfo('RS.ZZ_YUNINN_.dcm');
dicomwrite(1, 'RSDicomOut.dcm', RSInfo, 'CreateMode', 'Copy');
Then read
X=dicomread('RSDicomOut.dcm');
  댓글 수: 13
zahra
zahra 2014년 9월 3일
Hi Thomas, Excuse me I see your question now. I just did what Yun said put all of my CTs and structures to a single folder and run the code as : % Specify the path of the folder
directory='/Users/xxxx/Desktop/FolderA;
% Output into the same folder
files_out = scanDir(directory); Bests.

댓글을 달려면 로그인하십시오.

추가 답변(2개)

SimonD
SimonD 2020년 9월 22일
This is now solved with a new MATLAB function:

MARIA LIZONDO
MARIA LIZONDO 2016년 12월 22일
Hi all,
I have tried to use this code but I have problems to view the structure...
imshow(Str1)
Error using images.internal.imageDisplayValidateParams>validateCData (line 115)
Multi-plane image inputs must be RGB images of size MxNx3.
Error in images.internal.imageDisplayValidateParams (line 27)
common_args.CData = validateCData(common_args.CData,image_type);
Error in images.internal.imageDisplayParseInputs (line 78)
common_args = images.internal.imageDisplayValidateParams(common_args);
Error in imshow (line 222)
images.internal.imageDisplayParseInputs({'Parent','Border','Reduce'},preparsed_varargin{:});
Thanks in advance!
Maria
  댓글 수: 2
Walter Roberson
Walter Roberson 2018년 5월 25일
편집: Walter Roberson 2018년 5월 25일
What shows up for size(Str1) and class(Str1) ?

댓글을 달려면 로그인하십시오.

범주

Find more on DICOM Format in Help Center and File Exchange

태그

Community Treasure Hunt

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

Start Hunting!

Translated by