Closed WYVERN2742 closed 3 months ago
Reproducable with config;
Looks like the rotation is on the model axis, and not the worldspace; hence why this has not been encountered before.
Current approach is using gvxr.rotateScene()
to rotate all meshes during capture setup.
And projections are generated by rotating "root";
Probably a likely assumption that rotateScene causes root to rotate, resulting in the projections' rotation to be incorrect compared to the fixed detector and source
One fix is to rotate each sample mesh, however:
Is there a better way to rotate all scene nodes, and rotate the scene separately? Will have to find out
Use computeCTAcquisition
with None
for path
https://sourceforge.net/p/gvirtualxray/gitroot/ci/master/tree/SimpleGVXR/include/acquisition.h#l258
And then getLastProjectionSet
to get projections
https://sourceforge.net/p/gvirtualxray/gitroot/ci/master/tree/SimpleGVXR/include/acquisition.h#l458
With industrial part stl, capture rotation is incorrect. Why?
https://github.com/user-attachments/assets/aec86e7e-9444-4a01-80ba-b3d66309f4bc