• site home
  • blog home
  • galleries
  • contact
  • underwater
  • the bleeding edge

the last word

Photography meets digital computer technology. Photography wins -- most of the time.

You are here: Home / The Last Word / A more accurate lens aberration simulation — caveats

A more accurate lens aberration simulation — caveats

July 4, 2025 JimK Leave a Comment

A couple of weeks ago, I presented the results of a lens simulation that I wrote. That simulator ignored phase effects in the frequency domain. I have created a successor sim that used Fourier optics, and is much more accurate in presenting the results of combinations of aberrations.  But this simulator has its own set of limitations, and I want to be — ahem — transparent about them.

  • The simulation is fundamentally monochromatic for each color plane. It computes PSFs for red, green, and blue channels independently, using 31 wavelengths from 400 nm through 700 nm in steps of 10 nm, but it does not model true broadband chromatic behavior or spectral dispersion through optical materials. The system assumes a paraxial geometry and does not perform full ray tracing through thick, multi-element optics. As a result, it is best suited for moderate aberrations where wavefront error can be meaningfully expressed using a Zernike basis.
  • Aberrations are modeled as static phase shifts across a uniform, circular pupil. This approach correctly captures diffraction in the scalar approximation by applying a Fourier transform to the complex pupil function. However, it assumes the aperture is perfectly circular and uniformly illuminated. Effects due to aperture blade shape, central obstructions, vignetting, or falloff toward the field edge are not included. Nor are effects from polarization, coherence, or vector diffraction.
  • PSFs are computed on a discrete grid of field points. Each tile of the image receives a different PSF depending on its position, but the PSF is assumed to be spatially invariant within the tile. This tiling approximates field dependence, but cannot capture continuous PSF variation or higher-order interactions between aberrations and field angle. The system also assumes shift-invariance within each tile and does not model isoplanatic breakdown or spatially variant convolution kernels.
  • Although defocus is parameterized in microns of image-plane shift and scaled appropriately using the f-number and wavelength, the simulation does not directly derive defocus or depth-of-field behavior from lens geometry or object distance. Similarly, while lateral and longitudinal chromatic aberrations are modeled, they are applied as simple shifts and focal displacements rather than emerging from physical ray paths through refractive elements.
  • Sensor-level effects such as pixel shape, sampling, color filter arrays, noise, and readout behavior are also excluded. The simulation operates entirely in linear light, using upsampled convolution to apply PSFs and downsampling afterward. While this enables good spatial resolution and visual realism, it does not account for demosaicing, sensor integration, or tone mapping. Likewise, artifacts like flare, ghosting, and scattering are not modeled.
  • Sensor sampling window functions are not modeled, which causes the next three issues.
  • Aliasing is misrepresented: I’m showing band-limited PSFs, but not how they would interact with discrete sampling. Real sensors perform spatial averaging over each pixel, attenuating high-frequency content more than a delta-function sample would.
  • Contrast is overestimated: Especially for fine PSF structure near the cutoff frequency, contrast appears higher than it would be in a real captured image.
  • Chromatic aliasing is unfiltered: Lateral chromatic aberration or diffraction-induced color fringes are shown in full detail, but in practice, the boxcar convolution from sensor pixels would blur them.
  • Overall, this simulation provides a physically plausible and computationally efficient way to explore the spatial effects of various low- to mid-order aberrations. It models diffraction through the Fourier transform of a complex pupil, and incorporates field-dependent phase errors expressed through Zernike polynomials. However, it stops short of full wave-optical or ray-traced modeling, and omits many of the nonlinear, time-varying, or sensor-specific phenomena that arise in real optical systems.

The Last Word

← In photography, and in life, work and joy can, and should, coexist Don’t fixate on the bad stuff →

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

July 2025
S M T W T F S
 12345
6789101112
13141516171819
20212223242526
2728293031  
« Jun    

Articles

  • About
    • Patents and papers about color
    • Who am I?
  • How to…
    • Backing up photographic images
    • How to change email providers
    • How to shoot slanted edge images for me
  • Lens screening testing
    • Equipment and Software
    • Examples
      • Bad and OK 200-600 at 600
      • Excellent 180-400 zoom
      • Fair 14-30mm zoom
      • Good 100-200 mm MF zoom
      • Good 100-400 zoom
      • Good 100mm lens on P1 P45+
      • Good 120mm MF lens
      • Good 18mm FF lens
      • Good 24-105 mm FF lens
      • Good 24-70 FF zoom
      • Good 35 mm FF lens
      • Good 35-70 MF lens
      • Good 60 mm lens on IQ3-100
      • Good 63 mm MF lens
      • Good 65 mm FF lens
      • Good 85 mm FF lens
      • Good and bad 25mm FF lenses
      • Good zoom at 24 mm
      • Marginal 18mm lens
      • Marginal 35mm FF lens
      • Mildly problematic 55 mm FF lens
      • OK 16-35mm zoom
      • OK 60mm lens on P1 P45+
      • OK Sony 600mm f/4
      • Pretty good 16-35 FF zoom
      • Pretty good 90mm FF lens
      • Problematic 400 mm FF lens
      • Tilted 20 mm f/1.8 FF lens
      • Tilted 30 mm MF lens
      • Tilted 50 mm FF lens
      • Two 15mm FF lenses
    • Found a problem – now what?
    • Goals for this test
    • Minimum target distances
      • MFT
      • APS-C
      • Full frame
      • Small medium format
    • Printable Siemens Star targets
    • Target size on sensor
      • MFT
      • APS-C
      • Full frame
      • Small medium format
    • Test instructions — postproduction
    • Test instructions — reading the images
    • Test instructions – capture
    • Theory of the test
    • What’s wrong with conventional lens screening?
  • Previsualization heresy
  • Privacy Policy
  • Recommended photographic web sites
  • Using in-camera histograms for ETTR
    • Acknowledgments
    • Why ETTR?
    • Normal in-camera histograms
    • Image processing for in-camera histograms
    • Making the in-camera histogram closely represent the raw histogram
    • Shortcuts to UniWB
    • Preparing for monitor-based UniWB
    • A one-step UniWB procedure
    • The math behind the one-step method
    • Iteration using Newton’s Method

Category List

Recent Comments

  • Eugene on Don’t fixate on the bad stuff
  • Jonby on How focus-bracketing systems work
  • JimK on Of fidelity, photography, audio, and wine
  • JimK on Of fidelity, photography, audio, and wine
  • AVN on Of fidelity, photography, audio, and wine
  • Markus on In photography, and in life, work and joy can, and should, coexist
  • JimK on Fuji 120/4 GF at 1:1 with tubes — visuals
  • Christopher Roberton on Fuji 120/4 GF at 1:1 with tubes — visuals
  • Pieter Kers on Visualising lens aberrations — one at a time, Siemens Star
  • JimK on Visualizing aberrations — caveats

Archives

Copyright © 2025 · Daily Dish Pro On Genesis Framework · WordPress · Log in

Unless otherwise noted, all images copyright Jim Kasson.