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?
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.
I also tried creating a .jl file and executing it from julia shell. Gave me the same issue.
I should mention that weiner deconvolution example worked fine. It did not give any errors.
Can you suggest how to resolve this problem?