arranging Dicom slices in proper order

25 views (last 30 days)
Hello Everyone, I am currently working on Dicom CT lung images. I am facing the following problem. when i read all the slices of dicom data and display them , the slices are not in order in the result. I reffered previous asked question on this. But din't sort it out so far. I would appreciate any help in this matter.
The code i am using is as follows
clear variables
clc
close all
names= dir('*.dcm');
for i= 1 : size(names,1)
I(:, :,1, i)=uint8( dicomread( names(i).name));
end
montage(I,[])
lung.PNG
  2 Comments
Matthias Witkowski
Matthias Witkowski on 30 Jan 2020
There was this blog regarding how to read dicom volumes

Sign in to comment.

Answers (1)

Divya Gaddipati
Divya Gaddipati on 13 Feb 2020
Hi,
Please refer to the following link on how to read and visualize dicom files:
Hope this helps!

Categories

Find more on DICOM Format 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!