reading series of DICOM images on MATLAB
Show older comments
hello sir, i tried to display images on matlab and i get succeeded in that.. but i am stuck up in to display 4 images in quadrangle format .. please help me .. Thanks in advance!!
2 Comments
saarthak agarwal
on 9 Oct 2020
Could you please provide the code for displaying multiple dicom files on MATLAB?
Walter Roberson
on 10 Oct 2020
projectdir = 'Directory/of/dicom/files/';
dinfo = dir( fullfile(projectdir, '*.dcm') );
filenames = fullfile(projectdir, {dinfo.name});
nfiles = length(filenames);
images = cell(nfiles,1);
for K = 1 : nfiles
images{K} = dicomread(filenames{K});
end
montage(images)
Accepted Answer
More Answers (0)
Categories
Find more on Read and Write Image Data from Files in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!