Hi there, thanks for developing this tool!
I'm just a little confused by the rotation/translation values in the introduction. Specifically this part in "Rendering multiple DRRs at once":
rot = torch.tensor([[0.0, 0.0, 0.0], [0.0, 0.0, torch.pi]], device=device)
xyz = torch.tensor([[0.0, 850.0, 0.0], [0.0, 850.0, 0.0]], device=device)
img = drr(rot, xyz, parameterization="euler_angles", convention="ZXY")
- From the commands it looks like we'd expect a 180 degree flip around the y-axis (rot=[0.0, 0.0, torch.pi], convention="ZXY"). However, the image has been flipped around LR (x-axis)? I thought maybe this is defined in camera coords (z=principal axis, x/y aligned with detector), but that would also be a flip around the x-axis.
- With the translation param, I expected this to be in camera coords (instead of world coords where translations would need to be rotated also), and the underlying code looks like this is the case with the extrinsic matrix being calculated [R | Rt]. But shouldn't we be translating along the z-axis (camera's principle axis) then?
- Does convention="ZXY" apply to the rotation only?
I guess I'm just trying to understand what these x/y/z translations/rotations represent and in which coordinate systems they're expressed? Forgive me if this is already documented :)
Thanks,
Brett
Hi there, thanks for developing this tool!
I'm just a little confused by the rotation/translation values in the introduction. Specifically this part in "Rendering multiple DRRs at once":
I guess I'm just trying to understand what these x/y/z translations/rotations represent and in which coordinate systems they're expressed? Forgive me if this is already documented :)
Thanks,
Brett