arranging Dicom slices in proper order
13 views (last 30 days)
Show older comments
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,[])
2 Comments
Answers (1)
Divya Gaddipati
on 13 Feb 2020
Hi,
Please refer to the following link on how to read and visualize dicom files:
Hope this helps!
See Also
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!