How to convert axial CT image to sagittal images

16 次查看(过去 30 天)
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 个评论
Anjani kowsik Padmanabhuni
移动:Matt J 2023-11-19
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 2023-11-19
How did you convert it into sagittal ? I am trying my sagittal image view into coronal but I could not do it

请先登录,再进行评论。

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 DICOM Format 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by