Zernike polynomials


In mathematics, the Zernike polynomials are a sequence of polynomials that are orthogonal on the unit disk. Named after optical physicist Frits Zernike, winner of the 1953 Nobel Prize in Physics and the inventor of phase-contrast microscopy, they play important roles in various optics branches such as beam optics and imaging.

Definitions

There are even and odd Zernike polynomials. The even Zernike polynomials are defined as
, and the odd Zernike polynomials are defined as
where m and n are nonnegative integers with nm ≥ 0, is the azimuthal angle, ρ is the radial distance, and are the radial polynomials defined below. Zernike polynomials have the property of being limited to a range of −1 to +1, i.e.. The radial polynomials are defined as
for an even number of nm, while it is 0 for an odd number of nm. A special value is

Other representations

Rewriting the ratios of factorials in the radial part as products of binomials shows that the coefficients are integer numbers:
A notation as terminating Gaussian hypergeometric functions is useful to reveal recurrences, to demonstrate that they are special cases of Jacobi polynomials, to write down the differential equations, etc.:
for nm even.
The factor in the radial polynomial may be expanded in a Bernstein basis of for even or times a function of for odd in the range. The radial polynomial may therefore be expressed by a finite number of Bernstein Polynomials with rational coefficients:

Noll's sequential indices

Applications often involve linear algebra, where integrals over products of Zernike polynomials and some other factor build the matrix elements.
To enumerate the rows and columns of these matrices by a single index, a conventional mapping of the two indices n and m' to a single index j has been introduced by Noll. The table of this association starts as follows.
n,m'
0,01,1 1,−1 2,0 2,−2 2,23,−1 3,1 3,−3 3,3
j
12 3 4 5 6 7 8 9 10
n,m'
4,0 4,2 4,−24,44,−45,15,−15,3 5,−35,5
j
11 12 13 141516 17 18 19 20

The rule is the following.
and ANSI single-index Zernike polynomials using:
n,m'
0,01,-1 1,1 2,-2 2,0 2,23,-3 3,-1 3,1 3,3
j
0 1 2 3 4 5 6 7 8 9
n,m'
4,-4 4,-2 4,04,24,45,-55,-35,-1 5,15,3
j
10 11 12 13 14 15 16 17 18 19

Fringe/University of Arizona indices

The Fringe indexing scheme is used in commercial optical design software and optical testing.
where is the sign or signum function. The first 20 fringe numbers are listed below.
n,m'
0,01,1 1,−1 2,0 2,2 2,-23,1 3,-1 4,0 3,3
j
12 3 4 5 6 7 8 9 10
n,m'
3,-3 4,2 4,−25,15,−16,04,44,-4 5,35,-3
j
11 12 13 141516 17 18 19 20

Wyant indices

uses the "Fringe" indexing scheme except it starts at 0 instead of 1. This method is commonly used including interferogram analysis software in Zygo interferometers and the open source software DFTFringe.

Properties

Orthogonality

The orthogonality in the radial part reads
or
Orthogonality in the angular part is represented by the elementary
where is defined as 2 if and 1 if. The product of the angular and radial parts establishes the orthogonality of the Zernike functions with respect to both indices if integrated over the unit disk,
where is the Jacobian of the circular coordinate system, and where and are both even.

Zernike transform

Any sufficiently smooth real-valued phase field over the unit disk can be represented in terms of its Zernike coefficients, just as periodic functions find an orthogonal representation with the Fourier series. We have
where the coefficients can be calculated using inner products. On the space of functions on the unit disk, there is an inner product defined by
The Zernike coefficients can then be expressed as follows:
Alternatively, one can use the known values of phase function G on the circular grid to form a system of equations. The phase function is retrieved by the unknown-coefficient weighted product with of Zernike polynomial across the unit grid. Hence, coefficients can also be found by solving a linear system, for instance by matrix inversion. Fast algorithms to calculate the forward and inverse Zernike transform use symmetry properties of trigonometric functions, separability of radial and azimuthal parts of Zernike polynomials, and their rotational symmetries.

Symmetries

The parity with respect to reflection along the x axis is
The parity with respect to point reflection at the center of coordinates is
where could as well be written because is even for the relevant, non-vanishing values.
The radial polynomials are also either even or odd, depending on order n or m:
The periodicity of the trigonometric functions implies invariance if rotated by multiples of radian around the center:

Recurrence relations

The Zernike polynomials satisfy the following recurrence relation which depends neither on the degree nor on the azimuthal order of the radial polynomials:
From the definition of it can be seen that and. The following three-term recurrence relation then allows to calculate all other :
The above relation is especially useful since the derivative of can be calculated from two radial Zernike polynomials of adjacent degree:

Examples

Radial polynomials

The first few radial polynomials are:

Zernike polynomials

The first few Zernike modes, with OSA/ANSI and Noll single-indices, are shown below. They are normalized such that:.
OSA/ANSI
index
Noll
index
Wyant
index
Fringe/UA
index
Radial
degree
Azimuthal
degree
Classical name
010100Piston
13231−1Tilt
22121+1Tip
35562−2Oblique astigmatism
443420Defocus
56452+2Vertical astigmatism
6910113−3Vertical trefoil
77783−1Vertical coma
88673+1Horizontal coma
9109103+3Oblique trefoil
101517184−4Oblique quadrafoil
111312134−2Oblique secondary astigmatism
12118940Primary spherical
131211124+2Vertical secondary astigmatism
141416174+4Vertical quadrafoil

Applications

The functions are a basis defined over the circular support area, typically the pupil planes in classical optical imaging at visible and infrared wavelengths through systems of lenses and mirrors of finite diameter. Their advantages are the simple analytical properties inherited from the simplicity of the radial functions and the factorization in radial and azimuthal functions; this leads, for example, to closed-form expressions of the two-dimensional Fourier transform in terms of Bessel functions. Their disadvantage, in particular if high n are involved, is the unequal distribution of nodal lines over the unit disk, which introduces ringing effects near the perimeter, which often leads attempts to define other orthogonal functions over the circular disk.
In precision optical manufacturing, Zernike polynomials are used to characterize higher-order errors observed in interferometric analyses. In wavefront slope sensors like the Shack-Hartmann, Zernike coefficients of the wavefront can be obtained by fitting measured slopes with Zernike polynomial derivatives averaged over the sampling subapertures.
In optometry and ophthalmology, Zernike polynomials are used to describe wavefront aberrations of the cornea or lens from an ideal spherical shape, which result in refraction errors. They are also commonly used in adaptive optics, where they can be used to characterize atmospheric distortion. Obvious applications for this are IR or visual astronomy and satellite imagery.
Another application of the Zernike polynomials is found in the Extended Nijboer–Zernike theory of diffraction and aberrations.
Zernike polynomials are widely used as basis functions of image moments. Since Zernike polynomials are orthogonal to each other, Zernike moments can represent properties of an image with no redundancy or overlap of information between the moments. Although Zernike moments are significantly dependent on the scaling and the translation of the object in a region of interest, their magnitudes are independent of the rotation angle of the object. Thus, they can be utilized to extract features from images that describe the shape characteristics of an object. For instance, Zernike moments are utilized as shape descriptors to classify benign and malignant breast masses or the surface of vibrating disks. Zernike Moments also have been used to quantify shape of osteosarcoma cancer cell lines in single cell level.

Higher dimensions

The concept translates to higher dimensions D if multinomials in Cartesian coordinates are converted to hyperspherical coordinates,, multiplied by a product of Jacobi polynomials of the angular variables. In dimensions, the angular variables are spherical harmonics, for example. Linear combinations of the powers define an orthogonal basis satisfying
The explicit representation is
for even, else identical to zero.