Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FanBeam and FanFlat geometry error #1605

Open
NovinceNO1 opened this issue Jun 16, 2021 · 1 comment
Open

FanBeam and FanFlat geometry error #1605

NovinceNO1 opened this issue Jun 16, 2021 · 1 comment

Comments

@NovinceNO1
Copy link

Hello, @adler-j . I tried to run the following code with ODL in ubuntu 16.04 with python3.6. The original geometry I find in your public code for Learned Primal Dual used was FanFlat, which is now not an available attribute, so I changed it into FanBeam, but the error shown in the attached picture occurred. I am not sure how to solve it. Appreciate it if you can offer any advice!

#############################
import numpy as np
import odl
size = 512
space = odl.uniform_discr([-128, -128], [128, 128], [size, size],
dtype='float32')
angle_partition = odl.uniform_partition(0, 2 * np.pi, 60)
detector_partition = odl.uniform_partition(-360, 360, 736)
geometry = odl.tomo.FanFlatGeometry(angle_partition, detector_partition,
src_radius=500, det_radius=500)
ray_trafo = odl.tomo.RayTransform(space, geometry)

#############################

4821623854391_ pic_hd

@liyugua
Copy link

liyugua commented Dec 31, 2021

'odl.tom' has no attribute 'FanFlatGeometry'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants