Effacer les filtres
Effacer les filtres

How to convert axial CT image to sagittal images

17 vues (au cours des 30 derniers jours)
praveen mirajkar
praveen mirajkar le 6 Juin 2016
Déplacé(e) : Matt J le 19 Nov 2023
Hi I have succesfully read dicom images into matlab and can visualize axial images as shown below
when I convert it to sagittal it looks somewhat like this
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
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
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

Connectez-vous pour commenter.

Réponses (1)

timstick
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... ;)

Catégories

En savoir plus sur DICOM Format dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by