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

ERROR: UndefVarError: lucy not defined #21

Open
ankursharma129 opened this issue Jul 12, 2020 · 3 comments
Open

ERROR: UndefVarError: lucy not defined #21

ankursharma129 opened this issue Jul 12, 2020 · 3 comments
Assignees

Comments

@ankursharma129
Copy link

ankursharma129 commented Jul 12, 2020

I am using Julia 1.4.2

I am trying to run the example mentioned for the Richardson-Lucy deconvolution. When running the command @time restored_img = lucy(blurred_img, blurring, iterations=1000), I see the error above. The previous lines execute without any problem.

using Images, TestImages, Deconvolution, FFTW, ZernikePolynomials, ImageView

img = channelview(testimage("cameraman"))

# model of lens aberration
blurring = evaluateZernike(LinRange(-16,16,512), [12, 4, 0], [1.0, -1.0, 2.0], index=:OSA)
blurring = fftshift(blurring)
blurring = blurring ./ sum(blurring)

blurred_img = fft(img) .* fft(blurring) |> ifft |> real
julia> @time restored_img = lucy(blurred_img, blurring, iterations=1000)
ERROR: UndefVarError: lucy not defined
Stacktrace:
 [1] top-level scope at .\util.jl:175

I also tried creating a .jl file and executing it from julia shell. Gave me the same issue.

julia> include("lucydeconvolution.jl")
ERROR: LoadError: UndefVarError: lucy not defined
Stacktrace:


 [1] top-level scope at .\util.jl:175 [inlined]
 [2] top-level scope at C:\Julia\lucydeconvolution.jl:0
 [3] include(::String) at .\client.jl:439
 [4] top-level scope at REPL[9]:1
in expression starting at C:\Julia\lucydeconvolution.jl:12

I should mention that weiner deconvolution example worked fine. It did not give any errors.

Can you suggest how to resolve this problem?

@jakubwro jakubwro self-assigned this Aug 18, 2020
@jakubwro
Copy link
Collaborator

@sudoCode123 Could you try with 1.5.0?

@roflmaostc
Copy link
Contributor

@jakubwro maybe you could also release a new version with the fixed RL?

@giordano
Copy link
Member

Done

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

4 participants