It is well known that in a situation close to ideal, when the corneal surface presents only small and smooth deviations from a sphere, almost any reasonable fitting scheme renders good results. In particular, in such a situation, the use of the Zernike polynomials is perfectly justified. Hence, to assess the fitting properties of the different approaches, we have chosen the following three model surfaces with high surface regularity indices (SRIs):
-
Surface A: a “flat sphere”, roughly simulating a surgically altered cornea and a surface with a gradient discontinuity (see
Fig. 4).
-
Surface B: a sphere with a radial deformation, or “scar” (
Fig. 1).
-
Surface C: a cornea with topographic asymmetry and decentered corneal apex (keratoconus), but with an incomplete set of data (see
Fig. 6).
In cases A and B we obtain the elevation data at a discrete set of points
Ps , s = 1,…,6144, with polar coordinates (ρ
i , θ
j ) where ρ
i =
i/24,
i = 1,…,24, whereas the meridians θ
j ,
j = 1,…,256 are equidistributed in (0, 2π). For the surface C, we collect the elevations at a subset of the nodes just described (
Fig. 2), simulating the standard situation in clinical practice, when some of the measurements are obstructed by the eyelashes or other obstacles. A common procedure in such cases is to discard the elevations corresponding to incomplete rings, which may imply an unnecessary loss of information. One of the advantages of the RBF is that they are not bound intrinsically to circular domains. This fact gives an additional interest to the analysis of the situation modeled by Surface C.
Another important observation is related to the units of measurement. Since the elevations are obtained from synthetic surfaces where the scaling is irrelevant, we chose to fit the data on a unit disc. Hence, the plots appearing in
Figures 2 3 4 5 6–
7 and the data in
Table 1 are given in universal units, whose choice does not affect the results.
We gathered the discrete elevation data into a vector
Z without adding any noise, and solved the overdetermined system (
equation 2) in the sense of the LSF. In practice, the collocation matrix
M can be very ill-conditioned and numerically rank deficient, so we have to avoid solving the normal equations
MTMa =
MT Z directly. The use of the Moore-Penrose pseudoinverse of
M computed by its singular value decomposition (SVD), complemented with regularization, is preferable instead (see e.g., Ref.
25).
The method can be easily adapted to include the weighted least square fit (WLSF) by left-multiplying
equation 2 by a diagonal positive matrix representing the weights. In real-life computation, these weights can reflect the reliability of the data (e.g., portions of the cornea obstructed by eyelashes, poor quality of the tear film; see Ref.
26 for the algorithms that allow separation and identification of the regions of a strong interference).
All the computations were performed in commercial software (MatLab ver. 7.6, MathWorks Inc., Natick, MA). The vectorization capabilities of MatLab have been extensively exploited, and highly efficient algorithms have been achieved that reduce the computation time drastically (to ∼3 seconds or less), even for the most time-consuming Zernike polynomials fit (compare e.g., with Refs.
1,
3).
We performed a comparison between families of radial polynomials (Zernike and Bhatia-Wolf) and radial basis functions (Gaussians and inverse multiquadrics). For the reconstruction by polynomials, we normally choose the maximal radial order 6 which corresponds to the first 28 Zernike polynomials, or the first 49 Bhatia-Wolf polynomials, which is the standard in modern aberrometers.
11 The fit with the RBF was performed with a regular grid of centers, like those represented in
Figure 3. Observe that to avoid high oscillations on the edge we must use centers situated outside of the cornea, although we omit those located too far from the nodes.
Experiments have been performed also with other functions, such as Sobolev orthogonal polynomials on the disc or multiquadric RBF; however, the results obtained do not differ significantly from those corresponding to other members of the same class, and we decided to omit that discussion for the sake of brevity.
We have left out of the comparison the Fourier-based techniques for several reasons. First, these methods can be implemented in different ways. If we choose a number of terms
v in
equation 1 that is smaller than the size of the dataset, then the behavior of the truncated Fourier expansion is very similar to that of the Zernike polynomials (take note that these bases differ only in the radial coordinate). Alternatively, we can take the maximum possible size of
v, which endows the Fourier methods with the maximum resolution capacity, but deprives them at the same time of the smoothing ability of the other modal approaches (see Refs.
18–
20). Last but not least, the implementation of the Fourier methods is still far from clear and reliable, as a recent discussion shows.
21
Subject A (
Fig. 4, top left) is given analytically by
simulating a sphere with a cap removed by a flat cut. The main goal is to check the goodness of detection of the fast variations of the gradient.
For subject B we used a sphere with a radial slit (
Fig. 1); its level curves are represented in
Figure 5, upper left. Its analytic expression is cumbersome, and thus we avoid presenting it here.
The data of subject C were collected from measurements by a corneal topographer (CM02; CSO, Florence, Italy) of the corneal elevations of an actual patient with keratoconus. To approximate the situation to real-life scenarios, we retained the nodes where the elevations were obtained and considered a simulated keratoconus corneal surface modeled with a series of the first 136 Zernike polynomials (radial order 15). This yields an analytic expression for the surface in
Figure 6, first row, for which we already know the exact values of the corresponding Zernike coefficients. We represent it only over the domain where the reliable information is available.
We assess the quality of fit by computing in each case the mean square errors (MSEs). For that purpose, after obtaining vector
a in
equation 2 we reconstruct the surface by formula in
equation 1 and evaluate it at the same nodes where the heights were collected. This gives us the vector of fitted elevations Z̃. Then
Another criterion of the fitting quality is the accuracy in recovery of the Zernike coefficients, especially in the case of incomplete data, which becomes crucial for the discriminant analysis of the decease markers, or for the neural network-based diagnostic software
4 such as corneal classification and condition severity-grading utilities. In this sense, for subject C we performed the discrete LSF with Zernike polynomials directly from the raw input data and alternatively fitting the surface previously reconstructed by the Gaussian RBF (see
Fig. 7).