フィルターのクリア

view all slides of the DICOM file in a single image

2 ビュー (過去 30 日間)
Alberto Acri
Alberto Acri 2022 年 4 月 4 日
回答済み: Chandra 2022 年 4 月 7 日
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!

採用された回答

Chandra
Chandra 2022 年 4 月 7 日
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])
In your case use montage in place of imshow
you can also refer to cd function in matlab to find example to read all image in a folder at a time
Refer the properties of montage example size , BackgroundColor etc..

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDICOM Format についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by