8000 Limited angle CBCT reconstruction issue · Issue #154 · LLNL/LEAP · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Limited angle CBCT reconstruction issue #154

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

Open
RyanLK opened this issue Mar 5, 2025 · 2 comments
Open

Limited angle CBCT reconstruction issue #154

RyanLK opened this issue Mar 5, 2025 · 2 comments

Comments

@RyanLK
Copy link
RyanLK commented Mar 5, 2025

I tried to follow the closed issue #40 for limited angle CBCT reconstruction. In #40, fan-beam geometry was used and I use conebeam geometry:

numRows = 768
numCols = 1024
numAngles = 360
angles=360.0
pixelSize = 0.388
device_1=th.device("cuda:0")
leapct.set_conebeam(numAngles, numRows, numCols, pixelSize, pixelSize, 0.5*(numRows-1), 0.5*(numCols-1)-412, leapct.setAngleArray(numAngles, angles), 1000, 1500)
leapct.set_offsetScan(True)
leapct.set_volume(256, 256, 87, voxelWidth=2*0.908, voxelHeight=2.0)
leapct.print_parameters()
g = leapct.allocateProjections()
f = leapct.allocateVolume()
f = leapct.load_volume('..\pro_001_cbct_crop_fit.npy').astype(np.float32)
f = f/30
f = np.ascontiguousarray(f)
leapct.project(g,f)

If numAngles and angles are 360, the projections are correct:

Image
but if numAngles and angles are other than 360, the projections are very strange and incorrect:

Image

Could you let me know if there are some setting incorrect and how can I fix this issue?

Thank you very much.

Ryan

@kylechampley
Copy link
Collaborator

To fix this issue insert the following command before you run any of the projectors

leapct.set_diameterFOV(1.0e16)

The issue is that you are doing an offset scan, but offset scans only work if you have projections over 360 degrees or more, so when you specify less than 360 degrees, LEAP essentially turns offset scan to false and uses a smaller field of view. The command above turns off the field of view mask.

@RyanLK
Copy link
Author
RyanLK commented Mar 9, 2025

Hi Kyle,

Thank you very much for your help. It works.
this is the reconstruction results with RWSL, iterations=50, 90 degree views
Image

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

No branches or pull requests

2 participants
0