How do i get the filename of a dicom file ? I want to open dicom file with study description -"CSP"
6 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Samson David Puthenpeedika
il 27 Ott 2021
Commentato: Samson David Puthenpeedika
il 30 Ott 2021
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 Commenti
Risposta accettata
yanqi liu
il 28 Ott 2021
clc; clear all
details = dicomCollection(fullfile(matlabroot,'toolbox/images/imdata'));
disp(details);
A=details("s3",14)
A(1,:).Filenames{1}
4 Commenti
yanqi liu
il 29 Ott 2021
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]);
Più risposte (1)
Cris LaPierre
il 27 Ott 2021
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 Commenti
Walter Roberson
il 29 Ott 2021
[Y,cmap]=dicomread(fullfile(matlabroot,'toolbox/images/imdata/dog', A.Filenames{1,1}));
m
Vedere anche
Categorie
Scopri di più su Geometric Transformation and Image Registration in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!