Automatic Estimation of Modulation Transfer Functions

Matthias Bauer, Valentin Volchkov, Michael Hirsch, Bernhard Schölkopf · DOI

Abstract

The modulation transfer function (MTF) is widely used to characterise the performance of optical systems. Measuring it is costly and it is thus rarely available for a given lens specimen. Instead, MTFs based on simulations or, at best, MTFs measured on other specimens of the same lens are used. Fortunately, images recorded through an optical system contain ample information about its MTF, only that it is confounded with the statistics of the images. This work presents a method to estimate the MTF of camera lens systems directly from photographs, without the need for expensive equipment. We use a custom grid display to accurately measure the point response of lenses to acquire ground truth training data. We then use the same lenses to record natural images and employ a data-driven supervised learning approach using a convolutional neural network to estimate the MTF on small image patches, aggregating the information into MTF charts over the entire field of view. It generalises to unseen lenses and can be applied for single photographs, with the performance improving if multiple photographs are available.

Introduction: The Challenge of Lens Characterization

To quantify the sharpness of a camera lens, engineers look at its Modulation Transfer Function (MTF). The MTF describes how well a lens preserves contrast as spatial frequency increases—essentially, how much detail is lost when light passes through the glass.

Figure 1: The MTF measures the loss of contrast (modulation) as a function of spatial frequency. High frequencies (fine details) typically show lower contrast than low frequencies.

Historically, measuring MTF required specialized, expensive optical test stations or carefully calibrated photographs of standardized test charts. This puts accurate lens characterization out of reach for most photography enthusiasts. While every photo contains the "fingerprint" of the lens's aberrations—the Point Spread Function (PSF)—this information is entangled with the scene's content. This research proposes a deep learning approach to "blindly" estimate MTF from standard photographs of natural scenes.

Methodology

The proposed system estimates local MTF values from small image patches and aggregates them into a global field-of-view chart.

Ground Truth Acquisition

The authors developed a 2m × 1.5m LED-backlit "PSF panel" covered in 150µm pinholes to capture the true PSFs of various lenses. This ground truth data was used to synthetically blur sharp images, creating a supervised dataset for training a Convolutional Neural Network (CNN).

CNN Architecture and Feature Fusion

The CNN processes small image patches. To simplify the learning task, each patch is rotated so its local radial and tangential vectors align with the image axes. A key innovation is feature-space averaging: the network takes multiple patches from the same location across different photos, averages their intermediate feature maps, and then predicts the MTF. This process cancels out random scene content while amplifying the consistent lens blur.

Global Aggregation

Local estimates are smoothed and interpolated across the entire image frame using Gaussian Process (GP) regression to produce continuous MTF charts.

Key Results

The method produces full-field MTF charts in minutes, significantly faster than traditional blind deblurring methods which can take hours for a single patch.

Figure 6: Estimated MTF charts and PSFs for three different lenses. The dashed and solid lines represent radial and tangential MTF components across the field of view.
  • Accuracy: On natural scenes, the average error was less than 0.1 MTF units in the center and less than 0.2 towards the corners.
  • Multi-Photo Benefit: Fusing 4 to 8 different photographs significantly reduces the noise in MTF estimates compared to using a single image.
  • Generalization: The network successfully generalizes to lenses it has never seen during training, proving that natural image statistics are consistent enough to act as a reliable baseline.

Conclusion and Future Work

This data-driven approach democratizes lens testing by allowing users to characterize their equipment using everyday photos. Current limitations include sensitivity to depth-of-field variations and a reliance on textured patches (e.g., it cannot estimate blur from a clear sky). Future improvements will focus on automated patch selection, multi-channel RGB fusion, and handling 3D scene geometry.

Summary updated

BibTeX
@inproceedings{bauer2018automatic,
  author = {Matthias Bauer and Valentin Volchkov and Michael Hirsch and Bernhard Schölkopf},
  title = {{Automatic Estimation of Modulation Transfer Functions}},
  booktitle = {ICCP},
  year = {2018},
  doi = {10.1109/iccphot.2018.8368467},
}
Figure