2. Materials and Methods
For the experimental implementation of the adaptive sensor, a phase-only SLM (pixel size of 8 μm, PLUTO NIR-011, Holoeye Photonics AG, Berlin, Germany) was used to project the phase of microlens arrays. These arrays were generated as phase maps of spherical lenses arranged in a homogeneous matrix pattern (1920 × 1080 pixels), which were programmed and projected onto the SLM. Four values of microlens sizes pitch, (p) = 0.864, 0.648, 0.540, and 0.432 mm, were evaluated, each with four values of focal length f = 30, 50, 70, and 100 mm. This resulted in sixteen different phases of microlens arrays being tested.
The SLM was integrated into a monocular visual simulator equipped with active optics, as shown in
Figure 1. This simulator operates based on the optical conjugation of different planes within the optical system using afocal systems composed of achromatic doublets. In these planes, elements such as an eye (artificial or real), an EOL (
, model EL-16-40-TC-VIS-20D, Optotune, Bernstrasse, Switzerland), an SLM, and a refractive HSS (CMOS camera with a resolution of 1024 × 1280 pixels and 0.200 mm microlens size (pitch) with a 7 mm focal length; Flexible OKO Optical, Rijswijk, The Netherlands) are located [
17]. In this simulator, a pellicle beam splitter (BS3) was positioned between the hot mirror (HM) and the refractive HSS in the setup, allowing for simultaneous aberration measurements by the AHSS and the refractive HSS. The complete optical setup is depicted in
Figure 1.
The methodology to perform a wavefront measurement with the AHSS involves projecting the phase pattern selected from the designed set of microlenses onto the SLM so the light from the optical element being tested generates a pattern of points at the focal distance of the microlenses. Subsequently, an afocal system was constructed using achromatic lenses
and
with equal focal lengths of 10 cm to obtain images on the sensor plane of a monochromatic CMOS camera (model acA2000-165um, Basler ace, Ahrensburg, Germany). Additionally, an EOL, (
, model EL-10-30-TC-VIS-12D, Optotune, Bernstrasse, Switzerland) was placed in the focal plane of lens
. This EOL allows for adjustment of the relay system’s optical power by varying the current applied to it. In this way, the focal spot patterns generated by the phases of the microlenses projected onto the SLM can be imaged on the CMOS camera, which is conveniently placed at a distance
g from
[
18]. The objective was to use
and
to refocus this pattern of points onto the camera. Since the AHSS has varying focal lengths, this refocusing process must be carried out for each individual microlenses focal length design. This setup is similar to the one proposed by Martínez-Cuenca et al. (2010) [
11], which enables an easily refocusable process through the EOL.
The advantage of this configuration, with
in the focal plane of
, is that the magnification between the conjugate planes of the system and the camera does not change when
’s optical power is modified. Thus, the separation of focal spots on the camera remains constant regardless of the focal length of the microlenses projected on the SLM. According to the work of Martínez-Cuenca et al. (2010) [
11], it is possible to establish a relationship between the optical power programmed in the
and the focal length of the designed microlenses projected onto the SLM for achieving proper focus on the camera. This relationship is given by:
where
is the optical power of the
;
and
are the focal lengths of
and
, respectively;
is the focal length of the microlenses projected onto the SLM but rescaled on the sensor plane of the camera; and
and
g are the distances from
to
, and from
to the camera, respectively (see
Figure 1). With this expression, it is possible to determine the optical power that should be programmed into the
to maintain well-focused the spots pattern on the camera without changing the magnification.
As evident from Equation (1), the optical power of the
depends on the designed focal length of the microlenses projected onto the SLM but rescaled to the conjugate plane due to the magnification of the system (0.6✕). To determine the appropriate optical powers for
based on these re-scaled focal lengths, the parameters
t and
g in Equation (1) were computationally varied to find optical-power values that were within the programmable range of the
employed in this setup. It was found that the optimal values corresponded to
t = 5 cm and
g = 5 cm, respectively. These values allowed us to determine the variation range of the optical power
as a function of
. Finally, to achieve precise values of the optical power
, it was necessary to know the relationship between the electrical current applied to the
and its variation in optical power. This relationship was established in the work developed and published by Torres-Sepúlveda et al. [
18].
2.1. AHSS Calibration
The calibration involved generating known spherical wavefronts (defocus only) and measuring them with the AHSS to study the relationship between the optical power measured with the AHSS and the power induced on the system by . This setup allows for the induction of the desired vergence (defocus) on the light by varying the electric current used to control .
Additionally, the variation in astigmatism and the Root Mean Square (RMS) of high-order aberrations was studied as a function of the induced defocus. The objective was to determine which parameters of the designed profiles of the microlenses of the AHSS best fit hypothetical measurements of any optical system, aiming for calibration curves similar to those obtained with the refractive HSS, which was taken as the reference wavefront sensor for comparison. The calibration of the AHSS was conducted for a wavelength of 532 nm, and the corresponding AHSS microlenses phases were designed and projected onto the SLM using this same wavelength. The AHSS spots images corresponding to the microlens size of 0.864 mm were processed only up to the 4th order (14 Zernike terms) since there were not enough microlenses to efficiently sample the wavefront within a pupil size of 4.8 mm [
19]. The remaining AHSS spots images were processed up to the 5th order (21 Zernike terms), similar to the refractive HSS.
2.2. Measurements of Optical Aberrations in an Artificial Eye
As a first test, the performance of the AHSS was evaluated for measuring the optical aberrations of an artificial eye. This artificial eye consisted of an achromatic lens and a rotating diffuser screen that served as a retina. This screen was displaced an arbitrary distance from the lens to simulate an eye with a degree of hyperopia. The aberration measurements on the artificial eye were carried out using a diode laser with a wavelength of 780 nm (model L780P010, 10 mW, Ø5.6 mm, Thorlabs Inc., Newton, NJ, USA), necessitating a redesign of the microlens phase patterns projected on the SLM to this wavelength. The optical aberrations of this artificial eye were measured using the sixteen microlens phases designed for the AHSS and compared to those measured with the refractive HSS. For each AHSS microlens phase, aberrations were measured three times, with at a defocus of 0 Diopters (D) (i.e., only the intrinsic aberrations of the artificial eye were measured). The measurements from the sixteen AHSS microlenses phases were subsequently compared to the measurements obtained with the refractive HSS.
2.3. Measurements of Optical Aberrations in a Real Eye
The measurements of optical aberrations in real eyes were conducted using eight of the AHSS microlens phases, selected based on the results from measurements in the artificial eye. These phases corresponded to the four values of pitch (
p) with focal distances of 30 and 50 mm, as they produced higher-quality spot patterns in the presence of speckle compared to other microlens phases. Optical aberration measurements were performed on three subjects using the eight AHSS microlens phases and the refractive HSS. The subjects were aged between 26 and 41 years and had healthy eyes with no history of ocular surgery. The exclusion criteria included patients with astigmatism greater than 0.5 D. The eyes’ subjective refraction was corrected using
, with their refraction ranging from [−0.5 to 0.5] D. Astigmatism and high-order aberrations were not corrected. Accommodation was paralyzed with two drops of 1% tropicamide ophthalmic solution. Informed consent was obtained from the patients after explaining the nature and possible consequences of this study. This study was approved by the Bioethics Committee of the University Research Center (Sede de Investigación Universitaria) from the University of Antioquia, Medellín, Colombia. The measurement protocols adhered to the tenets of the Declaration of Helsinki [
20].
Aberrations were measured on each subject using both the refractive HSS and the AHSS for a 4.8 mm processing pupil (pupil size measured in the conjugate plane of the subject’s eye; see
Figure 1). In general, all HSS images obtained from real eyes contain speckle noise. To partially reduce this effect, average images obtained from a video of approximately four seconds (around 70 frames) were processed, which reduced the influence of speckle. In all cases, the average images had better quality than an individual video frame and, therefore, could be correctly processed with the wavefront sensor software, without presenting high variability in the results. Based on these measurements, the aberrations obtained from the refractive HSS and the AHSS were compared to determine the latter’s capability for measuring ocular aberrations. Measurements were performed on the dominant eye of each subject (sighting dominance as determined using the Miles criterion [
21]). All custom-made routines to process the videos and images were developed in Matlab 2021a (Matlab; Mathworks, Natick, MA, USA).
4. Discussion
This work demonstrates the performance and functionality of the AHSS, which have reconfigurable parameters for measuring optical aberrations in static and more complex dynamic systems. In the implementation of the AHSS, the calibration process shows the behavior of the optical power, astigmatism, and high-order aberrations measured with the different microlens phase maps of the AHSS and in the refractive HSS as a function of the defocus generated by the . Good correspondence is found between the calibration results of the AHSS and the refractive HSS. These results illustrate how each microlens phase map parameter affects the measurements of the optical quality of the system, which is crucial when implementing them to study external optical systems.
The variations in the astigmatism curves shown in
Figure 4 could be explained by the arrangement of the lenses in the monocular visual simulator with active optics [
17]. When projecting the microlens array onto the SLM, a vergence of the light is generated depending on the corresponding focal length design, influenced by the location of the lenses in the visual simulator. For example, for the microlenses with
f = 30 mm, the light focuses 3 cm from the Pluto-SLM plane, but, on its path, it encounters the first lens of the setup at 22 cm (see
Figure 1;
lens). This implies that the light reaches the lens with a divergent wavefront, not fulfilling the paraxial approximation condition, because it passes through the entire area of the lens and not only the central. This effect makes the small remaining misalignments in the system more noticeable, thus causing an increase in the measured astigmatism of the system. Astigmatism values exceeding 0.25 diopters become noticeable in subjective visual assessments; however, the astigmatism detected by the AHSS, which is at most 0.2 D above the values measured by the refractive HSS, remains below this perceptual threshold. Consequently, the astigmatism values obtained within this optical system are sufficiently moderate to ensure accurate refraction measurements of a real eye without significant perceptual impact [
22].
Additionally, the high-order RMS value was analyzed. It was calculated from the Zernike coefficients ranging from term
to
(corresponding to
,
in OSA notation, respectively), corresponding to the third to fifth order (
Figure 5). Although differences were observed compared to the case of the refractive HSS, it is important to highlight that these RMS values are small compared to the typical RMS of a real human eye [
24]. Therefore, they are not expected to have a significant impact on optical or visual quality in real ophthalmic applications. Despite the results showing consistency for all microlens phase maps with different focal lengths, an increase in the RMS value was observed for the microlenses associated with pitch (
p) = 0.864 mm. This increase is attributed to the error introduced in the wavefront reconstruction, arising from using a reduced number of sampling points [
19].
It is important to highlight that in the measurement methodology, the inherent aberrations of the system measured during the calibration process with the AHSS at each EOL power were taken as a reference. These reference measurements were then subtracted from the measurements obtained when evaluating additional optical systems, such as the artificial eye or a real eye. This compensation helps to control some of the differences in the aberration terms when compared with the refractive HSS. The results obtained in the calibration of the AHSS demonstrate that, in this initial study of reconfigurable AHSS, it is possible to achieve feasible measurements of real optical systems with easy control of their characteristics.
Additionally, the calibration experiments performed for astigmatism and coma aberrations showed a predominantly linear response for all AHSS configurations, indicating that the proposed sensor preserves consistent aberration measurements not only for defocus but also for higher-order aberration modes.
In this context, the differences between the coefficients measured by the refractive HSS and the sixteen microlens phase maps of the AHSS were calculated to quantify the variations in aberration measurements of the artificial eye.
Figure 11 graphically shows these differences for each aberration coefficient and for each microlens phase map used.
It is important to emphasize that the greatest differences were found for the defocus coefficient (, corresponding to in OSA notation), with an approximate value of −0.09 µm (around −0.11 diopters), corresponding to the microlens phase map defined by pitch (p) = 0.432 mm and a focal length (f) = 30 mm. The next notable difference was obtained for the oblique astigmatism coefficient ( corresponding to in OSA notation), with a maximum value of 0.03 µm, in the microlens phase map defined by pitch (p) = 0.864 mm and focal length (f) = 30 mm. For the rest of the high-order aberration coefficients, the differences were found in a range of [−0.01, 0.01] µm, except for the microlens phase map with pitch (p) = 0.864 mm and focal length (f) = 30 mm, where differences of up to 0.02 µm were present, which are still considerably small. These results demonstrate good agreement between the optical aberration measurements for static systems, such as the artificial eye, obtained with the AHSS and the conventional refractive HSS.
For a general evaluation of the differences between the AHSS and the refractive HSS in measuring the artificial eye’s aberrations, the RMS value of the differences between all the Zernike coefficients obtained with the refractive HSS and the different microlens phase maps of the AHSS was calculated. The calculation revealed that the differences were in the range of [0.007, 0.021] µm, where the minimum value corresponded to the microlens with pitch (p) = 0.648 mm and focal length (f) = 100 mm, and the maximum value to the microlens with pitch (p) = 0.432 mm and focal length (f) = 30 mm. Objectively, it is possible to determine that the differences are very small between the different microlens phase maps, indicating that all of them are potentially viable for performing aberration measurements in static optical systems, as well as in applications that require variations in the dynamic range of the sensors used.
Similarly, to objectively determine the quality of the optical aberrations measurements obtained for real eyes, differences were calculated between the Zernike coefficients obtained with the refractive HSS and those obtained with the AHSS.
Figure 12 shows the results of these differences for each Zernike coefficient for subject S2 (the results for subjects S1 and S3 are similar, as shown in
Figure S1 of the Supplementary Materials). From
Figure 12, it is notable that larger differences occur for coefficients associated with second-order Zernike polynomials, where maximum differences of ±0.16 µm were found (around 0.19 diopters in defocus and 0.31 diopters in astigmatism). These values fall within the range of typical variability observed in real eyes for defocus and astigmatism, as reported by Leube et al. [
22]. While there are some exceptions, it can be noted that for high-order aberrations, most differences fall within the range of ±0.05 µm. This indicates good agreement with the results found previously for the artificial eye.
To objectively determine the subject-wise differences, the RMS value of the differences between the Zernike coefficients obtained with the refractive HSS and those obtained with each microlens phase map of the AHSS sensor was calculated.
Table 2 displays the RMS values of differences for each subject with each microlens. According to the values reported in
Table 2, it is evident that the highest RMS value of differences occurs for the microlenses with pitch (
p) = 0.864 mm, which is consistent with the results obtained previously in calibration and measurements on the artificial eye. For the remaining microlens phase maps, considerably small RMS of differences were observed for all subjects.
The presented results open a wide range of possibilities for implementing the proposed adaptive Hartmann–Shack sensors. For example, as a first implementation, the AHSS can be used as a preliminary mechanism allowing for partial measurement and later correction of optical aberrations in an active (open loop) or adaptive (close loop) optics system. The objective of this partial correction is to generate a wavefront with sufficient quality to be subsequently measured by a conventional refractive HSS sensor, which can perform a finer measurement and, therefore, provide a more precise correction. In other words, this procedure could extend the dynamic range of experimental systems and, consequently, open up possibilities for measurements in eyes with special characteristics, such as those with a high degree of myopia or more complex pathologies of refractive surfaces of the eye.
In addition, the use of the SLM in conjunction with the EOL and its rapid temporal response can facilitate the implementation of an open-loop aberration correction system. In this system, temporal multiplexing would be employed to measure and correct aberrations simultaneously, taking advantage of integration time. Similar modulation-based approaches have also been reported for reducing retinal speckle in live-eye wavefront sensing measurements [
25]. This approach eliminates the need for a refractive HSS sensor, and the dynamic range of the AHSS sensor can be adjusted according to the specific eye being evaluated.
Future work will focus on experimentally evaluating the AHSS in dynamic measurement conditions, where changes in the aberration level or in the optical system under evaluation may require real-time selection of the microlens pitch and focal length to optimize the trade-off between sensitivity and dynamic range.
It is important to mention that, while the refractive HSS was used as a reference to compare the measurements and functionality of the AHSS, an AHSS with characteristics similar to the refractive one, i.e., with the same focal length and microlens size, was not constructed. Reproducing an AHSS with parameters identical to those of the refractive HSS is currently complex given the existing system design, mainly due to the spatial resolution limitations of the SLM. However, it is possible to modify this version to achieve a direct correspondence with the refractive sensor without further reducing the size of the microlens phase maps projected onto the modulator or decreasing the corresponding focal length. This can be done by choosing different focal lengths for the lenses that make up the relays in the experimental system. This way, a magnification between the conjugate optical planes less than 1✕ can be obtained, allowing both the size of the microlenses and the focal length to be rescaled. Thus, focal lengths similar to the refractive sensor’s 7 mm could be achieved. With this modification, it would be possible to make a direct comparison between an AHSS and a refractive HSS with identical characteristics, which is proposed as a future perspective of this work.