-
Notifications
You must be signed in to change notification settings - Fork 12
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
leaptorch Projector's bp and fbp error #143
Comments
I may need some clarification on what the issue is here. What I can tell you is that f is the backprojection of g and f0 is the FBP reconstruction of g, so the scaling and appearance of f and f0 should definitely be different. Note that backprojection is NOT the inverse of forward projection. Backprojection is the ADJOINT of forward projection. |
|
Sorry for the slow response; I was on vacation. You may just want to use the tomographicModels class in leapctype.py. leaptorch has the PyTorch autograd stuff in it, but if all you want is to perform forward and back projections, just use leapctype; it works with both PyTorch tensors and numpy arrays. Just use it like this; from leapctype import * Forward Projectionleapct.project(g,f) Backprojectionleapct.backproject(g,f) There are several examples of this in the leapctype demos folder. For example, see here. |
Hi, when I use Projector class in leaptorch:
proj = Projector(forward_project=False, use_static=True, use_gpu=True, gpu_device=device, batch_size=batchSize)
f = proj(g)
proj.leapct.fbp(g, f0)
I found that f is in the order of 10^3, while f0 is in the order 10^(-4), is here any mistake I made? Actually I need to use f= proj(g) in my program, but the result's order is far from the order of FBP's result.
The text was updated successfully, but these errors were encountered: