view all slides of the DICOM file in a single image
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Alberto Acri
am 4 Apr. 2022
Beantwortet: Chandra
am 7 Apr. 2022
Hi there! Is there a possibility to view all DICOM files present in a folder?
I imported them using this code:
dicomlist = dir(fullfile(pwd,'Images','*.dcm'));
for cnt = 1 : numel(dicomlist)
I{cnt} = dicomread(fullfile(pwd,'Images',dicomlist(cnt).name));
end
How can I continue this?
I would like to do something like this (which applies to a DICOM file though):
info = dicominfo("name_file_DICOM.dcm");
Y = dicomread(info);
figure
imshow(Y,[]);
Thanks!
0 Kommentare
Akzeptierte Antwort
Chandra
am 7 Apr. 2022
Hi,
To view all images in a single figure window use
Here is an example to view the image
>>[X,map] = dicomread("US-PAL-8-10x-echo.dcm");
>>montage(X,map,"Size",[2 5])
Refer the properties of montage example size , BackgroundColor etc..
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu DICOM Format finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!