deepdrr icon indicating copy to clipboard operation
deepdrr copied to clipboard

Is there any parameters about the distance between object and source?

Open minjoony opened this issue 3 years ago • 1 comments

Hi, I wonder that there is any parameters about the distance between object and source, which means the red line on the below figure.

image

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 image

Then, I could get below forward-projection results. image

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.

minjoony avatar Feb 25 '21 08:02 minjoony

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

maxrohleder avatar Mar 31 '21 16:03 maxrohleder

See also deepdrr.SimpleDevice.align()

benjamindkilleen avatar Nov 14 '23 15:11 benjamindkilleen