How do i get the filename of a dicom file ? I want to open dicom file with study description -"CSP"
조회 수: 6 (최근 30일)
이전 댓글 표시
Samson David Puthenpeedika
2021년 10월 27일
댓글: Samson David Puthenpeedika
2021년 10월 30일
Tried getting info from dicomcollection but filename variable was showing 22x1 string
details = dicomCollection(fullfile(matlabroot,'toolbox/images/imdata'));
disp(details);
A=details("s3",14)
댓글 수: 0
채택된 답변
yanqi liu
2021년 10월 28일
clc; clear all
details = dicomCollection(fullfile(matlabroot,'toolbox/images/imdata'));
disp(details);
A=details("s3",14)
A(1,:).Filenames{1}
댓글 수: 4
yanqi liu
2021년 10월 29일
clc; clear all; close all;
details = dicomCollection(fullfile(matlabroot,'toolbox/images/imdata'));
disp(details);
A=details("s3",14);
B=A(1,:).Filenames{1};
Y=[];cmap=[];
for i = 1 : length(B)
Y{i}=mat2gray(dicomread(B{i}));
end
montage(Y, 'Size', [5 5]);
추가 답변 (1개)
Cris LaPierre
2021년 10월 27일
That appears to be correct. That is a series of images (22 images). You can find them here:
fullfile(matlabroot,'toolbox/images/imdata/dog')
댓글 수: 4
Walter Roberson
2021년 10월 29일
[Y,cmap]=dicomread(fullfile(matlabroot,'toolbox/images/imdata/dog', A.Filenames{1,1}));
m
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!