-
Notifications
You must be signed in to change notification settings - Fork 7
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
Parker weights divide by 0 bug #49
Comments
@tknopp sorry about this. Can you summarize what ray geometry you used? I don't need a full MWE probably, just the part where you have a line of code like |
|
Those were very helpful clues. I have found the problem and it is in this line: Sinograms.jl/src/fbp/parker.jl Line 85 in ed697de
Surprisingly the first value is slightly ( eps ) negative. Here is MWE to reproduce it. I will fix it now.
using Unitful: cm
using Sinograms
using Sinograms: _ar
rg = SinoFanFlat(; nb=1536, na = 834,
d = 0.011067708333333334cm,
orbit = 199.15104677834458,
orbit_start = -5.651046778344568,
dsd = 51.800000000000004cm,
dod = 11.684172500000004cm,
offset = -6,
)
ar = _ar(rg) # StepRangeLen
(ar .- ar[begin])[begin] # negative!?
minimum(ar .- minimum(ar)) # negative!? |
OK, #50 should fix this and it's so simple that I just merged it without review. |
yep, thanks, the issue is fixed! |
I just tried it out and now get an error:
Apparently there is a division by zero in this line: https://github.com/JuliaImageRecon/Sinograms.jl/blob/main/src/fbp/parker.jl#L97
Not sure how to debug this further.
Originally posted by @tknopp in #47 (comment)
The text was updated successfully, but these errors were encountered: