This package provides the functions to correct quadratic phase aberration.
To install this package, open the Julia REPL and run
julia> ]add QuadraticAberrationCorrector
or
julia> using Pkg
julia> Pkg.add("QuadraticAberrationCorrector")
Import the package first.
julia> using QuadraticAberrationCorrector
When the following code is executed, the phase ϕ
is corrected by the least squares algorithm and stored in ψ
.
julia> ψ = CorrectAberration(ϕ)
When using the weighted least square algorithm, use the following function.
julia> ψ = WeightedCorrectAberration(ϕ, 10, 10)
For more information on the algorithm, please refer to the following reference.