Abstract.
Significance
Access to diagnostic eye care could be expanded with high-throughput and easy-to-use tools. Phase mask-based imaging may improve the fundus camera by enabling computational refocusing with no moving parts, reducing hardware complexity and cost. Although phase mask-based imaging has been demonstrated in a model eye, this approach has not been shown in vivo.
Aim
A computational fundus camera was designed, constructed, and evaluated with the goal of determining the feasibility and performance of phase mask-based computational imaging of the in vivo fundus.
Approach
A holographic diffuser was introduced in a modified commercial fundus camera at a plane conjugate to the ocular pupil, resulting in a linear and shift-invariant point spread function that varies with refractive error. The image could be digitally refocused across a range of diopters of defocus error. The device was tested for ocular safety, and a human imaging pilot study was performed.
Results
The device captured and digitally refocused color human fundus images. The field of view was , and resolution was 7.7 to 9.6 line pairs per millimeter.
Conclusion
We present the first in vivo diffuser-based fundus images, demonstrating the feasibility of computational imaging for ocular diagnostics.
Keywords: phase masks, computational imaging, fundus imaging, digital refocusing, diffuser camera
Statement of Discovery.
This work uses a diffuser phase-mask to capture wavefront information of the eye, enabling computational refocusing and imaging of the fundus. This approach could improve ocular examinations by making fundus imaging easier to perform while enabling simultaneous autorefraction through a single device.
1. Introduction
Comprehensive eye examination is a foundational procedure to assess and address eye disease. A major component of this is the imaging of the fundus, which is the posterior surface of the eye where the retina and optic nerve head is located.1 Fundus examinations screen for diseases such as diabetic retinopathy, glaucoma, and age-related macular degeneration, which are the leading causes of vision impairment and blindness globally.2 There is an important global need to improve the accessibility of eye examinations to prevent and treat vision loss and blindness.3 Even in high-risk populations in high-resource countries, fundus examinations are underperformed, resulting in unmanaged vision loss.4,5 Currently, the digital fundus camera is the primary tool used to perform fundus examinations.6 Although modern systems include automated focusing and alignment, they remain prohibitively expensive due to their complex optomechanical components. The recently developed portable fundus cameras aim to alleviate some barriers to access.7 However, these handheld devices using traditional optics are challenging to align and focus. Significant barriers to access, such as the high cost of equipment, the high skill level required to perform these sensitive measurements, and the shortage of trained clinicians and technicians in remote areas, restrict the utilization of fundus examination.8–10 Creating a device that simplifies fundus image capture has great potential to reduce costs, increase throughput, and deskill the comprehensive eye examination. In this work, we demonstrate the use of computational lightfield imaging of the fundus that eliminates the need for mechanical focusing components, which may enable simpler, lower-cost, and easier-to-use fundus cameras.
The emerging field of computational lensless imaging promises new capabilities for imaging with a standard image sensor, such as single-shot 3D imaging,11,12 computational refocusing,13 and lightfield imaging.14 One method of computational imaging uses an encoding mask instead of a lens to multiplex plenoptic information onto the image sensor.15 Prior knowledge of the optical properties of the mask then enables computational reconstruction of the captured lightfield. One such encoding mask is a holographic diffuser, as demonstrated by Antipa et al.13 The diffuser produces a sharp caustic pattern as a point spread function (PSF) that is nearly shift-invariant for lateral movements of a point, whereas axial movements cause scaling. Prior characterization of the PSF enables image reconstruction from diffuser measurements. The axial dependence of the PSF enables 3D imaging and computational refocusing. These advancements are promising, but applications remain relatively unexplored. Computational imaging may be advantageous in a fundus camera, which would allow the focusing process to take place after image capture.
Li et al.16 recently proposed the diffuser-based computational imaging funduscope. They used a , infinite-conjugate system, relaying the wavefront emerging from a model eye pupil to a diffuser placed in front of the image sensor. They demonstrated grayscale imaging and computational refocusing capabilities with varying levels of defocus error on a model eye. An additional motivator for their diffuser-based computational imaging funduscope is the potential to combine fundus imaging and aberrometry into one device. Using a very similar optical configuration, McKay et al.17 created a diffuser-based wavefront sensor that could be used to perform aberrometry over a very large dynamic range. The combination of aberrometry (for eyeglass prescriptions) and fundus imaging (for disease screening) in one easy-to-use device is an enticing opportunity that could be realized with computational ophthalmic imaging. This paper details our progress in color computational fundus imaging in vivo. We incorporated modern fundus camera design principles and expanded upon the methods used by Li et al.16 to address unique challenges to imaging in vivo and implement color imaging. We conducted a detailed evaluation of the imaging resolution and field of view of the system. Finally, we tested the device for human eye light safety and present the first diffuser-based in vivo fundus images, including computational refocusing. This work represents a significant step forward for this novel application of computational imaging, demonstrating the feasibility of in vivo fundus imaging with a phase mask.
2. Methods
2.1. Overview
A major challenge for in vivo imaging arises from the requirement that the illumination and imaging optical pathways pass coaxially through the pupil. The cornea is much more reflective than the fundus, and the strong corneal reflections from the illumination light must be blocked from passing back through to the image sensor.18 In the computational imaging funduscope by Li et al.,16 this is achieved using crossed polarizers. This not only eliminates much of the backreflections but also limits the signal from the fundus. For in vivo imaging, the illumination power must be limited to within safe limits, which requires maximizing the amount of light collected from the fundus, especially for computational imaging where signal-to-noise ratio (SNR) is important. Therefore, to demonstrate feasibility of computational fundus imaging in vivo, we modified a commercial non-mydriatic fundus camera to be the foundation for our system. Conventional clinical fundus cameras use an optical design in a non configuration with a holed mirror to eliminate the need for polarizers while keeping illumination and imaging pathways coaxial. This ensures a high SNR and short exposure time for in vivo imaging. Using a modified clinical fundus camera, we were able to isolate the computational imaging aspect of the approach, using established illumination and objective optics to enable direct comparison with standard imaging.
Our system utilizes a diffuser-based camera inspired by Antipa et al.11 An overview of the computational imaging workflow and system layout is shown in Fig. 1. Similar to the layout presented by Li et al.,16 a holographic diffuser is placed conjugate to the ocular pupil. Then, an image sensor is positioned at an axial distance behind the diffuser that optimizes the sharpness of the PSF. The PSF is approximately linear and shift-invariant (LSI) in the transverse axis, meaning that the sensor measurement can be represented by a convolution of the object at a specific axial plane with the PSF corresponding to that plane. The PSF depends on the axial distance of the fundus behind the ocular lens and scales with this defocus error.11 These PSFs are measured a single time to calibrate the system. For color fundus imaging, three consecutive images are collected in red, green, and blue illumination on a monochromatic sensor. The resulting image is deconvolved with the PSF calibration stack using a regularized inverse filter, and the most focused image is selected from the resulting focal stack.
Fig. 1.
Overview of the computational fundus camera. (a) Measurements of the fundus are captured by connecting a relay lens, diffuser, and image sensor to a commercial fundus camera (Canon Cr-DGi). Three consecutive measurements, , using red, green, and blue light illumination are taken with the diffuser in a conjugate plane to the pupil. Dashed lines indicate conjugate planes. (b) The three color channels are independently deconvolved with each PSF in the calibration stack. (c) The system is calibrated by directly measuring the PSF over a range of axial displacements () from the focal plane of the model cornea, inducing a range of defocus errors, . (d) An image is reconstructed from each color channel for each PSF, and the sharpest image is selected from this stack.
2.2. Optical Hardware
We used an existing commercial fundus camera (CR-DGi, Canon, Tokyo, Japan) as the platform for our novel computational fundus camera. The illumination and imaging pathways of the commercial system are optimized for the nonmydriatic use, and corneal backreflections are blocked without using polarizers, increasing throughput. The Canon CR-DGi also has a flip mirror to switch between the infrared alignment camera and the imaging camera. We removed the infrared alignment camera and replaced it with the diffuser-based computational camera (“diffuser camera” in Fig. 2) while keeping the conventional imaging camera (EOS 7D, Canon) in place. This enables switching between conventional and diffuser imaging.
Fig. 2.
Optical layout of the computational fundus camera. (a) Photo of the system with the main subsystems highlighted. (b) Annotated Zemax model of the system using paraxial lenses. Flood illumination of the fundus is provided with LEDs coupled through a liquid light guide (LLG). The annular slit (AS) is imaged to the outer edges of the pupil of the eye. Remitted light from the fundus is collected from the center of the pupil that is conjugate with a holed mirror (HM). A conventional image of the fundus is formed on . For computational imaging, the FM directs light through , which forms a conjugate pupil plane at the diffuser. (c) Reduced model of the diffuser imaging pathway with conjugate planes and distance variables defined. Values for these parameters are in Tables 1 and 2. Defocus error may be applied to the reduced eye by adjusting the distance between and by .
The illumination pathway of the system is nearly identical to the original commercial fundus camera with the internal lenses in the housing unchanged (, , and in Fig. 2). This optical design simultaneously illuminates and images the fundus through the pupil. The illumination and imaging paths must be coaxial and both pass through the cornea, which is much more reflective than the fundus.19,20 The Canon CR-DGi has well-designed optics for this task, so we did not alter this pathway. The original flash lamp was replaced with a liquid light guide (LLG03-4H, Thorlabs, Newton, New Jersey, United States) connected to a light-emitting diode (LED) light source (Lumen 1600-LED, Prior Scientific, Cambridge, United Kingdom) with multiple selectable wavelengths in the visible and near-infrared (NIR) range. The illumination is collimated with (Fig. 2) and is passed through an annular slit (AS). The image of the ring is imaged onto the holed mirror (HM) with and then imaged onto the pupil with the objective lens . The illumination ring is centered on the periphery of the pupil and results in flood illumination of the fundus while leaving the inner aperture available for back-reflection-free imaging.
The light remitted from the fundus propagates back through the pupil and cornea, is relayed through the aperture in HM with and , and is either imaged to a conventional camera or directed to the diffuser system via a flip mirror (FM). For conventional fundus imaging, is adjusted with axial movements to accommodate for defocus error (myopia or hyperopia), whereas for diffuser imaging, is fixed. For the diffuser imaging path, the flip mirror reflects the light through (AC254-100-A, , Thorlabs) to create a conjugate pupil plane at a 0.5 deg holographic diffuser (#47-988, Edmund Optics, Barrington, New Jersey, United States). An image sensor (pco.panda 4.2 bi UV, Excelitas Technologies, Pittsburgh, Pennsylvania, United States) is placed 11 mm behind the diffuser, which was found to be the location that produces the sharpest caustic PSF. We modeled this path in Zemax using paraxial lenses to produce the ray diagram in Fig. 2. A full list of optical parameters of the components is in Table 1 in Appendix A.
Table 1.
Optical components in the computational imaging pathway.
| Part | Description | Part no. | Manufacturer | Focal len. (mm) | Diameter (mm) |
|---|---|---|---|---|---|
| Objective | Canon | 42* | 50.8 | ||
| Relay | Canon | 75* | 25.4 | ||
| Relay 2 | AC254-100-A | Thorlabs | 100 | 25.4 | |
| D | Diffuser | #47-988 | Edmund Optics | ≈11* | 25.4 |
| C | Model cornea | LB1761-A | Thorlabs | 25.4 | 25.4 |
| C | Model eye | C-000.33.010 | HEINE | 18 | 8 |
Represents a computed or estimated value.
2.3. Reconstruction
To computationally reconstruct the image from the diffuser measurement, we model the object (the fundus) as a surface in 3D space at some axial depth behind the cornea associated with some defocus error, . For reconstruction purposes, we assume that the conjugate image of the fundus is approximately flat across the roughly 45 field of view of our system, which is reasonable because the field curvature of the fundus camera objective lens is designed to match the curvature of the retina. This allows us to reconstruct a focus stack of 2D images corresponding to a range of defocus errors. Consistent with other reports and our PSF measurements, our system is approximately LSI in each transverse plane.11,16 The PSF for a given plane with an associated defocus error is . Because the system is LSI, we model the measurement, , of a fundus, , with convolution.
We also assume that the illumination field is flat and that the PSF does not vary significantly with wavelength. The object at a given color of illumination is represented by , and the resulting measurement by . The noise model is additive white Gaussian noise, ,
| (1) |
The reconstruction task is to estimate the underlying fundus, , given the measurement . We estimate the fundus image for each color at each defocus error, , using Tikhonov regularization:
| (2) |
Regularization strength is controlled by , which is adjustable. The first term minimizes -norm of the difference between the model and the measurement. The second term regularizes the output by penalizing the -norm of the estimate. This convex optimization problem can be solved efficiently in the Fourier domain.21 is the Fourier transform of the estimated signal, . and are the Fourier transforms of and , respectively,
| (3) |
We implement this reconstruction using the fast Fourier transform and find that reconstructions take under 1 s to compute for 16-bit 4.2 megapixel images on a Dell Precision 5820 Workstation with a 14-core Intel Xeon W-2275 3.3 GHz CPU.
The eye’s defocus error, including the corresponding , is unknown at the time of image capture. After image capture, a focal stack of reconstructed fundus images is created by deconvolving the measurements, , with each PSF in the set of recorded . This is done for each color channel, producing a focal stack of color reconstructions. The focal stack can then be searched for the sharpest image manually or with an autofocusing algorithm.
The regularization strength, , was chosen empirically. A stack of reconstructions using the correct PSF and a range of from 0.001 to 0.025 was created for each color channel. Then, the image that subjectively balances sharpness with noise in each color channel was chosen. For red, this was chosen to be , green used , and blue used . The use of different for the different channels can be justified because the color channels have different signal-to-noise ratios. The high contrast green channel requires less regularization than the low-signal, low-contrast blue channel. Furthermore, the eye has chromatic aberrations, which may blur the color channels differently.
2.4. Calibration
Calibration of the system involves measuring a set of PSFs spanning a range of defocus errors. This is a single-time calibration process that takes to measure with a motorized translation stage. The calibration can then be used to deconvolve all subsequent images taken with the system. The stage (LTS300, Thorlabs) is attached to a 20-micron diameter pinhole in front of a bright white LED (SLS-0300-C, Mightex, Toronto, Canada). To simulate a point source on the retina of an emmetropic (no refractive error) eye, the pinhole is placed a focal length behind a convex lens acting as a model cornea (LB1761-A, , Thorlabs), as diagrammed in Fig. 3. The recorded signal on the image sensor is the PSF, , for the defocus error associated with the sampled . We sampled PSFs from to with a sampling period of 50 microns, corresponding to defocus errors from to diopters (D).
Fig. 3.
Calibration overview. (a) The calibration of the system involves measuring PSFs of the system for a range of defocus errors, . This is done by axially translating a 20-micron pinhole over a range of from the backfocal plane of the model cornea. (b) Measured PSFs corresponding to and of defocus error (green and magenta, respectively), demonstrating the magnification difference. (c) An eye with a defocus error is modeled as having a fundus that is offset from the backfocal plane of the cornea by some . The wavefront remitted from the pupil has a vergence dependent on the defocus error and is relayed to the diffuser. This vergence scales the PSF. (d) The reconstruction pixel size and the theoretical resolution as a function of defocus error. The theoretical resolution is determined by the maximum frequency component of the PSF with a magnitude greater than the noise floor of the camera.
The PSF is dependent on defocus error, , which can be computed from the focal length of the model eye lens, , and the distance of the object from the focus of the lens, . The defocus error (in diopters) is the difference in optical powers:
| (4) |
The aqueous humor that fills the eye has a refractive index of , and the whole eye has an optical power of diopters. Our calibration uses a 39-diopter lens in air, which differs from the in vivo eye. However, the parameter that determines the actual PSF for in vivo eyes is the vergence of the wavefront emerging from the cornea. As the calibrated PSF stack is indexed by this vergence (i.e., defocus error), the internal optics of the eye may be abstracted away for reconstruction.
2.5. Theoretical Resolution and FOV
The magnification of the system can be computed with ray matrix analysis. We use a reduced eye model in this analysis, assuming that the eye is a thin lens with a power of 60 diopters, . The distance between the cornea and fundus of an eye with a defocus error caused by an axial displacement of the fundus is . The system from the cornea to is fixed and can be represented by a ray matrix, . The system matrix from the fundus, , to the final conjugate fundus plane, , is represented by the matrix . The distance from to the final conjugate fundus plane, , is [see Fig. 2(c) for a diagram of the defined planes and Table 2 for a list of constants in the model]. We can solve for a function of by applying the imaging condition to , meaning a ray input from the optical axis is output at the optical axis:
| (5) |
Solving Eq. (5) for :
| (6) |
Finally, the lateral magnification of the system from to , , is the first element of the system matrix, .
| (7) |
The size of a pixel in the object space, , can be derived from the size of a sensor pixel, , mapped to the object plane.12
| (8) |
For our system, , , , , and microns. The distance from to the diffuser is , where is the distance between and the diffuser, which is equal to 111.6 mm in our system. Using these constants and equations, we can compute the pixel size as a function of refractive error. To compute the maximum theoretical resolution, we determine the maximum frequency component passed by our PSF for each refractive error, , above the noise floor of our camera from a computed modulation transfer function (MTF) [Fig. 3(d)].
Table 2.
List of variables in system model.
| Variable | Description | Value (mm) |
|---|---|---|
| * | In vivo eye | 16.7 |
| HEINE model eye | 18 | |
| Model cornea | 25.4 | |
| Pupil to dist. | 70.85 | |
| * | Objective lens | 46.2 |
| to HM dist. | 132.8 | |
| HM to dist. | 68.75 | |
| * | Relay lens | 75 |
| to dist. | 96.75 | |
| Diffuser relay lens | 100 | |
| to dist. | 111.6 | |
| Diffuser sensor dist. | 11.0 |
Represents a computed or estimated value.
The theoretical maximum resolution in an emmetropic eye with 60 diopters of power is computed to be . This varies with defocus error due to a difference in magnification as described in Eqs. (6)–(8) and ranges from in an eye with myopia to in an eye with hyperopia. This is within the Abbe diffraction limit of imaging the retina through the 1.4 mm diameter aperture stop.
The field of view (FOV) of an image can be estimated with the pixel size on the fundus corresponding to the defocus error and focal length of the eye. The FOV of fundus cameras is typically reported in terms of visual angle, which is the full cone angle of light collected from the pupil of the eye. From the paraxial Zemax model, we estimate the FOV of this system to be 40 deg.
2.6. In Vivo Imaging
Alignment is crucial for capturing high-quality in vivo fundus images. The illumination ring must align in the transverse plane to be concentric with the pupil, and the axial distance from the pupil to must place the pupil conjugate to the diffuser. Alignment is performed by observing 1 frame per second video with NIR illumination (740 nm, FWHM = 30 nm) on undilated eyes in a dark room to limit pupil constriction, and reconstructions are shown live on a computer monitor. Once alignment is confirmed, three consecutive images with 40 ms exposures are taken using NIR (740 nm, FWHM = 30 nm), green (550 nm, FWHM = 60 nm), and then blue (470 nm, FWHM = 30 nm) illumination. This is within the pupil light reflex time.22 RGB illumination was selected to enable color imaging to produce color similar to traditional fundus cameras. The specific wavelengths were chosen to emulate single-shot color imaging with a Bayer-filtered sensor. The in vivo data were collected following a protocol approved by the Johns Hopkins University Institutional Review Board (IRB 00333664). Healthy volunteers signed an informed consent for to enroll in the study. The light safety of the device was evaluated with ANSI Z80.36-2021. More detailed safety information is in Table 3 in the Appendix B.
Table 3.
Radiant exposure from the system per 40 ms exposure.
| Wavelength (nm) | Power output (mW) | Corneal radiant exposure () | Fundus radiant exposure () | Passes all ANSI limits for group 1 |
|---|---|---|---|---|
| 470 (blue) | 5.90 | 3.0 | 0.29 | Yes |
| 550 (green) | 5.66 | 2.8 | 0.28 | Yes |
| 740 (NIR/red) | 3.60 | 1.8 | 0.18 | Yes |
3. Results
3.1. Resolution Target
To characterize the resolution of the system across a range of defocus errors, images of a USAF 1951 resolution target (R1DS1P, Thorlabs) were taken with the computational fundus camera and the conventional camera (Fig. 4). The resolution target was placed behind the model cornea at the focal distance. The captured image was deconvolved with Eq. (3) using regularization strength . The color channels were added together to eliminate differences in white balance between the separate images. To test the resolution on eyes with varying defocus errors, the resolution target was axially translated by hand and the image was computationally refocused. The translations, , were kept under 6 mm, and six resolution test images were captured ranging from to of defocus error.
Fig. 4.
Resolution evaluation of the system with a 1951 USAF resolution target. Defocus error was applied by adjusting the axial distance of the target behind a model cornea. The human eye-equivalent resolutions are shown, accounting for the difference in optical power between the human and model eye. (a) Cropped conventional camera images of the resolution target. The system was adjusted such that the target was in focus when axially positioned at 0D error. The resolution degrades sharply when the device is not focused. (b) Cropped diffuser images of the resolution target deconvolved with the 0D PSF. The resolution degrades with defocus error. (c) The resolution of the diffuser images is improved compared with (b) when the correctly corresponding PSF is used to deconvolve the same measurement.
The resolution was estimated by examining the smallest set of line pairs that can be resolved. The mismatch between the power of the model eye cornea () and the human eye () is accounted for with a magnification correction. After determining the resolution in lp/mm on the resolution target behind the model cornea, the result is multiplied by a factor of to estimate the expected resolution in a human eye. For comparison, conventional fundus photographs were taken with fixed such that an object at 0D of error is in focus.
The resolution of the computational (diffuser-based) imaging system is 7.7 to depending on the defocus error, as shown in Fig. 4(c). The resolution of the system increases with more hyperopic defocus due to the increased magnification of the fundus, as expected [Fig. 3(d)]. The resolution is still poorer than the conventional lens-based image, which has a peak of for an emmetropic (0D) eye when the system has the focus set to 0D. However, this resolution quickly falls off for the conventional lens-based camera with defocus error applied. Meanwhile, the resolution of the refocused computational image remains in the 7.7 to range for all tested defocus errors (from to ) despite not having to physically alter the system.
3.2. Model Eye
Next, we tested our system on a commercial model eye (Ophthalmoscope Trainer, HEINE, Gilching, Germany), which has an adjustable length to simulate defocus errors from to of defocus error. Diffuser images of the model eye were taken with the model eye adjusted to be myopic, 0D emmetropic, and hyperopic. For ground truth comparison, conventional fundus photographs were taken with the camera lenses adjusted and fixed such that an object at 0D of error is in focus.
The results in Fig. 5 show the reconstructions of the model eye. The reconstructions were computed with Eq. (3) using for each color channel. The conventional image and diffuser image have a similar FOV, which is FOV inherent to the optical design of the Canon CR-DGi. The FOV was estimated using the theoretical pixel size computed with Eq. (8). Refocusing to the proper defocus error results in the sharpest reconstruction. The computational images in Fig. 5(b) can be computationally refocused post-capture, whereas a conventional image requires precise adjustment prior to image capture. Further work could improve the resolution of computational images with better PSF optimization.
Fig. 5.
Computational refocusing in the HEINE model eye with defocus errors of (first column), 0D (second column), and (third column). (a) Conventional camera images with focus set to 0D. (b) Computationally refocused diffuser images using different PSFs. The diagonal indicated by green boxes contains the sharpest images when deconvolving with the corresponding PSF. The reconstructions are blurrier when the difference between the defocus error of the eye and the used for is greater. (c) Normalized profiles through the optic disk for each row. Among diffuser images, the contrast is the greatest in the correctly refocused image (green line for each row).
3.3. In Vivo Images
We present the first diffuser-based computational images of an in vivo fundus (Fig. 6). Computational refocusing enables images to be resolved without prior knowledge of the patient’s refractive error. The macula, optic disk, choroidal structure, and vessels are visible in the refocused reconstruction. The red, green, and blue color channels are created from three consecutively captured images with 40 ms exposures each and overlaid. The regularization strength was tuned separately for each color channel and was chosen to be for red, for green, and for blue. The green channel contains the most contrast due to the absorption of green light by blood vessels, thus requiring the least regularization.
Fig. 6.
(a) Conventional camera image of an in vivo fundus. (b) Raw diffuser camera measurement of the fundus with RGB images combined. (c)–(e) Reconstructions of the individual red, green, and blue illumination measurements computationally refocused to diopters. The green channel (d) provides the most vessel and optic disk contrast. (f)–(i) Computational refocusing of the combined RGB fundus image. The optic disk, blood vessels, and choroidal structure are observed. (g) The sharpest image corresponds to diopters. (j) Line profiles of the green channel across the same vessel in (f)–(i). The reconstruction has the greatest contrast and sharpest vessel boundaries. Cyan and purple box insets for each large field of view image are magnified and displayed below for comparison of vessel and optical disk contrast.
4. Discussion
4.1. Resolution
The resolution of the diffuser-based system was shown to be to across a range of defocus errors (Fig. 4). This is less than the maximum theoretical resolution of 10 to [Fig. 3(d)]. This is partly attributable to the scene being dense, making the inverse problem poorly conditioned,23 even with a low-noise, high bit-depth sensor. The resolution of the diffuser-based computational fundus camera is poorer than a perfectly focused conventional camera. However, the ability to computationally refocus the system to compensate for refractive error with no mechanical adjustments is a significant advantage that could simplify image capture. Unlike traditional fundus imagers, which struggle on eyes with significant refractive error and require mechanical focus adjustments, this approach enables post-capture correction. This may be particularly useful for applications where rapid and simple fundus imaging is desired. To improve the imaging resolution of the system while retaining the digital refocusing ability, in the future, the diffuser could be replaced with an element with a sparser PSF, such as a random microlens array.24
4.2. In Vivo Imaging
The results demonstrate that the diffuser-based computational fundus camera allows single-shot imaging of the fundus with no focusing required before image capture and can reconstruct images of the fundus over a large range of defocus errors. The in vivo FOV is , which was estimated using the theoretical pixel size for a 60 diopter eye with diopters of myopia. This FOV is common for nonmydriatic fundus cameras used for diagnostic screening. Important clinical features, including the optic disk, macula, and larger blood vessels, are resolved in both the model eye and in vivo human eye. Computational refocusing increased the visibility and contrast of the blood vessels (Fig. 6).
There are some limitations to be addressed in future work. We did not have a fixation target, which made alignment and control of instrument-induced myopia difficult. The resolution is worse than a clinical fundus camera (which typically have resolutions greater than ). Future work will require increasing the resolution to ensure the diagnostic capabilities of the system. In addition, our modified illumination system, which replaced the conventional flash bulb with LED illumination through a liquid light guide, resulted in some uneven illumination and reduced contrast in conventional images compared to clinical fundus images. However, it provides a fair baseline for comparison between conventional lens-based imaging and phase-mask imaging under identical illumination conditions. This first demonstration of successful in vivo diffuser-based imaging of the fundus is a significant step forward toward a future ocular imaging capabilities enabled by lensless imaging.
4.3. Deconvolution Methods
Our deconvolution method is the same as Li et al.16 and is computationally simple. The Tikhonov inverse problem has a closed-form solution with no iteration required, making the reconstruction of a single image take and a focal stack of 500 images take less than 2 min. However, there is room for improvement with the use of more sophisticated regularizers. Other options are deep learning models that may better reconstruct images by taking into account small amounts of spatial variance of the PSF.25 Numerous other deep learning models have been developed for image reconstruction as well, such as GedankenNet by Huang et al.,26 which could be used in future work for computational ophthalmic imaging.
Although deep learning reconstruction methods could likely improve some image reconstructions, there are several important drawbacks compared with the physical model-based inversion approach presented here. Deep learning methods generally require significant training data and large computing resources for training. More importantly, they risk hallucinations that could obscure or fabricate clinically meaningful features. The near-instantaneous reconstruction of a single image is particularly useful for in vivo imaging because live feedback for the operator is necessary to verify alignment. Finally, we do not believe that the image reconstruction process is the greatest resolution-limiting factor in the system; rather, it is ultimately limited by the properties of the PSF and the noise floor of the camera, which provides a physical limit on spatial frequencies that can be recorded by the image sensor.
4.4. Future Work
There are other approaches to computational fundus imaging using alternative optical encoding elements to enable digital refocusing. One approach is using coded aperture masks.27 However, diffusers and other phase-mask elements are beneficial because they have greater light throughput, which is important in a light-constrained setting such as ophthalmic imaging. Another challenge to fundus imaging with multiplexing systems is that the fundus is a dense object that makes deconvolution of an extended PSF difficult.23 Future work using phase mask elements with sparser PSFs, such as random microlens arrays, could improve the resolution of the system.24 Other groups have found that random microlens arrays result in better resolution than holographic diffusers for computational imaging,28 whereas the randomness alleviates the aliasing concerns associated with periodic microlens arrays. A specially designed phase mask for the computational fundus camera should balance the requirements of resolution and computational refocusing over the range of clinically relevant refractive errors. Specialized phase masks could also be designed to efficiently multiplex aberrometry information, including spherical and cylindrical errors, into the measurement. Other groups have developed methods for manufacturing custom phase masks using various lithography methods.29–31 McKay et al.17 already explored diffuser-based aberrometry, which uses a similar configuration to this system.
Commercial low-cost handheld autorefractors have been developed that promise to expand access to eyeglass prescriptions.32,33 We believe that phase mask-based fundus imaging could be leveraged to create a similar device that simplifies image capture and combines fundus imaging and autorefraction into a single measurement with a simple optical system. This would have great potential to reduce costs, increase throughput, and deskill the comprehensive eye examination. This could allow for single-shot aberrometry and fundus photography with no prior focusing required. Future reconstruction methods could involve synergistically reconstructing while performing wavefront sensing to improve the quality of the image and provide eyeglass prescriptions.
5. Conclusion
Access to eye diagnostic care could be improved with easier-to-use, higher-throughput diagnostic tools. This work builds upon the work of Antipa et al.11 and Li et al.16 to create a diffuser-based fundus camera that enables post-capture computational refocusing of the fundus, circumventing one of the challenging steps in obtaining a high-quality fundus image. We demonstrate computational refocusing of in vivo fundus images across a wide range of clinically relevant defocus errors. The resolution of the system is relatively consistent across many diopters of defocus error without the need for moving parts. The FOV is comparable to that of a standard nonmydriatic fundus camera. However, the resolution is worse than a conventional fundus camera, limited by the smoothness and spread of the diffuser PSF. This limitation could be addressed with better encoding elements, such as random microlens arrays. Last, there is an opportunity for future work that synergistically estimates aberrometry information and reconstructs a fundus image from a single measurement.
6. Appendix A: System Parameters
Placement of the diffuser conjugate to the pupil is necessary for the PSF of the system to be shift-invariant. This is verified by translating the pinhole transversely behind the model cornea while observing the PSF created on the image sensor. The axial location of the diffuser was then fine-tuned with a translation stage until the PSF was maximally shift-invariant. During our testing, we also found that the diffuser-sensor distance () was important to optimize for the sharpest caustic pattern to form. This reduces the spread of the PSF which improves the conditioning of the inverse problem. We achieved this by placing the pinhole behind the model cornea at an emmetropic distance and translating the camera (pco.panda in Fig. 7) axially while observing the sharpness of the caustic pattern formed on the image sensor.
Fig. 7.
Photograph of the system with labeled components. The diffuser camera is connected to the top of the commercial fundus camera, replacing the conventional IR alignment camera. The internal electrical components of the fundus camera were removed, and the inside of the Canon CR-DGi fundus camera was used for its optics. Zemax models of the diffuser imaging and conventional imaging path are overlaid. The entire system is mounted to a translating base that eases the alignment process. An ophthalmic chinrest is used to stabilize the patient’s head (not pictured).
The Zemax model shown in Fig. 2 was made using thin lenses. The lenses that are part of the Canon CR-DGi (, , , and ) do not have publicly accessible parameters, so they were estimated using measured distances between the conjugate planes of the system. The components we used to build the system are in Table 1. The parameters of the Zemax model used to evaluate the system are in Table 2.
7. Appendix B: Safety
The device was evaluated for light safety according to ANSI Z80.36-2021: Light hazard protection for ophthalmic instruments. This protocol specifies light hazard protection for ophthalmic devices such as fundus cameras and slit lamps. ANSI Z80.36-2021 specifies the maximum radiant exposure on the cornea and fundus, considering the thermal hazard, aphakic photochemical hazard, and ultraviolet hazard. For each wavelength band used, the spectrum was recorded with a spectrometer, and the optical power tests weighted for all hazards were measured as prescribed by the protocol. The ANSI Z80.36 protocol has seven individual limits depending on the location of the eye irradiated, the wavelength used, and uses special weighting functions for the type of hazard (ultraviolet, photochemical, or thermal). For each of the three LED wavelengths and exposures used, the device was determined to be group 1 for all seven tests, indicating that it is nonhazardous for human use. The maximum radiant exposures per pulse for the different wavelengths are shown in Table 3.
Acknowledgments
This work was supported by the Wilmer Eye Institute Pooled Professor Fund and an unrestricted grant from Research to Prevent Blindness (RPB).
Biographies
Corey Simmerer is a PhD candidate in the Department of Biomedical Engineering at the Johns Hopkins University School of Medicine. He received his BSE degree from Duke University in biomedical engineering and electrical and computer engineering in 2021 and his MS degree from Johns Hopkins in biomedical engineering in 2024. His research interests include biophotonics and computational imaging.
Marisa Morakis is a PhD candidate in the Department of Biomedical Engineering at the Johns Hopkins University School of Medicine. She received her BS degree from Bucknell University in 2020. Her research interests include biophotonics and computational imaging.
Lei Tian is an associate professor of electrical and computer engineering at Boston University. He received his MS and PhD degrees from MIT in 2010 and 2013, respectively. His current research interests include computational imaging and sensing, imaging in scattering media, phase retrieval, and neurophotonics.
Lia Gomez-Perez is a PhD student in medical physics in the Harvard-MIT Health Sciences and Technology program. She received her BS degree in biomedical engineering from The Ohio State University in 2023 and did undergraduate research at Johns Hopkins University in 2022 as a part of the Computational Sensing & Medical Robotics REU program.
T. Y. Alvin Liu is an assistant professor of ophthalmology at the Wilmer Eye Institute at Johns Hopkins University. He received his BA degree from Cornell University and his MD from Columbia University and did his fellowship training and residency at Johns Hopkins University. His current research interests include artificial intelligence and ophthalmic imaging.
Nicholas J. Durr is an associate professor of biomedical engineering at Johns Hopkins University. He received his BS degree in electrical engineering and computer science from UC Berkeley in 2003 and his MS and PhD degrees in biomedical engineering from UT Austin in 2007 and 2010, respectively. His current research interests include medical devices, machine learning, and biophotonics. He is a member of SPIE.
Funding Statement
This work was supported by the Wilmer Eye Institute Pooled Professor Fund and an unrestricted grant from Research to Prevent Blindness (RPB).
Contributor Information
Corey Simmerer, Email: csimmer1@jhu.edu.
Marisa Morakis, Email: mmoraki1@jhmi.edu.
Lei Tian, Email: leitian@bu.edu.
Lia Gomez-Perez, Email: liagp@mit.edu.
T. Y. Alvin Liu, Email: tliu25@jhmi.edu.
Nicholas J. Durr, Email: ndurr@jhu.edu.
Disclosures
NJD is listed as co-inventor on a provisional patent application assigned to Johns Hopkins University that is related to the technologies described in this article. They may be entitled to future royalties from this intellectual property.
Code and Data Availability
Code and data used in this paper are available in the Johns Hopkins Research Data Repository at https://doi.org/10.7281/T17LHBOF.34 Code is also available in a GitHub repository at https://github.com/DurrLab/Computational-Funduscopy.
References
- 1.Hoang Q. V., “Adult eye examination techniques,” in Columbia Guide to Basic Elements of Eye Care: A Manual for Healthcare Professionals, Casper D. S., Cioffi G. A., Eds., pp. 27–36, Springer International Publishing, Cham: (2019). [Google Scholar]
- 2.Flaxman S. R., et al. , “Global causes of blindness and distance vision impairment 1990–2020: a systematic review and meta-analysis,” Lancet Glob. Health 5, e1221–e1234 (2017). 10.1016/S2214-109X(17)30393-5 [DOI] [PubMed] [Google Scholar]
- 3.Durr N. J., et al. , “From unseen to seen: tackling the global burden of uncorrected refractive errors,” Annu. Rev. Biomed. Eng. 16, 131–153 (2014). 10.1146/annurev-bioeng-071813-105216 [DOI] [PubMed] [Google Scholar]
- 4.Bragge P., et al. , “Screening for presence or absence of diabetic retinopathy: a meta-analysis,” Arch. Ophthalmol. 129, 435–444 (2011). 10.1001/archophthalmol.2010.319 [DOI] [PubMed] [Google Scholar]
- 5.Chin E. K., et al. , “Nonmydriatic fundus photography for teleophthalmology diabetic retinopathy screening in rural and urban clinics,” Telemed. e-Health 20, 102–108 (2014). 10.1089/tmj.2013.0042 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 6.Bernardes R., Serranho P., Lobo C., “Digital ocular fundus imaging: a review,” Ophthalmologica 226, 161–181 (2011). 10.1159/000329597 [DOI] [PubMed] [Google Scholar]
- 7.Yao X., Son T., Ma J., “Developing portable widefield fundus camera for teleophthalmology: technical challenges and potential solutions,” Exp. Biol. Med. 247, 289–299 (2022). 10.1177/15353702211063477 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 8.Panwar N., et al. , “Fundus photography in the 21st century—a review of recent technological advances and their implications for worldwide healthcare,” Telemed. e-Health 22, 198–208 (2016). 10.1089/tmj.2015.0068 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 9.Bascaran C., et al. , “Effectiveness of task-shifting for the detection of diabetic retinopathy in low- and middle-income countries: a rapid review protocol,” Syst. Rev. 10, 4 (2021). 10.1186/s13643-020-01553-w [DOI] [PMC free article] [PubMed] [Google Scholar]
- 10.Dunn H. P., et al. , “Optimising fundoscopy practices across the medical spectrum: a focus group study,” PLoS One 18, e0280937 (2023). 10.1371/journal.pone.0280937 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 11.Antipa N., et al. , “DiffuserCam: lensless single-exposure 3D imaging,” Optica 5, 1–9 (2018). 10.1364/OPTICA.5.000001 [DOI] [Google Scholar]
- 12.Boominathan V., et al. , “PhlatCam: designed phase-mask based thin lensless camera,” IEEE Trans. Pattern Anal. Mach. Intell. 42, 1618–1629 (2020). 10.1109/TPAMI.2020.2987489 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 13.Antipa N., et al. , “Single-shot diffuser-encoded light field imaging,” in IEEE Int. Conf. Comput. Photogr. (ICCP), pp. 1–11 (2016). 10.1109/ICCPHOT.2016.7492880 [DOI] [Google Scholar]
- 14.Cai Z., et al. , “Lensless light-field imaging through diffuser encoding,” Light Sci. Appl. 9, 143 (2020). 10.1038/s41377-020-00380-x [DOI] [PMC free article] [PubMed] [Google Scholar]
- 15.Boominathan V., et al. , “Recent advances in lensless imaging,” Optica 9, 1–16 (2022). 10.1364/OPTICA.431361 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 16.Li Y., et al. , “Diffuser-based computational imaging funduscope,” Opt. Express 28, 19641–19654 (2020). 10.1364/OE.395112 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 17.McKay G. N., Mahmood F., Durr N. J., “Large dynamic range autorefraction with a low-cost diffuser wavefront sensor,” Biomed. Opt. Express 10, 1718–1735 (2019). 10.1364/BOE.10.001718 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 18.DeHoog E., Schwiegerling J., “Optimal parameters for retinal illumination and imaging in fundus cameras,” Appl. Opt. 47, 6769–6777 (2008). 10.1364/AO.47.006769 [DOI] [PubMed] [Google Scholar]
- 19.Berendschot T. T. J. M., DeLint P. J., van Norren D., “Fundus reflectance—historical and present ideas,” Prog. Retin. Eye Res. 22, 171–200 (2003). 10.1016/S1350-9462(02)00060-5 [DOI] [PubMed] [Google Scholar]
- 20.DeHoog E., Schwiegerling J., “Fundus camera systems: a comparative analysis,” Appl. Opt. 48, 221–228 (2009). 10.1364/AO.48.000221 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 21.Murli A., D’Amore L., De Simone V., “The Wiener filter and regularization methods for image restoration problems,” in Proc. 10th Int. Conf. Image Anal. Process., pp. 394–399 (1999). 10.1109/ICIAP.1999.797627 [DOI] [Google Scholar]
- 22.Bergamin O., Kardon R. H., “Latency of the pupil light reflex: sample rate, stimulus intensity, and variation in normal subjects,” Invest. Ophthalmol. Vis. Sci. 44, 1546–1554 (2003). 10.1167/iovs.02-0468 [DOI] [PubMed] [Google Scholar]
- 23.Adams J. K., et al. , “In vivo lensless microscopy via a phase mask generating diffraction patterns with high-contrast contours,” Nat. Biomed. Eng. 6, 617–628 (2022). 10.1038/s41551-022-00851-z [DOI] [PMC free article] [PubMed] [Google Scholar]
- 24.Liu F. L., et al. , “Fourier DiffuserScope: single-shot 3D Fourier light field microscopy with a diffuser,” Opt. Express 28, 28969–28986 (2020). 10.1364/OE.400876 [DOI] [PubMed] [Google Scholar]
- 25.Yanny K., et al. , “Deep learning for fast spatially varying deconvolution,” Optica 9, 96–99 (2022). 10.1364/OPTICA.442438 [DOI] [Google Scholar]
- 26.Huang L., et al. , “Self-supervised learning of hologram reconstruction using physics consistency,” Nat. Mach. Intell. 5(8), 895–907 (2023). 10.1038/s42256-023-00704-7 [DOI] [Google Scholar]
- 27.Asif M. S., et al. , “Flatcam: thin, lensless cameras using coded aperture and computation,” IEEE Trans. Comput. Imaging 3(3), 384–397 (2016). 10.1109/TCI.2016.2593662 [DOI] [Google Scholar]
- 28.Kuo G., et al. , “On-chip fluorescence microscopy with a random microlens diffuser,” Opt. Express 28, 8384–8399 (2020). 10.1364/OE.382055 [DOI] [PubMed] [Google Scholar]
- 29.Lee K. C., et al. , “Design and single-shot fabrication of lensless cameras with arbitrary point spread functions,” Optica 10, 72–80 (2023). 10.1364/OPTICA.466072 [DOI] [Google Scholar]
- 30.Lee Y., et al. , “Fabrication of integrated lensless cameras via UV-imprint lithography,” IEEE Photonics J. 14, 1–8 (2022). 10.1109/JPHOT.2022.3157373 [DOI] [Google Scholar]
- 31.Zheng C., Zhao G., So P., “Close the design-to-manufacturing gap in computational optics with a ‘Real2Sim’ learned two-photon neural lithography simulator,” in SIGGRAPH Asia 2023 Conf., Association for Computing Machinery, New York, pp. 1–9 (2023). 10.1145/3610548.3618251 [DOI] [Google Scholar]
- 32.Durr N. J., et al. , “Design and clinical evaluation of a handheld wavefront autorefractor,” Optom. Vis. Sci. 92, 1140 (2015). 10.1097/OPX.0000000000000732 [DOI] [PubMed] [Google Scholar]
- 33.Durr N. J., et al. , “Quality of eyeglass prescriptions from a low-cost wavefront autorefractor evaluated in rural India: results of a 708-participant field study,” BMJ Open Ophthalmol. 4, e000225 (2019). 10.1136/bmjophth-2018-000225 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 34.Simmerer C. A., Durr N. J., “Data and code associated with the publication: In vivo fundus imaging and computational refocusing with a diffuser-based fundus camera,” doi 10.7281/T17LHBOF, Johns Hopkins Research Data Repository (2025). [DOI]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Data Availability Statement
Code and data used in this paper are available in the Johns Hopkins Research Data Repository at https://doi.org/10.7281/T17LHBOF.34 Code is also available in a GitHub repository at https://github.com/DurrLab/Computational-Funduscopy.







