Wavefronts.jl documentation
Functions
Wavefronts.retrievephase
— Functionretrievephase(intensity0, intensity1, intensity2, intensity3; correct_aberrations, mask)
Basically compose rawphase
and unwrapphase
. If correct_aberrations
is given, tries to correct
the given aberrations with the given mask.
See also: rawphase
, unwrapphase
, correct
Wavefronts.rawphase
— Functionrawphase(intensity0, intensity1, intensity2, intensity3)
Compute the raw phase from four intensity of interference pattern. The reference in the pattern of intensity intensityi
is assumed to be shifted of π/2.
See also: unwrapphase
, retrievephase
Wavefronts.unwrapphase
— Functionunwrapphase(wrappedphase)
Unwrap the phase. The method used is inspired by the Standard Experiment Laboratory script from the MSc in Optics and Photonics at Imperial College London. The input is typically the output of rawphase
.
See also: rawphase
, retrievephase
Wavefronts.correct
— Functioncorrect(aberration, data; mask=(x,y)->1)
Correct the given aberration in the data by project
ing the data on the aberration.
See also: project
Wavefronts.project
— Functionproject(aberration, data; mask=(x,y)->1)
Project the data
onto the Zernike polynomial corresponding to the aberration
in order to get the fitting Aberration
. A mask
can be used to fit only in certain parts of the data (typically usefull if your interference pattern is only relevant in a circular region). The coordinates are assumed to be normalized such that (x,y) ∈ [-1;1]².
See also: correct
Wavefronts.intensity
— Functionintensity(aberration, coordinates=:cartesian; mask=(x,y)->1)
Creates a function mapping the intensity in the given coordinates
system (:cartesian
or :polar
). This is equivalent of building two Wavefront
, one with no aberration and the other with the given aberration
.
intensity(wavefront)
Create a function mapping the intensity in the coordinates of the wavefront.
intensity(wavefront, reference)
Create a function mapping the intensity of the interference pattern of the wavefront with the reference. Both should be in the same coordinate system.
Wavefronts.field
— Functionfield(wavefront)
Create a function mapping the field in the coordinates of the wavefront.
Wavefronts.phase
— Functionphase(aberration, coordinates=:cartesian)
Create a function mapping the phase of the aberration
in the given coordinates
system (:cartesian
or :polar
).
phase(wavefront)
Create a function mapping the phase of the wavefront.
Wavefronts.amplitude
— Functionamplitude(wavefront)
Create a function mapping the amplitude of the wavefront.
Wavefronts.circ
— Functioncirc(x,y)
Circular mask of radius 1.
Types
Aberrations
Wavefronts.Aberration
— TypeRepresents an aberration. This uses Zernike polynomials.
See also: Piston
, Tilt
, Tip
, Defocus
, ObliqueAstigmatism
, VerticalAstigmatism
, HorizontalComa
, VerticalComa
, ObliqueTrefoil
, VerticalTrefoil
, Spherical
, AddAberration
, Astigmatism
, Coma
, Trefoil
Wavefronts.Piston
— TypePiston aberration.
Wavefronts.Tilt
— TypeTilt aberration.
Wavefronts.Tip
— TypeTip aberration.
Wavefronts.Defocus
— TypeDefocus aberration.
Wavefronts.ObliqueAstigmatism
— TypeObliqueAstigmatism aberration.
Wavefronts.VerticalAstigmatism
— TypeVerticalAstigmatism aberration.
Wavefronts.HorizontalComa
— TypeHorizontalComa aberration.
Wavefronts.VerticalComa
— TypeVerticalComa aberration.
Wavefronts.ObliqueTrefoil
— TypeObliqueTrefoil aberration.
Wavefronts.VerticalTrefoil
— TypeVerticalTrefoil aberration.
Wavefronts.Spherical
— TypeSpherical aberration.
Wavefronts.AddAberration
— TypeThe addition of two aberrations. It is created when +
operator is used on two Aberration
.
Wavefronts.Astigmatism
— TypeAstigmatism aberration.
Wavefronts.Coma
— TypeComa aberration.
Wavefronts.Trefoil
— TypeTrefoil aberration.
Wavefronts
Wavefronts.Wavefront
— TypeRepresents a wavefront.
Wavefronts.AddWavefront
— TypeRepresents the addition of a two wavefronts. It is created when +
operator is used on two Wavefront
.
Index
Wavefronts.Aberration
Wavefronts.AddAberration
Wavefronts.AddWavefront
Wavefronts.Astigmatism
Wavefronts.Coma
Wavefronts.Defocus
Wavefronts.HorizontalComa
Wavefronts.ObliqueAstigmatism
Wavefronts.ObliqueTrefoil
Wavefronts.Piston
Wavefronts.Spherical
Wavefronts.Tilt
Wavefronts.Tip
Wavefronts.Trefoil
Wavefronts.VerticalAstigmatism
Wavefronts.VerticalComa
Wavefronts.VerticalTrefoil
Wavefronts.Wavefront
Wavefronts.amplitude
Wavefronts.circ
Wavefronts.correct
Wavefronts.field
Wavefronts.intensity
Wavefronts.phase
Wavefronts.project
Wavefronts.rawphase
Wavefronts.retrievephase
Wavefronts.unwrapphase