Hello, I’m trying to generate DRR images from CT slices at certain angles (0°, 45°, 90°…). I’m using this C++ DRR example rewrote in Python: https://github.com/Vojtech-Benda/DRR_generation/blob/main/drrGen.py
I managed to get a reasonable result for AP view (0° rotation around z-axis (head to feet)), however I feel like one or more geometry parameters are wrong (volume center and origin, output image origin etc.).
Also, changing the rotation around z-axis moves the CT volume outside x-ray source’s “view”, which is most likely caused by the transformation’s center not being in the volume’s center.
I tried changing various parameters with similar or no results. Following on that, can I choose arbitrary size of the output DRR image or is it dependent on the distances between x-ray source, CT volume and its size and output image.
Thanks in advance.