How do i get the filename of a dicom file ? I want to open dicom file with study description -"CSP"

6 次查看(过去 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)

采纳的回答

yanqi liu
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
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
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 个评论

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Geometric Transformation and Image Registration 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by