Skip to content

Issue with image orientation #645

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
sunly92 opened this issue Mar 18, 2025 · 3 comments
Open

Issue with image orientation #645

sunly92 opened this issue Mar 18, 2025 · 3 comments

Comments

@sunly92
Copy link

sunly92 commented Mar 18, 2025

I am trying to understand and check the CT geometry in DICOM and TIGRE.
I plot my phantom using volshow in Matlab and it gives me a display of standard DICOM orientation looks like:

Image

Then I define my geometry (pretty normal one) and plot it:

Image

Supposedly the source should be on the left hand side based on the two figures? If so, the first projection should be from the side, but the first projection shows

Image

Could you kindly inform me of what I am missing?

Thanks

@AnderBiguri
Copy link
Member

Just that dicom contains orientation information that has not been used to flip the volume. This is not very important, but of course you can just use the matlab function "flip" to flip the volume upside down if this is something you prefer.

Note that almost surely the dicom also shows that the pixels are anisotropic, ie the size in cráneo caudal direction of the pixels is much bigger than in the other two. You are also not using this in Tigre (geo.dVoxel) which is why it looks like a "squeezed" human.

@sunly92
Copy link
Author

sunly92 commented Mar 19, 2025

Thank you for replying. My question is if the source is placed at the positive X direction, and the X direction is towards the left hand side in DICOM as shown in my first figure, the starting projection should be from the side and not from the front?

@AnderBiguri
Copy link
Member

@sunly92 that would be true if MATLABs volshow used the same coordinate system as Tigre, but it seems that it doesn't.

Not super inportant anyway, just rotate (permute) your volume, and you'll be fine. Or add +pi/2 to the angle definition

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants