Theory of Eye Refraction Simulator
1. Overview
This paper describes the theory by which the Eye Refraction Simulator calculates and displays the retinal image of an image viewed by an eye with myopia, hyperopia, astigmatism or presbyopia. It explains in order how the focus error on the retina is obtained from the refractive power and accommodation (§2 to §4), the size of the blur and the pupil (§5), how images with depth are drawn (§6), the point spread function (PSF) and longitudinal chromatic aberration (§7), the handling of camera video (§8), and the handling of depth and exposure in photos (§9). The sources of the values and constants of the equations are shown one by one in the tables of §11, distinguishing those confirmed in papers or standards from those set as rough guides because no literature was found.
This app cannot be used for diagnosis, treatment or vision tests (§10).
Key point: it defines the equations for computing, on an image, the retinal image of an eye with the refractive values the user specifies, looking at a given distance.
1-1. Premises
The following premises apply throughout this paper.
- 1. Eye optics: the PSF of the pupil, diffraction, aberrations and longitudinal chromatic aberration uses the same calculation as the theory of the Eye Age Simulator [12]. This paper describes the part of it in which the refractive error (focus error) and astigmatism are set from the user's values.
- 2. What is not included: yellowing of the lens and light scattering (including cataract) are not included.
- 3. Refractive values: the notation of ophthalmology (myopia is negative, hyperopia is positive, cylinder in minus form) (§2-2).
- 4. Color and wavelength: the PSF is calculated for each of three representative wavelengths of R, G and B (, and nm) (§7).
- 5. Images: an image with a depth map is drawn split into distance layers (§6). An image without depth is treated as if the whole screen were objects at the viewing distance.
- 6. The viewer's eye: the values the user specifies are taken as the values of the eye viewing the image on the screen. The amplitude of accommodation starts from the mean for the age, and the user can change it (§3-3).
1-2. Notation
Table 1: symbols used in this paper, and how they appear on the screen of the app. "In the app" gives the name on the screen (the wording of shared/strings/refractionsimulator.tsv; for the research settings, the wording of the item table in shared) and where it is. A value that is not on the screen is written as "internal value".
| Symbol | Meaning | In the app | Section |
|---|---|---|---|
| , | Distance of an object (m), its vergence (D, diopters) | "Distance" (the ruler in the lower row; the value is shown in cm and m; the vergence is an internal value) | §2 |
| , | Vergence of the viewing distance, vergence at which the eye actually focuses | The two handles of the "Distance" ruler (the ruler is , the eye handle is ) | §3 |
| Prescription sphere | "Sphere" (1st of the four in the lower row; balloon title "Sphere (PWR)") | §2 | |
| Prescription cylinder | "Cylinder" (2nd of the four; balloon title "Cylinder (CYL)") | §2 | |
| Prescription axis (°) | "Axis" (3rd of the four; balloon title "Axis (AXIS)") | §2 | |
| , , | Spherical equivalent, the two astigmatism components (power vector) | Internal value | §2 |
| Refractive power of the meridian | Internal value | §2, §4 | |
| Distance to the spectacle plane (m) | "Distance to spectacle plane" (Settings; only when "Refraction reference position" is "Spectacle plane") | §2 | |
| Amount of accommodation (D) | Internal value | §3 | |
| Amplitude of accommodation (the range from no accommodation ( D) to the thickest lens; D) | "Accom." (4th of the four in the lower row) | §3 | |
| Age | Age (years) | "Age" (Research settings) | §3, §5 |
| Remaining refractive error (focus error on the retina, D) | Internal value | §3 | |
| , | Pupil diameter (m, mm) | "Pupil diameter (0 = from brightness)" (Research settings), "Dark pupil" (Settings); "Pupil {0} mm" in the name of a panel | §5 |
| Angular diameter of the blur circle (rad) | Internal value | §5 | |
| Brightness of the image (cd/m²) | An internal value decided from "White luminance of the image" (Research settings) and the mean brightness of the image | §5 | |
| Area of the field (deg²) | An internal value decided from "Horizontal field of view" (Research settings) | §5 | |
| , , , | Vergence of layer , weight of a pixel in the layer, coverage of the layer, color of the layer | Internal value | §6 |
| , , , | Optical path difference (OPD) on the pupil, its coefficients | Internal value | §7 |
| Wavelength (nm) | "Chromatic aberration" (Research settings; on/off) decides the calculation for the three wavelengths. The wavelength is an internal value | §7 | |
| , | Entrance pupil diameter of the camera, vergence of the camera focus | Internal value (obtained from the EXIF of the photo) | §8, §9 |
| , , | Eye blur, blur from the shot, scale factor of the HDR brightness | Internal value | §9 |
Key point: the following equations express distance in m, refractive power and vergence in D, and angle in rad (degrees and arcminutes in the figures).
1-3. Flow of the processing
- 1. From the user's values (sphere, cylinder, axis, amplitude of accommodation, viewing distance), the refraction of the eye and the accommodation are determined (§2, §3).
- 2. For each distance of the objects in the image (the depth map; if there is none, the viewing distance for the whole screen), the remaining refractive error is obtained (§3).
- 3. From the remaining error, astigmatism, pupil and longitudinal chromatic aberration, the point spread function (PSF) is made (§5, §7).
- 4. An image with depth is blurred with the PSF for each distance layer and composited (§6). The handling of depth and exposure in photos is described in §9.
- 5. The result is converted back to screen color and displayed (the same as the Eye Age Simulator [12]; the transfer function of sRGB is [23]).
Key point: the eye's values are collected into "the focus error per distance", and a PSF is made for each error to blur the image.
1-4. Structure of the eye and the parts the parameters correspond to
The values of this app correspond to three parts: the refractive power of the eye (sphere, cylinder, axis; §2, Figure 3, Figure 4, Figure 5), the accommodation of the lens (amplitude; §3, Figure 6) and the pupil (§5, Figure 7). The remaining error expresses the result as the focus error of the image on the retina.
Key point: the values of this app correspond to the refractive power of the eye, the accommodation of the lens and the pupil, and their error becomes the size of the blur circle on the retina.
2. Refraction and Diopters
2-1. Diopters
If the distance of an object is (m), the spread of the light (vergence) entering the eye from it is
Far (infinity) is D, m is D, cm is D, and cm is D. Differences in distance, expressed as differences in D, are proportional to the size of the blur (§5). The vergence is the standard definition of geometrical optics, an equation that does not depend on the literature.
Key point: the blur is calculated not in distance but in vergence (D).
2-2. Notation of refraction
The values inside the app use the ophthalmic notation of refraction. From the prescription sphere ("Sphere" on the screen), cylinder ("Cylinder") and axis ("Axis"), they are converted into a power vector (Thibos et al. [1]).
The refractive power of the meridian is [1]
A value written with a plus cylinder gives the same eye when rewritten as , , .
Key point: the three values of sphere, cylinder and axis are converted into the spherical equivalent and the two astigmatism components and for the calculation.
2-3. Spectacle plane and eye surface
Spectacles are at a distance from the eye (default mm), so for the same eye the power of the spectacles differs from the power of a contact lens (at the eye surface). When "Spectacle plane" is selected for "Refraction reference position" in the Settings, the two principal meridians and are converted into the power at the eye surface by the following equation and used for the calculation (the vertex-distance correction of a thin lens; a general optical equation [20]).
is the distance to the spectacle plane (m; "Distance to spectacle plane" in the Settings). The stronger the power, the larger the difference (spectacles of D are about D at the eye surface).
Key point: when the spectacle plane is selected, the power is converted into the value at the eye surface.
3. Accommodation and Presbyopia
3-1. Accommodation
A young eye changes the shape of the lens to focus on near objects (accommodation; Figure 6). The amplitude of accommodation (D; "Accom." on the screen) is the range over which the eye can accommodate, from no accommodation ( D, the lens is thinnest) to the thickest lens. The amount of accommodation (D) tries to match the viewing distance (the "Distance" ruler in the lower row of the screen) and is determined within the range that does not exceed the amplitude of accommodation .
- A hyperopic eye () accommodates by even when looking far.
- A myopic eye () does not accommodate beyond its far point (vergence ) (accommodating does not bring far objects into focus).
The vergence at which the eye actually focuses is
When the eye can match the viewing distance, . When the amplitude is insufficient (presbyopia, hyperopia), is farther than , and when a myopic eye looks beyond its far point, is the far point . In the two-handled distance slider, the ruler handle is , the eye handle is , and the band between them is the difference.
Key point: accommodation tries to match the viewing distance but stops within the amplitude.
3-2. Remaining refractive error
The focus error on the retina (remaining refractive power) of an object at vergence is
Negative is blur on the myopic side (focus in front of the retina; Figure 3), and positive is blur on the hyperopic side (behind the retina). The object being looked at () is if the accommodation is sufficient.
Key point: the remaining error of each object becomes the focus error of the PSF as it is.
3-3. Amplitude of accommodation and age
The mean amplitude of accommodation decreases with age. This app uses Hofstetter's mean formula [3][21].
The initial value of D is the mean at age (the age is "Age" in the Research settings). The user can change the amplitude within to D.
Key point: the amplitude starts from the mean determined by age, and the user can change it freely.
3-4. When all four are off
With sphere and cylinder off, they are calculated as D, and with amplitude off, as the maximum of the range ( D). All four off is an emmetropic young eye with sufficient accommodation. The object at the viewing distance is always sharp, and in images with depth only objects away from the viewing distance are blurred by their difference in D.
Key point: all four off is the reference eye (emmetropic, sufficient accommodation).
4. Astigmatism
4-1. Cylinder and axis
Astigmatism is an eye whose refractive power differs with the meridian (direction). The meridian along the axis of a minus cylinder has the sphere power, and the perpendicular meridian has sphere + cylinder (equation (3)). The surface of the cornea curves differently by direction (Figure 4), the blur has a direction, and a point spreads into a line (or an ellipse) (Figure 5).
Key point: astigmatism is expressed by the difference in refractive power between meridians, and that difference spreads a point into a line.
4-2. Direction of the axis
The angle of the axis is in the TABO notation (ISO 8429 [2]). The examiner faces the patient, is to the right, counterclockwise, and the scale is the same for the right and left eyes. The direction the patient looks outward is reversed left and right, so on the screen the angle is " at the right, clockwise". A minus cylinder blurs lines parallel to the axis, so the axis blurs lines falling to the right "\", the axis lines rising to the right "/", the axis horizontal lines, and the axis vertical lines.
Key point: the direction of the axis is in TABO notation, and the rotation of the scale is reversed on the screen.
4-3. Double image of astigmatism (not reproduced)
People with astigmatism sometimes say that "things look double". The point image of a focus error with regular astigmatism alone only spreads into a line and does not split into two. Seeing double occurs when higher-order aberrations such as spherical aberration are combined with the focus error (Woods et al. [7]; the mean spherical aberration of normal eyes is positive [18]), when an ordinary refractive error is induced (Coffeen and Guyton [19]), or with irregular astigmatism (keratoconus), disturbance of the tear film, and so on. This app does not show this appearance (§10).
Key point: seeing double is caused by higher-order aberrations and the like, and this app does not handle it.
5. Size of the Blur
5-1. Pupil and focus error in D
In geometrical optics, the angular diameter of the blur circle is the product of the pupil diameter (m) and the focus error (D).
The larger the pupil diameter, the larger the blur circle (Figure 7). This equation is the geometrical-optics approximation, for small errors, that the angular size of the blur circle is about the product of the pupil diameter and the defocus [22]. With a mm pupil, a D error gives mrad (about ), and a mm pupil gives twice that. Even for the same refractive error, the blur is larger in the dark (larger pupil) and smaller in bright light.
5-2. Pupil
The pupil diameter is determined from the brightness of the image (white luminance of the scene × mean brightness of the image) (cd/m²), the area of the field (deg²) and the age, by the unified formula of Watson and Yellott [4] (the white luminance is "White luminance of the image" in the Research settings and the field is "Horizontal field of view"; the pupil can be fixed with "Pupil diameter (0 = from brightness)" in the Research settings) (the same as the Eye Age Simulator [12]). With adaptation of both eyes, .
The pupil diameter is limited to the range of to mm [12][16]. The brightness is taken as the mean over the whole image, so the width of the field is also taken as the angle of view of the whole image. Turning on "Dark pupil" in the Settings fixes the pupil at its size in the dark ( mm). This mm is a rough guide set by this app (§11).
Key point: the darker it is, the larger the pupil, and the larger the blur for the same focus error.
5-3. Visible angle of view
The size of the blur on the screen (pixels) is the angle of the blur divided by "the angle subtended by one pixel of the screen". The angle of one pixel is obtained by dividing the angle subtended by the range of the image actually visible in the screen (tile) by the width of the tile in pixels. When the image is laid out to fill the tile and the left and right are cut off (such as viewing a landscape photo on a portrait phone), the visible angle is narrower than the full width of the image. The angle is obtained with the same projection as a camera lens ( from the center direction), and includes zoom, pan and rotation. Zooming in makes the angle of one pixel smaller, so the blur becomes larger on the screen.
Key point: the angle of the blur is converted by the angle of one screen pixel into a size in pixels.
6. Drawing the Depth Layers
6-1. Layers
An image with depth has a map of the vergence (D) for each pixel. is divided into intervals of D, and intervals containing or more of the pixels become layers (these two values are rough guides; §11). Each pixel is distributed linearly between the two adjacent layers according to the position of . If the center of layer is and the center of the next nearer layer is , the weight of a pixel with in layer is
No steps appear at the boundaries of the layers.
Key point: pixels are distributed linearly between two layers, so no steps of blur appear at layer boundaries.
6-2. PSF per layer and compositing
For each layer, a PSF is made with the remaining error at the layer's , and the pixels of the layer (color and coverage) are blurred. From the back layer to the front layer, they are composited by the following equation, hiding the back with the coverage of the front layer.
is the blurred color of layer , and is the blurred coverage of layer (how far a nearer object exists). The coverage is also blurred with the PSF of each color, so the back can be seen through the edge of a blurred front object. The back parts hidden by front objects are filled with nearby back colors (because a single image has no information about hidden parts).
Key point: compositing back to front by coverage lets the back show through the edge of a blurred front object.
6-3. Viewing distance
Pressing an object on the screen makes the median of around that point (a window of of the short side) the viewing distance (even pressing the edge of an object does not give the mean of front and back). The near end of the viewing-distance slider is determined by the type of the image. For images without depth and "photo" images it is cm; for images with depth, the distance of the nearest object in that image; for the camera, the nearest distance that camera can focus on (the OS value). The window size and cm are rough guides set by this app (§11).
Key point: the viewing distance is determined by the median of the depth around the pressed point.
7. PSF and Chromatic Aberration
7-1. PSF
The optical path difference (OPD) on the pupil is made from the focus error (), astigmatism (, ), spherical aberration and longitudinal chromatic aberration [12]. The terms for focus error and astigmatism are as follows ( and are coordinates on the pupil (m), and is in D).
The PSF is obtained as the intensity of the Fourier transform of the pupil function (including diffraction). The amplitude includes the Stiles–Crawford effect (light through the center of the pupil is perceived more strongly; mm⁻² [17]). When the blur is large, the calculation grid is made coarser to keep the same shape.
Key point: the larger the focus error, the wider the disc of the PSF, and astigmatism stretches the PSF into a line.
7-2. Longitudinal chromatic aberration
The eye focuses at different positions for different colors (longitudinal chromatic aberration; it can be switched on and off with "Chromatic aberration" in the Research settings). Blue light focuses in front of red light, with a difference of about D over the visible range ( to nm). The equation has the form of Thibos et al. [5], and its coefficients were confirmed in the text of Marimont and Wandell [6]. The reference wavelength is nm, and only the difference is used.
This app makes a PSF for each of three wavelengths, red, green and blue (, and nm). Because of this, color fringes are shown at the edges of out-of-focus objects.
Key point: the focus error differs among the three wavelengths, so color fringes appear at blurred edges.
8. Camera Video
8-1. How the viewing distance is obtained
The camera video is treated as if the whole screen were objects at the viewing distance (because there is no depth data).
- When the camera is pointed elsewhere, the screen is pressed, or the ruler is moved: first the camera focuses on that distance, and it becomes . When the eye cannot focus on that distance ( differs from , §3-1), after a short delay the eye handle and the camera focus are moved to the eye's focus .
- Android: the calibrated focus distance that the camera reports (LENS_FOCUS_DISTANCE, in D [30]) is used as it is. Values from devices without calibration are not used.
- iPhone and iPad with LiDAR: the distance is measured with LiDAR only [29]. There is no switching to the ultra-wide camera at close range.
- The near end of the slider is the nearest distance that camera can focus on (the value the OS reports: minimumFocusDistance of AVCaptureDevice on iOS [27], LENS_INFO_MINIMUM_FOCUS_DISTANCE on Android [30]).
Key point: the camera video is treated as one distance for the whole screen, and the distance follows the camera focus.
8-2. Overlap with the camera blur
The camera video already contains the blur of the camera lens. The angular diameter of the camera blur is the product of the entrance pupil diameter and the error in D from the camera focus (the same formula as equation (9); is about mm for the main camera of a smartphone, a value obtained from the focal length and F-number in the EXIF of real devices [13]; the comparison of the size of the camera blur and the eye blur is in the internal studies [28]).
- Objects at the viewing distance (where the camera is focused) have no camera blur, so only the app's blur (for the remaining refractive error ) is shown, correctly.
- For objects at other distances, the camera blur (equation (17)) and the app's blur overlap. The two blurs do not cancel each other (the squares of their spreads roughly add), so where they would cancel in a real eye (such as objects at hand for a myope looking far), the view looks blurrier than a real eye would see.
- Blur cannot be removed from the video, so where the camera blur is larger than the eye's (in bright light, when the pupil is smaller than ), the view cannot be shown correctly.
To see how depth looks correctly, check with images with depth data (§6).
Key point: the camera blur stays overlapped in the camera video.
9. Handling of Depth and Exposure in Photos
The theory proper is §2 to §7. This section briefly describes how photos are read as they are. The measurements and details of the implementation are in the internal documents [13][14].
- Photos with depth: a per-pixel vergence map (D) is built from the Apple auxiliary image (disparity, ) [9][26] or a Dynamic Depth 1.0 JPEG (Pixel and others) [8], and drawn by the same path as the samples (§6). On iPhone 15 and later, ordinary photos also carry depth [13]. Depth is either absolute (LiDAR, TrueDepth, unit m) or relative (dual wide camera, Pixel Portrait mode (the camera mode that blurs the background)); the scale of relative depth is not fixed, so distance differences are reference values. For Portrait mode, the picture before the background blur is used when it exists, and otherwise the edited picture.
- Subtracting the blur from the shot: a photo already contains the blur from when it was shot, on objects outside the camera's focus. Laying the eye's blur on top would add the two in squares, so for each layer the eye blur is compared with the blur from the shot ( is the entrance pupil = focal length ÷ F-number, is the focus distance in D). A layer with gets only of blur; a layer with gets none. For Portrait mode photos, the entrance pupil of the blur (35 mm equivalent focal length ÷ SimulatedAperture) is added to the lens entrance pupil in squares. This equation is an estimate from measurements on one photo, a rough guide [13]. Where the blur from the shot is larger than the eye's, it cannot be removed.
- HDR brightness: in photos with a gain map, the HDR midtones can be brighter than the SDR (about 2 times in Apple photos) [13]. The format of the gain map follows Ultra HDR [24] and ISO 21496-1 [25]. The median of HDR ÷ SDR over pixels where the base SDR is to is taken as , and the whole HDR is divided by ( to ; not divided when there are too few midtone pixels). Light above white remains after dividing by . Camera HLG treats the reference white ( cd/m² of BT.2408 [10]) as the SDR white .
- Samples: each sample with depth is one Dynamic Depth 1.0 JPEG per scene [8], and the CG scenes were made from publicly available assets (sources and licenses in [31]). The depth is a 16-bit PNG (RangeInverse, Meters) [14].
- Scattering is not included (§1-1): light above white is only fitted into white, with no scattering or bloom.
Key point: the depth and exposure of photos are adjusted on the input side, without changing the equations of the theory.
10. Limits
- This app cannot be used for diagnosis, treatment or vision tests. It differs from an individual's actual vision. If you are concerned about eye symptoms, see an ophthalmologist.
- Many of the numerical values are rough guides (the tables in §11 show the values that have no source).
- The brightness and color of the screen look different on different screens.
- Double image of astigmatism: seeing double with one eye (§4-3) is not shown. With the current PSF grid, the separation of the double image (a few minutes of arc) falls within 1 to 2 cells of the grid, and it looks like a single peak.
- Pupil: the pupil is one size set from the brightness of the image. A real pupil also changes with the brightness of the scene, the distance (it constricts when looking near) and emotion. For photos without depth, the true brightness of the scene is unknown, so it is set from the brightness of the image.
- Images without depth data: the whole screen is shown as objects at the viewing distance. The blur of objects at other distances is not correct.
- Hidden parts: even in images with depth data, the parts of the back hidden behind near objects are not in the image, so they are guesses filled with nearby colors.
- Relative depth: the depth of the iPhone rear camera and the Pixel Portrait mode has no fixed scale, so distance differences are reference values (§9).
- Blur from the shot: the part of the blur in a photo that is larger than the eye's blur cannot be removed (§9).
- Speed while moving: moving a value remakes the PSF (for each layer in images with depth data). While it is being remade, the previous picture is shown and replaced when the new one is ready, so with images with depth data the motion may not be smooth while a slider or value is being moved. When the finger is released the picture becomes correct. Large blurs (strong power, large pupil) take longer to remake.
- Individual differences: higher-order aberrations, speed of accommodation, the tear film and so on use general values or are not included.
Key point: this app is a tool for experiencing the blur of refractive error, and many of its numerical values are rough guides.
10-1. Remaining issues
- Scale of relative depth: the method of having the user match the distance at one place for relative depth (design document [14] §6-3) is undecided, and for now it is used the same as absolute depth.
- The pupil equation for Portrait mode: the entrance pupil of the blur = 35 mm equivalent focal length ÷ SimulatedAperture is an estimate from the measurement of one photo (9.4 mm against a measured mean of 10.3 mm), and has not been checked on other photos [13].
- Difference from the real distance: a table of the difference between the distance obtained from depth and the real distance (measured with a tape measure) has not yet been made [13].
- Overall verification: the individual equations were matched to values in the literature, but the composited images have not been checked against how people with refractive errors actually see.
11. Table of Parameters and Sources
The values, sources and levels of confirmation are shown for the parameters and constants of this app. The levels are the following four. The levels for the calculation of the eye's optics (pupil, diffraction, chromatic aberration) follow the confirmation in the theory of the Eye Age Simulator [12].
- A: confirmed by reading the body of the original (table, equation, section)
- B: only the abstract or summary was read
- C: confirmed in a secondary source (review, textbook, citation in another paper)
- D: no literature found (an assumption of this app; the reason is written in the remarks)
The breakdown of levels is: A is 6, B is 0, C is 7 and D is 15 (28 items in total). For items of level D, the reason for the choice is written in one line in the remarks.
11-1. Eye and accommodation
Table 2: values of the eye (specified by the user).
| Item | Symbol, default, unit, range | Source | Level | Remarks |
|---|---|---|---|---|
| Sphere | , −2.00, D, −10.00 to +10.00 (steps of 0.25) | — | D | No literature (assumption of this app). Reason: a range that lets users experience strong myopia and hyperopia (decision of 2026-11-20). |
| Cylinder | , 0.00, D, −8.00 to 0.00 (steps of 0.25) | — | D | No literature (assumption of this app). Reason: in minus-cylinder form, a value covering the practical range. |
| Axis | , 180, °, 1 to 180 (steps of 1) | [2] | C | Definition of the TABO direction (the text of the standard was not read; secondary source). |
| Power vector | , , (equation (2)) | [1] | C | The equation is the definition of Thibos et al. (original not read; secondary source). |
| Amplitude of accommodation | , 9.5, D, 0 to 15 (steps of 0.5). The mean for age is equation (8) | [3] | C | Hofstetter's mean formula age (original not read; a widely cited formula). The initial 9.5 D is the mean at age 30. The upper limit of 15 D is a rough guide set by this app. |
| Viewing distance | , 0 (far), D, 0 to 10 (steps of 0.05). Below 0.2 D is displayed as "far" | — | D | No literature (assumption of this app). Reason: 10 D (10 cm) was taken as a guide for the nearest distance viewed at hand. |
| Distance to the spectacle plane | , 12, mm, 0 to 30 | — | D | No literature (assumption of this app). Reason: set as a general value for how far spectacles are from the eye. Equation (4) is a general optical equation. |
11-2. Pupil, chromatic aberration, image
Table 3: values for the pupil, chromatic aberration and image.
| Item | Symbol, default, unit, range | Source | Level | Remarks |
|---|---|---|---|---|
| Pupil diameter | , automatic, mm, 2 to 8 (equation (11)) | [4][12] | A | Equations 10, 17 and 21 of Watson and Yellott (constants 846, 0.41, 7.75, 5.75, 28.58, 0.02132, 0.009562). Confirmed in [12]. |
| Dark mydriasis | 7, mm (fixed) | [12] | D | No literature (assumption of this app). Reason: a size generally used for the dark-adapted pupil of young people (the same as [12]). |
| Horizontal field of view of the screen | 50, °, 10 to 120 | — | D | No literature (assumption of this app). Reason: an input that depends on viewing conditions; it determines the field area of the pupil equation and the angle of a pixel. |
| White luminance of the image | 200, cd/m², 1 to 3000 | — | D | No literature (assumption of this app). Reason: set as a guide for the white luminance of an ordinary screen. |
| Stiles–Crawford effect | , 0.05, mm⁻² | [17][12] | C | A value quoted by secondary sources (ρ = 0.047 ± 0.013 mm⁻², horizontal direction; confirmed in [12]). The 0.05 of this app is a rough guide. |
| Longitudinal chromatic aberration | (equation (16)). Coefficients 633.46, 214.10 | [5][6] | C | Matches the coefficients , of Thibos (text of [6]). The original [5] was read only as an abstract. The reference wavelength is 550 nm. |
| Representative wavelengths of the PSF for R, G, B | 610, 550, 465, nm | [12] | C | The difference from the dominant wavelengths of the sRGB primaries is at most 1.4 nm (calculation in [12]). The representative wavelengths are rough guides. |
11-3. Depth, layers, camera
Table 4: values for images with depth and for the camera.
| Item | Symbol, default, unit, range | Source | Level | Remarks |
|---|---|---|---|---|
| Layer interval | 0.25, D | — | D | No literature (assumption of this app). Reason: the step decided in the design document [14] §2-5 (with a 3 mm pupil, a difference of 0.25 D is about 0.75 mrad in the angular diameter of the blur circle). |
| Fraction of pixels that makes a layer | 0.1, % or more | — | D | No literature (assumption of this app). Reason: so that no layer is made of outlier pixels only. |
| Window for the viewing distance | 1.5, % of the short side | — | D | No literature (assumption of this app). Reason: a size such that pressing the edge of an object does not give the mean of front and back. |
| Near end (images without depth, photos) | 10, cm | — | D | No literature (assumption of this app). Reason: a guide for the nearest distance viewed at hand. |
| Entrance pupil of the camera | , about 4 (main camera), mm. Focal length ÷ F-number | [13] | A | Calculated from the EXIF of real devices (main camera of iPhone 15: 5.96 mm ÷ F1.6 = 3.7 mm). |
| Focus distance of the camera | . For iPhone, the depth at the center of SubjectArea; for Pixel, the reciprocal of SubjectDistance | [11][13] | C | The definitions of the EXIF items are from a secondary source [11]. The choice was confirmed on an iPhone 15 photo (IMG_7600) by measuring the sharpness per depth band [13]. |
| Focus distance on Android | LENS_FOCUS_DISTANCE, D | [30] | A | The Camera2 documentation was read. The unit is D, and it is used only on devices whose calibration type is CALIBRATED (values of APPROXIMATE and UNCALIBRATED are not used). |
11-4. Photos (depth and exposure)
Table 5: values for the depth and exposure of photos.
| Item | Symbol, default, unit, range | Source | Level | Remarks |
|---|---|---|---|---|
| Depth of Dynamic Depth | Format (RangeInverse, RangeLinear), Units (Meters, Diopters), Near, Far | [8] | A | The body of the specification (PDF) was read. The equations of RangeLinear and RangeInverse are in figures and could not be extracted from the text. |
| Apple auxiliary images | Disparity (1/m), Depth (m), accuracy (relative, absolute) | [9] | A | Apple's developer documentation was read. On real iPhone 15 photos, the rear camera was relative and the front TrueDepth absolute [13]. |
| Pupil of the Portrait mode blur | 35 mm equivalent focal length ÷ SimulatedAperture, mm | [13] | D | No literature (assumption of this app). Reason: an estimate from the measurement of one photo (measured mean 10.3 mm, equation value 9.4 mm). |
| Scale factor of the HDR brightness | . Median of HDR ÷ SDR over pixels with SDR 0.05 to 0.5. Range 1/16 to 16. 1 when there are fewer than 50 midtone pixels | [13] | D | No literature (assumption of this app). Reason: for the same measurement for all images, matched to the measurements that Apple photos have midtones about 2 times brighter (k = 2.1 to 2.2) and Ultra HDR about 1 (0.94 to 1.00) [13]. |
| Reference white of HLG | 203, cd/m² (signal 0.75) | [10][12] | A | Reference white of ITU-R BT.2408-8 (the text was read; confirmed in [12]). |
| Resolution of the samples | Based on a long side of 2560 px. As it is when the original is smaller | [14] | D | No literature (assumption of this app). Reason: the same size as the long side of a smartphone screen (design document [14]). |
| PNG depth of the samples | 16 bits, RangeInverse, Meters | [8][14] | D | No literature (assumption of this app). Reason: a choice to keep the quantization error to at most 2.4e-5 D in 1/m (design document [14]). |
References
[1] L. N. Thibos, W. Wheeler, and D. Horner, "Power vectors: an application of Fourier analysis to the description and statistical analysis of refractive error", Optometry and Vision Science, vol. 74, no. 6, pp. 367–375, 1997 — Confirmation: original not read. The equations are from secondary sources (C).
[2] ISO 8429:1986, Optics and optical instruments — Ophthalmology — Graduated dial scale — Confirmation: the text of the standard was not read. The direction of the TABO notation is from secondary sources (C).
[3] H. W. Hofstetter, "Useful age-amplitude formula", Optometry World, vol. 38, pp. 42–45, 1950 — Confirmation: original not read. The mean formula age is a widely cited formula (C).
[4] A. B. Watson and J. I. Yellott, "A unified formula for light-adapted pupil size", Journal of Vision, vol. 12, no. 10, article 12, 2012. doi:10.1167/12.10.12 — Confirmation: equations 10, 17 and 21 confirmed in the text (by the confirmation in the theory of the Eye Age Simulator [12]).
[5] L. N. Thibos, M. Ye, X. Zhang, and A. Bradley, "The chromatic eye: a new reduced-eye model of ocular chromatic aberration in humans", Applied Optics, vol. 31, no. 19, pp. 3594–3600, 1992. doi:10.1364/ao.31.003594 — Confirmation: only the abstract of the original. The coefficients were confirmed in [6] (secondary).
[6] D. H. Marimont and B. A. Wandell, "Matching color images: the effects of axial chromatic aberration", Journal of the Optical Society of America A, vol. 11, pp. 3113–3122, 1994 — Confirmation: the text was read (Thibos's coefficients 0.63346 and 0.21410). Confirmed by the theory of the Eye Age Simulator [12].
[7] R. L. Woods, A. Bradley, and D. A. Atchison, "Monocular diplopia caused by ocular aberrations and hyperopic defocus", Vision Research, vol. 36, no. 22, pp. 3597–3606, 1996 — Confirmation: only the abstract was read (B). Content: the eyes with accommodation paralyzed all had positive spherical aberration, and combined with hyperopic defocus the image looks double. doi:10.1016/0042-6989(96)00092-2
[8] Google, Dynamic Depth 1.0 (Android Dynamic Depth specification), Depth Photo profile — Confirmation: the text of the specification PDF was read (definitions of the fields). The equations of RangeLinear and RangeInverse are in figures and could not be extracted from the text.
[9] Apple Inc., developer documentation on auxiliary data (auxiliary data, AVDepthData) of Image I/O and AVFoundation — Confirmation: the documentation was read. The forms of depth (disparity, depth; relative, absolute) were confirmed.
[10] ITU-R BT.2408, Guidance for operational practices in HDR television production — Confirmation: the text of BT.2408-8 was read (reference white 203 cd/m²; confirmed in the theory of the Eye Age Simulator [12]).
[11] CIPA DC-008, Exchangeable image file format for digital still cameras: Exif Version 2.3 — Confirmation: the text of the standard was not read. The definitions of SubjectArea, SubjectDistance and others are from secondary sources (C).
[12] Theory of the Eye Age Simulator (version 0.9), internal document docs/eyeagesimulator/theory/theory_eas_0.9.md — the calculation of the pupil, PSF and chromatic aberration, and the levels of confirmation of [4][5][6], follow this document.
[13] Internal document (measurements): docs/refractionsimulator/study/depth_photo_standard_camera_2026-11-23.md — Confirmation: numbers measured on real photos from iPhone 15 and Pixel 8 (k, blur already in the photo, Portrait mode pupil, EXIF values). The photos are not in the repository.
[14] Internal documents (design): docs/refractionsimulator/design/dynamic_depth_samples_2026-11-23.md and docs/refractionsimulator/design/implementation_notes_2026-11-24.md — form of the samples, design of the layers, details of the implementation of depth and exposure in photos.
[15] Gullstrand–Le Grand schematic eye (relaxed), as tabulated in the lecture notes "Class02_08" of the Visual Optics Lab, University of Arizona. https://wp.optics.arizona.edu/visualopticslab/wp-content/uploads/sites/52/2016/08/Class02_08.pdf — Confirmation: the table (cornea 0.55, anterior chamber 3.05, lens 4, vitreous 16.597 mm) was read (by the confirmation in the theory of the Eye Age Simulator [12]). The originals of Gullstrand and Le Grand were not read.
[16] H. Gross (ed.), Handbook of Optical Systems, vol. 4, chapter 36 "Human eye", Wiley-VCH, 2008 — Confirmation: the text was read (pupil diameter 2 to 8 mm, entrance pupil magnification 1.13 and so on; confirmed in [12]). A textbook.
[17] R. A. Applegate and V. Lakshminarayanan, "Parametric representation of Stiles–Crawford functions: normal variation of peak location and directionality", Journal of the Optical Society of America A, vol. 10, no. 7, pp. 1611–1623, 1993. doi:10.1364/JOSAA.10.001611; W. S. Stiles, Proceedings of the Royal Society B, vol. 123, pp. 90–118, 1937 — Confirmation: confirmed with values quoted in secondary sources (ρ = 0.047 ± 0.013 mm⁻²). The originals themselves were not read (confirmed in [12]).
[18] L. N. Thibos, X. Hong, A. Bradley, and X. Cheng, "Statistical variation of aberration structure and image quality in a normal population of healthy eyes", Journal of the Optical Society of America A, vol. 19, no. 12, pp. 2329–2348, 2002 — Confirmation: read within the abstract and book reviews (in 200 eyes the mean of the higher-order aberrations is about 0, with spherical aberration the only positive exception). The numbers in the text were not checked (B).
[19] P. Coffeen and D. L. Guyton, "Monocular diplopia accompanying ordinary refractive errors", American Journal of Ophthalmology, vol. 105, pp. 451–459, 1988. doi:10.1016/0002-9394(88)90234-6 — Confirmation: read within a book review (ordinary refractive errors cause monocular diplopia, which disappears with a pinhole). The text was not read (C).
[20] R. B. Rabbetts, Bennett & Rabbetts' Clinical Visual Optics, 4th ed., Butterworth-Heinemann (Elsevier), 2007 — Confirmation: the book was not read (not even its table of contents or preview). The vertex-distance equation (d in m) was confirmed in clinical-optics explanations and in the derivation in a patent specification (secondary sources). The confirmation of the equation is secondary (C).
[21] A. Duane, "Normal values of the accommodation at all ages", Journal of the American Medical Association, vol. 59, pp. 1010–1013, 1912 — Confirmation: the original was not read. That Hofstetter [3] compared the surveys of Duane, Donders and Kaufman and made three straight lines (minimum age, mean age, maximum age) was confirmed in the description in a 2016 paper on the amplitude of accommodation in schoolchildren and in a statement of the equations (secondary sources) (C). The same paper notes that the original data come from old surveys with methodological limitations (especially under 10 years of age).
[22] G. Smith, "Angular diameter of defocus blur discs", Optometry and Vision Science, vol. 68, no. 11, pp. 888–892, 1991; D. A. Atchison and G. Smith, Optics of the Human Eye, Butterworth-Heinemann, 2000 — Confirmation: neither was read. The equation that the angular size of the blur circle (rad) is the product of the pupil diameter (m) and the defocus (D) was confirmed in a 2016 paper that quotes it as Smith's (1991) definition and in an explanation that derives it (i-Perception 2018, PMC5946648) (C). The confirmation of the equation is secondary.
[23] IEC 61966-2-1:1999 / Amd 1:2003, Multimedia systems and equipment — Colour measurement and management — Part 2-1: Default RGB colour space — sRGB; International Color Consortium and W3C, "How to interpret the sRGB color space (specified in IEC 61966-2-1) for ICC profiles". https://www.w3.org/Graphics/Color/srgb — Confirmation: the standard itself was not read. The constants of the transfer function were read in the ICC and W3C explanation (confirmed in [12]; C).
[24] Android Developers, "Ultra HDR image format", version 1.1. https://developer.android.com/media/platform/hdr-image-format — Confirmation: the text was read (the equations of the gain map and the table of metadata; confirmed in [12]).
[25] ISO 21496-1:2025, Digital photography — Gain map metadata for image conversion — Part 1: Dynamic range conversion — Confirmation: only the title and its treatment in [24] were confirmed. The text was not read (C).
[26] Apple Inc., "Creating auxiliary depth data manually" and "Capturing photos with depth" (AVFoundation articles. https://developer.apple.com/documentation/avfoundation/creating-auxiliary-depth-data-manually) — Confirmation: the articles were read (the forms of the disparity and depth auxiliary images, and the procedure for writing them into an image file).
[27] Apple Inc., AVFoundation documentation: AVCaptureDevice (lensPosition, setFocusModeLocked(lensPosition:completionHandler:), minimumFocusDistance), AVCaptureDevice.DeviceType.builtInLiDARDepthCamera, AVDepthData.Accuracy (https://developer.apple.com/documentation/avfoundation/avcapturedevice and others) — Confirmation: the documentation pages were read (2026-11-19 to 22). lensPosition is a normalized value from 0 to 1, not a unit of distance (conversion to a distance was marked as needing confirmation in the plan [28]). The range of LiDAR and its accuracy at close range are not written in any of the pages [28].
[28] Internal documents (studies): docs/refractionsimulator/study/ camera_blur_vs_eye_2026-11-20 and 2026-11-22, camera_focus_drive_optics, impl and summary_2026-11-21, camera_capabilities_photo_video_2026-11-20, camera_drive_both_ways_2026-11-22, reff_range_2026-11-20, monocular_diplopia_astigmatism_2026-11-21, lidar_apple_docs_range_confidence_2026-11-22, depth_range_devices_2026-11-19, android_depth_options, apple_depth_formats and android_dynamic_depth_sources_2026-11-23 — Confirmation: see the sources section of each document. Comparison of the size of the camera blur and the eye blur, the optics of moving the focus, the range of the remaining error, and studies of the devices that can obtain depth.
[29] Apple Inc., ARKit documentation: ARDepthData, ARFrame.sceneDepth (https://developer.apple.com/documentation/arkit/ardepthdata and others) — Confirmation: the documentation pages were read. There are maps of LiDAR depth (meters) and confidence, but the measurable range and the accuracy at close range are not written [28]. 256×192 and 60 Hz are from developer forum posts, not official documentation (C).
[30] Android Developers, Camera2 documentation: CaptureRequest.LENS_FOCUS_DISTANCE, CameraCharacteristics.LENS_INFO_FOCUS_DISTANCE_CALIBRATION, LENS_INFO_MINIMUM_FOCUS_DISTANCE (https://developer.android.com/reference/android/hardware/camera2/CaptureRequest and others) — Confirmation: the documentation pages were read. The unit of LENS_FOCUS_DISTANCE is D (1/m), and the value is used as a distance only when the calibration type (CALIBRATED, APPROXIMATE, UNCALIBRATED) is CALIBRATED.
[31] Sources of the CG scenes of the samples: Classroom (Christophe Seux, CC0; Blender Demo Files), Barcelona Pavilion (eMirage; rendering and more by Hamza Cheggour, base model by Claudio Andres, CC BY; BlendSwap), Amazon Lumberyard Bistro (Amazon Lumberyard, Open Research Content Archive (ORCA), 2017, CC BY 4.0; https://developer.nvidia.com/orca/amazon-lumberyard-bistro), Poly Haven assets (Lantern 01, Tea Set 01 and the night-light HDRIs; CC0; https://polyhaven.com/license) — Confirmation: the ORCA page and the Poly Haven page and API were read directly (primary). For Classroom and Barcelona Pavilion the pages of blender.org could not be read (bot check); they were confirmed in search results and BlendSwap (secondary), and the version and so on need checking before distribution. Details: docs/refractionsimulator/study/depth_scenes_licenses_2026-11-22.md.