How to read multiples DICOM images

8 views (last 30 days)
hi,
can u tell me the procedure of reading multiple dicom images from a folder??
I have a folder named as 'Images', and dicom images are there, so i want to load these images in matlab.
I shall be thankful...
  1 Comment
Walter Roberson
Walter Roberson on 30 Dec 2011
http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F

Sign in to comment.

Accepted Answer

Chandra Kurniawan
Chandra Kurniawan on 30 Dec 2011
dicomlist = dir(fullfile(pwd,'Images','*.dcm'));
for cnt = 1 : numel(dicomlist)
I{cnt} = dicomread(fullfile(pwd,'Images',dicomlist(cnt).name));
end
  19 Comments
Bhavna Pancholi
Bhavna Pancholi on 19 Jun 2018
Edited: Walter Roberson on 27 Mar 2020
hello,
dicomlist = dir(fullfile(pwd,'Images','*.dcm'));
for cnt = 1 : numel(dicomlist)
I{cnt} = dicomread(fullfile(pwd,'Images',dicomlist(cnt).name));
end
In this program, if i want to read 10 images from a folder, which type of changes are needed?
what is the significance of "pwd" ?
shivan artosh
shivan artosh on 27 Mar 2020
Edited: shivan artosh on 27 Mar 2020
Hello Bhavna
for loop from 1 to 10

Sign in to comment.

More Answers (0)

Categories

Find more on DICOM Format in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!