There are even and odd Zernike polynomials. The even Zernike polynomials are defined as
(even function over the azimuthal angle ), and the odd Zernike polynomials are defined as
(odd function over the azimuthal angle ) where m and n are nonnegative integers with n ≥ m ≥ 0 (m = 0 for spherical Zernike polynomials), is the azimuthalangle, ρ 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 n − m, while it is 0 for an odd number of n − m. 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.:
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 an integral over a product of Zernike polynomials and some other factor builds a matrix elements.
To enumerate the rows and columns of these matrices by a single index, a conventional mapping of the two indices n and l to a single index j has been introduced by Noll.[4] The table of this association starts as follows (sequence A176988 in the OEIS).
n,l
0,0
1,1
1,−1
2,0
2,−2
2,2
3,−1
3,1
3,−3
3,3
j
1
2
3
4
5
6
7
8
9
10
n,l
4,0
4,2
4,−2
4,4
4,−4
5,1
5,−1
5,3
5,−3
5,5
j
11
12
13
14
15
16
17
18
19
20
The rule is the following.
The even Zernike polynomials Z (with even azimuthal parts , where as is a positive number) obtain even indices j.
The odd Z obtains (with odd azimuthal parts , where as is a negative number) odd indices j.
Within a given n, a lower results in a lower j.
OSA/ANSI standard indices
OSA[5] and ANSI single-index Zernike polynomials using:
n,l
0,0
1,−1
1,1
2,−2
2,0
2,2
3,−3
3,−1
3,1
3,3
j
0
1
2
3
4
5
6
7
8
9
n,l
4,−4
4,−2
4,0
4,2
4,4
5,−5
5,−3
5,−1
5,1
5,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 in, e.g., photolithography.[6][7]
James C. Wyant uses the "Fringe" indexing scheme except it starts at 0 instead of 1 (subtract 1).[8] This method is commonly used including interferogram analysis software in Zygo interferometers and the open source software DFTFringe.
Orthogonality in the angular part is represented by the elementary
where (sometimes called the Neumann factor because it frequently appears in conjunction with Bessel functions) 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 (odd and even), 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 (known values) 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.
where could as well be written because as even numbers are only cases to get non-vanishing Zernike polynomials. (If n is even then l is also even. If n is odd, then l is also odd.)
This property is sometimes used to categorize Zernike polynomials into even and odd polynomials in terms of their angular dependence. (it is also possible to add another category with l = 0 since it has a special property of no angular dependence.)
Angularly even Zernike polynomials: Zernike polynomials with even l so that
Angularly odd Zernike polynomials: Zernike polynomials with odd l so that
The radial polynomials are also either even or odd, depending on order n or m:
These equalities are easily seen since with an odd (even) m contains only odd (even) powers to ρ (see examples of below).
The Zernike polynomials satisfy the following recurrence relation which depends neither on the degree nor on the azimuthal order of the radial polynomials:[10]
From the definition of it can be seen that and . The following three-term recurrence relation[11] 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:[11]
The differential equation of the Gaussian Hypergeometric Function is equivalent to
Examples
Radial polynomials
The first few radial polynomials are:
Zernike polynomials
The first few Zernike modes, at various indices, are shown below. They are normalized such that: , which is equivalent to .
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.[12][13] 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.[14][15][16]
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.[17]
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 (ROI), their magnitudes are independent of the rotation angle of the object.[18] 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[19] or the surface of vibrating disks.[20] Zernike Moments also have been used to quantify shape of osteosarcoma cancer cell lines in single cell level.[21] Moreover, Zernike Moments have been used for early detection of Alzheimer's disease by extracting discriminative information from the MR images of Alzheimer's disease, Mild cognitive impairment, and Healthy groups.[22]
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
.
(Note that a factor is absorbed in the definition of R here, whereas in the normalization is chosen slightly differently. This is largely a matter of taste, depending on whether one wishes to maintain an integer set of coefficients or prefers tighter formulas if the orthogonalization is involved.) The explicit representation is[3]
^Loomis, J., "A Computer Program for Analysis of Interferometric Data," Optical Interferograms, Reduction and Interpretation, ASTM STP 666, A. H. Guenther and D. H. Liebenberg, Eds., American Society for Testing and Materials, 1978, pp. 71–86.
^Genberg, V. L.; Michels, G. J.; Doyle, K. B. (2002). "Orthogonality of Zernike polynomials". Optomechanical design and Engineering 2002. Proc SPIE. Vol. 4771. pp. 276–286. doi:10.1117/12.482169.
^Eric P. Goodwin; James C. Wyant (2006). Field Guide to Interferometric Optical Testing. p. 25. ISBN0-8194-6510-0.
^Barakat, Richard (1980). "Optimum balanced wave-front aberrations for radially symmetric amplitude distributions: Generalizations of Zernike polynomials". J. Opt. Soc. Am. 70 (6): 739–742. Bibcode:1980JOSA...70..739B. doi:10.1364/JOSA.70.000739.
^Janssen, A. J. E. M. (2011). "A generalization of the Zernike circle polynomials for forward and inverse problems in diffraction theory". arXiv:1110.2369 [math-ph].
^Mathar, R. J. (2018). "Orthogonal basis function over the unit circle with the minimax property". arXiv:1802.09518 [math.NA].
^Tahmasbi, A. (2010). An Effective Breast Mass Diagnosis System using Zernike Moments. 17th Iranian Conf. on Biomedical Engineering (ICBME'2010). Isfahan, Iran: IEEE. pp. 1–4. doi:10.1109/ICBME.2010.5704941.
^Alizadeh, Elaheh; Lyons, Samanthe M; Castle, Jordan M; Prasad, Ashok (2016). "Measuring systematic changes in invasive cancer cell shape using Zernike moments". Integrative Biology. 8 (11): 1183–1193. doi:10.1039/C6IB00100A. PMID27735002.
^Gorji, H. T., and J. Haddadnia. "A novel method for early diagnosis of Alzheimer’s disease based on pseudo Zernike moment from structural MRI." Neuroscience 305 (2015): 361–371.
Comastri, S. A.; Perez, L. I.; Perez, G. D.; Martin, G.; Bastida Cerjan, K. (2007). "Zernike expansion coefficients: rescaling and decentering for different pupils and evaluation of corneal aberrations". J. Opt. Soc. Am. A. 9 (3): 209–221. Bibcode:2007JOptA...9..209C. doi:10.1088/1464-4258/9/3/001.
Díaz, J. A.; Fernández-Dorado, J.; Pizarro, C.; Arasa, J. (2009). "Zernike Coefficients for Concentric, Circular, Scaled Pupils: An Equivalent Expression". Journal of Modern Optics. 56 (1): 149–155. Bibcode:2009JMOp...56..131D. doi:10.1080/09500340802531224. S2CID122620015.
Hu, P. H.; Stone, J.; Stanley, T. (1989). "Application of Zernike polynomials to atmospheric propagation problems". J. Opt. Soc. Am. A. 6 (10): 1595. Bibcode:1989JOSAA...6.1595H. doi:10.1364/JOSAA.6.001595.
Liu, Haiguang; Morris, Richard J.; Hexemer, A.; Grandison, Scott; Zwart, Peter H. (2012). "Computation of small-angle scattering profiles with three-dimensional Zernike polynomials". Acta Crystallogr. A. 68 (2): 278–285. doi:10.1107/S010876731104788X. PMID22338662.
Lundström, L.; Unsbo, P. (2007). "Transformation of Zernike coefficients: scaled, translated and rotated wavefronts with circular and elliptical pupils". J. Opt. Soc. Am. A. 24 (3): 569–77. Bibcode:2007JOSAA..24..569L. doi:10.1364/JOSAA.24.000569. PMID17301846.
Barakat, R. (1980). "Optimum balanced wave-front aberrations for radially symmetric amplitude distributions: Generalizations of Zernike polynomials". J. Opt. Soc. Am. 70 (6): 739. Bibcode:1980JOSA...70..739B. doi:10.1364/JOSA.70.000739.
ten Brummelaar, T. A. (1996). "Modeling atmospheric wave aberrations and astronomical instrumentation using the polynomials of Zernike". Opt. Commun. 132 (3–4): 329–342. Bibcode:1996OptCo.132..329T. doi:10.1016/0030-4018(96)00407-5.