Zernike Polynomials and Their Use in Describing The Wavefront Aberrations of The Human Eye
Zernike Polynomials and Their Use in Describing The Wavefront Aberrations of The Human Eye
Zernike Polynomials and Their Use in Describing The Wavefront Aberrations of The Human Eye
Patrick Y. Maeda
[email protected]
Stanford University
Imaging of the retina and other structures in the eye using adaptive optics
Introduction/Motivation
General Optical System Description
Monochromatic Wavefront Aberrations
PSF and MTF calculations
Why Use Zernike Polynomials?
Definition of Zernike Polynomials
Describing Wave Aberrations using Zernike Polynomials
Simulating the Effects of Wave Aberrations
Wavefront Measurement and Data Fitting with Zernike
Polynomials
Conclusion, References, Source Code Appendix
Object
Plane
y Pupil Coordinate System Normalized Pupil Coordinate System
Optical
System y y
Object x
h
Height y
Image
Plane
Optical x r ρ
y
Axis θ θ
x x
x a 1
z
h’
Image
Height
x = r cos(θ) x = ρ cos(θ)
y = r sin(θ) y = ρ sin(θ)
θ = tan-1(x/y) θ = tan-1(x/y)
r = (x2+y2)1/2 ρ = r/a = (x2+y2)1/2
2
Exit 1 i W ( x, y )
2
Pupil PSF ( x, y ) 2 2 FT p( x, y ) e x y
d Ap fx
d
, fy
d
Wave
FT PSF
Aberration MTF ( s x , s y )
W(x,y) FT PSF s x 0 , s y 0
Aberrated Image
Reference Plane
z
Wavefront x
Spherical
Wavefront
The wavefront aberration, W(x,y), is the distance, in optical path length (product of the refractive index
and path length), from the reference sphere to the wavefront in the exit pupil measured along the ray as
a function of the transverse coordinates (x,y) of the ray intersection with the reference sphere. It is not
the wavefront itself but it is the departure of the wavefront from the reference sphere.
Patrick Y. Maeda 3/10/03
Stanford University
Describing Optical Aberrations Psych 221 / EE 362
Winter 2002-2003
Z nm ( , ) N nm Rn ( ) cos(m ) for m 0 , 0 1 , 0 2
m
N nm Rn ( ) sin( m ) for m 0 , 0 1 , 0 2
m
k n
W ( , ) W n
m
Z nm ( , )
n m n
1 m
k n
Wn ( N n Rn ( ) sin(m )) Wnm ( N nm Rn ( ) cos(m ))
m m m
n m n m 0
j max
W ( x, y ) W Z
j 0
j j ( x, y )
WaveAberration.m
,
0 m ZernikePolynomial.m Piston
Z n
1 Tilt
Astigmatism (m=-2,2),
2 Defocus(m=0)
Coma (m=-1,1),
3 Trefoil(m=-3,3)
Spherical Aberration
4 (m=0)
Secondary Spherical
6 Aberration (m=0)
Patrick Y. Maeda 3/10/03
Stanford University
Double-Index Zernike Polynomial PSFs Psych 221 / EE 362
Winter 2002-2003
,
0 m ZernikePolynomialPSF.m Piston
Z n
1 Tilt
Astigmatism (m=-2,2),
2 Defocus(m=0)
Coma (m=-1,1),
3 Trefoil(m=-3,3)
Spherical Aberration
4 (m=0)
Secondary Spherical
6 Aberration (m=0)
Patrick Y. Maeda 3/10/03
Stanford University
Double-Index Zernike Polynomial MTFs Psych 221 / EE 362
Winter 2002-2003
Pupil Diameter = 4 mm
0.8
Piston
0.7
0 ZernikePolynomialMTF.m
0.6
0.5
0.4
0.3
0.2
0.1
0 to 50 cycles/degree
0
= 570 nm
0 10 20 30 40 50
,
1 1
m
0.9 0.9
Z
0.8 0.8
1 Tilt
0.6 0.6
0.5 0.5
n
0.4 0.4
0.3 0.3
0.2 0.2
MTFy
0.1 0.1
0 0
0 10 20 30 40 50 0 10 20 30 40 50
1 1 1
MTFx
0.9 0.9 0.9
Astigmatism (m=-2,2),
0.8 0.8 0.8
2
0.6 0.6 0.6
Defocus(m=0)
0.4 0.4 0.4
0 0 0
0 10 20 30 40 50 0 10 20 30 40 50 0 10 20 30 40 50
1 1 1 1
Coma (m=-1,1),
0.8 0.8 0.8 0.8
3
0.6 0.6 0.6 0.6
Trefoil(m=-3,3)
0.4 0.4 0.4 0.4
0 0 0 0
0 10 20 30 40 50 0 10 20 30 40 50 0 10 20 30 40 50 0 10 20 30 40 50
1 1 1 1 1
Spherical Aberration
0.8 0.8 0.8 0.8 0.8
4
0.6 0.6 0.6 0.6 0.6
(m=0)
0.4 0.4 0.4 0.4 0.4
0 0 0 0 0
0 10 20 30 40 50 0 10 20 30 40 50 0 10 20 30 40 50 0 10 20 30 40 50 0 10 20 30 40 50
1 1 1 1 1 1
5
0.5 0.5 0.5 0.5 0.5 0.5
1,1)
0.4 0.4 0.4 0.4 0.4 0.4
0 0 0 0 0 0
0 10 20 30 40 50 0 10 20 30 40 50 0 10 20 30 40 50 0 10 20 30 40 50 0 10 20 30 40 50 0 10 20 30 40 50
1 1 1 1 1 1 1
Secondary Spherical
0.9 0.9 0.9 0.9 0.9 0.9 0.9
6
0.5 0.5 0.5 0.5 0.5 0.5 0.5
Aberration (m=0)
0.4 0.4 0.4 0.4 0.4 0.4 0.4
0 0 0 0 0 0 0
0 10 20 30 40 50 0 10 20 30 40 50 0 10 20 30 40 50 0 10 20 30 40 50 0 10 20 30 40 50 0 10 20 30 40 50 0 10 20 30 40 50
Piston
0.7
0 ZernikePolynomialMTF.m
0.6
0.5
0.4
0 to 50 cycles/degree
0.3
0.2
0.1
= 570 nm
0 10 20 30 40 50
,
1 1
m
0.9 0.9
Z
0.8 0.8
1 Tilt
0.6 0.6
0.5 0.5
n
0.4 0.4
0.3 0.3
0.2 0.2
MTFy
0.1 0.1
0 0
0 10 20 30 40 50 0 10 20 30 40 50
1 1 1
MTFx
0.9 0.9 0.9
Astigmatism (m=-2,2),
0.8 0.8 0.8
2
0.6 0.6 0.6
Defocus(m=0)
0.4 0.4 0.4
0 0 0
0 10 20 30 40 50 0 10 20 30 40 50 0 10 20 30 40 50
1 1 1 1
Coma (m=-1,1),
0.8 0.8 0.8 0.8
3
0.6 0.6 0.6 0.6
Trefoil(m=-3,3)
0.4 0.4 0.4 0.4
0 0 0 0
0 10 20 30 40 50 0 10 20 30 40 50 0 10 20 30 40 50 0 10 20 30 40 50
1 1 1 1 1
Spherical Aberration
0.8 0.8 0.8 0.8 0.8
4
0.6 0.6 0.6 0.6 0.6
(m=0)
0.4 0.4 0.4 0.4 0.4
0 0 0 0 0
0 10 20 30 40 50 0 10 20 30 40 50 0 10 20 30 40 50 0 10 20 30 40 50 0 10 20 30 40 50
1 1 1 1 1 1
5
0.5 0.5 0.5 0.5 0.5 0.5
1,1)
0.4 0.4 0.4 0.4 0.4 0.4
0 0 0 0 0 0
0 10 20 30 40 50 0 10 20 30 40 50 0 10 20 30 40 50 0 10 20 30 40 50 0 10 20 30 40 50 0 10 20 30 40 50
1 1 1 1 1 1 1
Secondary Spherical
0.9 0.9 0.9 0.9 0.9 0.9 0.9
6
0.5 0.5 0.5 0.5 0.5 0.5 0.5
Aberration (m=0)
0.4 0.4 0.4 0.4 0.4 0.4 0.4
0 0 0 0 0 0 0
0 10 20 30 40 50 0 10 20 30 40 50 0 10 20 30 40 50 0 10 20 30 40 50 0 10 20 30 40 50 0 10 20 30 40 50 0 10 20 30 40 50
0.8 0.8
0.6 0.6
0.4 0.4
0.2 0.2
0 0
0 10 20 30 40 50 0 10 20 30 40 50
s x (cycle/deg) s y (cycle/deg)
WaveAberrationMTF.m
WaveAberration.m WaveAberrationPSF.m
Patrick Y. Maeda 3/10/03
Stanford University
Measurement Setup Psych 221 / EE 362
Winter 2002-2003
y
Pupil
Iris
z
x
Incoming
Light Beam
Lenslet
Array
Light
Source
Lenslet Array
y(x1, y1)
Aberrated y(x1, y2)
Wavefront
y(x1, y3)
y(x1, y4)
Focal Length f
Patrick Y. Maeda 3/10/03
Stanford University
Data Fitting with Zernike Polynomials Psych 221 / EE 362
Winter 2002-2003
W ( x, y ) x( x, y )
x f
W ( x, y ) y ( x, y )
y f
W ( x, y ) W j Z j ( x , y )
j
Equations (14) and (15) can be used to determine the Wj’s using Least-squares Estimation
Let,
x( x, y ) y ( x, y )
b( x, y ) and c ( x, y )
f f
Z j ( x, y ) Z j ( x, y )
g j ( x, y ) and h j ( x, y )
x y
Equations (14) and (15) can be expressed in matrix form
b( x1 , y1 ) g1 ( x1 , y1 ) g 2 ( x1 , y1 ) g j max ( x1 , y1 )
b( x , y ) g ( x , y ) g ( x , y ) g j max ( x1 , y 2 )
1 2 1 1 2 2 1 2
W1
b( x k , y k ) g1 ( x k , y k ) g 2 ( x k , y k ) g j max ( x k , y k ) W2
2k 2 j max
c( x1 , y1 ) h1 ( x1 , y1 ) h2 ( x1 , y1 ) h j max ( x1 , y1 )
1 2 h1 ( x1 , y 2 ) h2 ( x1 , y 2 )
c ( x , y ) h j max ( x1 , y 2 ) W j max
c( x k , y k ) h1 ( x k , y k ) h2 ( x k , y k ) h j max ( x k , y k )
or
The Least - squares estimate of is given by :
LS ( T ) 1 T
where T is the matrix transpose of
Patrick Y. Maeda 3/10/03
Stanford University
Benefits of Orthogonality Psych 221 / EE 362
Winter 2002-2003
Note that a non - orthogonal set of basis functions may result in the inversion of an
ill - conditioned matrix, ( T ) 1
[1] MacRae, S. M., Krueger, R. R., Applegate, A. A., (2001), Customized Corneal Ablation, The Quest for
SuperVision, Slack Incorporated.
[2] Williams, D., Yoon, G. Y., Porter, J., Guirao, A., Hofer, H., Cox, I., (2000), “Visual Benefits of Correcting
Higher Order Aberrations of the Eye,” Journal of Refractive Surgery, Vol. 16, September/October 2000,
S554-S559.
[3] Thibos, L., Applegate, R.A., Schweigerling, J.T., Webb, R., VSIA Standards Taskforce Members (2000),
"Standards for Reporting the Optical Aberrations of Eyes," OSA Trends in Optics and Photonics Vol. 35,
Vision Science and its Applications, Lakshminarayanan,V. (ed) (Optical Society of America, Washington,
DC), pp: 232-244.
[4] Goodman, J. W. (1968). Introduction to Fourier Optics. San Francisco: McGraw Hill
[5] Gaskill, J. D. (1978). Linear Systems, Fourier Transforms, Optics. New York: Wiley
[6] Fischer, R. E. (2000). Optical System Design. New York: McGraw Hill
[7] Thibos, L. N.(1999), Handbook of Visual Optics, Draft Chapter on Standards for Reporting Aberrations of
the Eye. http://research.opt.indiana.edu/Library/HVO/Handbook.html
[8] Bracewell, R. N. (1986). The Fourier Transform and Its Applications. McGraw Hill
[9] Mahajan, V. N. (1998). Optical Imaging and Aberrations, Part I Ray Geometrical Optics, SPIE Press
[10] Liang, L., Grimm, B., Goelz, S., Bille, J., (1994), “Objective Measurement of Wave Aberrations of the
Human Eye with the use of a Hartmann-Shack Wave-front Sensor,” J. Opt. Soc. Am. A, Vol. 11, No. 7,
1949-1957.
[11] Liang, L., Williams, D. R., (1997), “Aberration and Retinal Image Quality of the Normal Human Eye,” J. Opt.
Soc. Am. A, Vol. 14, No. 11, 2873-2883.
zernike.m
ZernikePolynomial.m
ZernikePolynomialPSF.m
ZernikePolynomialMTF.m
WaveAberration.m
WaveAberrationPSF.m
WaveAberrationMTF.m