deepdrr
deepdrr copied to clipboard
Is there any parameters about the distance between object and source?
Hi, I wonder that there is any parameters about the distance between object and source, which means the red line on the below figure.
Also, How can I get the forward-projection results on the v1.0.1-alpha
branch?
On master
, I wrote below codes on mass-attenuation.py
Then, I could get below forward-projection results.
However, On v1.0.1-alpha
, I couldn't find the right spot to insert my codes to get forward-projection results.
Thanks for your valuable research again.
Hey @artiiicy! Assuming, that the volume you want to project is in the center of rotation of the simulated C-Arm, the parameter you are looking for is the isocenter_distance
. You can find it in action in the example in line 60:
# defines the C-Arm device, which is a convenience class for positioning the Camera.
carm = CArm(
isocenter=geo.point(0, 0, 0),
isocenter_distance=800,
)
Hope that answers at least the first of your questions. Cheers, Max
See also deepdrr.SimpleDevice.align()