How to read and show multiple dicom images?
18 ビュー (過去 30 日間)
古いコメントを表示
Can anyone help me to read and show multiple dicom images from a folder...
dicomlist = dir(fullfile(pwd,'Images','*.dcm'));
for cnt = 1 : numel(dicomlist)
I{cnt} = dicomread(fullfile(pwd,'Images',dicomlist(cnt).name));
end
I have tried this code but it is not working... Please help me
6 件のコメント
Shahzanani Senin
2020 年 12 月 28 日
Hi Maryam,
Can I know how you solve the problem? How you convert them to 3D images?
Walter Roberson
2020 年 12 月 31 日
foldername = 'Images_patient001';
dicomlist = dir(fullfile(foldername,'*.dcm'));
for cnt = 1 : numel(dicomlist)
thisfile = fullfile(foldername, dicomlist(i).name);
I{cnt} = dicomread(thisfile);
end
I3D = cat(ndims(I{1})+1, I{:});
回答 (1 件)
Walter Roberson
2020 年 12 月 31 日
foldername = 'Images';
dicomlist = dir(fullfile(foldername,'*.dcm'));
for cnt = 1 : numel(dicomlist)
thisfile = fullfile(foldername, dicomlist(i).name);
I{cnt} = dicomread(thisfile);
end
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!