eigenvivek/DiffPose

Code issue

Closed this issue · 2 comments

I have a question about getting the volume
image
I understood the operation the swapaxes of the volume, but I don’t understand why [::-1] is needed.

Hi @springXIACJ , [::-1] is applied to reverse the x-axis. There's a lot of ambiguity in how to orient a cube of CT data in physical space. Reversing the x-axis was determined through experimentation - it was necessary to make the poses from the DeepFluoro dataset match the renderings I was getting from DiffDRR.

Ideally, I would like to build a canonical orientation system into DiffDRR (i.e., something that mimics the orientation used by Slicer or ITK-Snap when you load a CT in it). But that's a future work!

Closing this, feel free to reopen if you are having any issues with your data!