How to convert axial CT image to sagittal images
16 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Anjani kowsik Padmanabhuni
el 30 de En. de 2020
Movida: Matt J
el 19 de Nov. de 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
el 19 de Nov. de 2023
How did you convert it into sagittal ? I am trying my sagittal image view into coronal but I could not do it
Respuestas (1)
timstick
el 25 de Mzo. de 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 comentarios
Ver también
Categorías
Más información sobre DICOM Format en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!