How to convert axial CT image to sagittal images
17 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi I have succesfully read dicom images into matlab and can visualize axial images as shown below
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/165754/image.jpeg)
when I convert it to sagittal it looks somewhat like this
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/165756/image.jpeg)
what is the reason and what is the proper way to convert axial to sagittal
image size is 512 X 512 and total of 379 slices are there
2 commentaires
Anjani kowsik Padmanabhuni
le 30 Jan 2020
Déplacé(e) : Matt J
le 19 Nov 2023
hi, i am facing the same problem. did you get the solution for this. I would appreciate if you can share the solution.
Thank you in advance.
Burak
le 19 Nov 2023
How did you convert it into sagittal ? I am trying my sagittal image view into coronal but I could not do it
Réponses (1)
timstick
le 25 Mar 2022
When you read in the files, it is usually not a guarantee they will come in "in order" from the smallest to largest z axis position. Use the sort function to fix this. You need to sort on the z position of the images, this should be the third element of the image position patient dicom tag.
So do this 1. Use dir to get names of all files in series 2. Write a for loop and read the files in using dicomread for the pixel data and dicominfo to get the z position from the third element of the image position patient element (some images also have a tag called slice location you can use) 3. Use the sort command to reorder the image once you finish reading them all in. Sort on the z position.
This will fix your issue. I've had the same problem when I started messing with dicom... ;)
0 commentaires
Voir également
Catégories
En savoir plus sur DICOM Format dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!