A Flexible Framework for Universal Computational Aberration Correction via Automatic Lens Library Generation and Domain Adaptation

Qi Jiang, Yao Gao, Shaohua Gao, Zhonghua Yi, Lei Sun, Hao Shi, Kailun Yang, Kaiwei Wang, Jian Bai · DOI

Introduction

Computational Aberration Correction (CAC) is a critical technique in modern imaging, designed to software-correct physical imperfections in lenses such as blur, distortion, and chromatic aberration. Traditionally, CAC requires a "non-blind" approach, necessitating precise mathematical specifications of the lens assembly. However, for many consumer-grade mobile lenses or custom hardware, these specifications are either proprietary or inaccurate due to manufacturing variances. OmniLens addresses this by providing a framework that corrects aberrations for virtually any lens without requiring prior technical documentation.

The OmniLens framework targets 'unknown' lenses by simulating a wide variety of optical designs and adapting to real-world hardware.

Methodology

The OmniLens framework relies on two primary innovations: Evolution-based Automatic Optical Design (EAOD) and Unsupervised Domain Adaptation.

Evolution-based Automatic Optical Design (EAOD)

Rather than relying on a small library of high-quality manual lens designs, the authors employed a genetic algorithm to "evolve" thousands of diverse lens structures. This process creates the AODLib, a massive training dataset that includes physically realistic but optically "imperfect" designs. By training on these "failed" local optima, the model learns to handle the severe aberrations common in low-cost hardware more effectively than models trained on "perfect" lens libraries.

Unsupervised Domain Adaptation and the Dark Channel Prior

To bridge the gap between synthetic training data and a specific real-world lens, the framework utilizes unsupervised domain adaptation. This allows the model to fine-tune itself using a small set of images (approximately 25) captured by the target lens. Because ground-truth clear images are unavailable for these real-world captures, the authors leverage the Dark Channel Prior (DCP). In clear natural images, most local patches contain at least one pixel with very low intensity in one color channel. Optical aberrations tend to "wash out" these dark pixels. By optimizing the model to restore the dark channel, it effectively learns to deblur and de-fringe images without needing a reference.

Experimental Results

The framework was evaluated against standard benchmarks and real-world hardware, including custom-fabricated lenses and a commercial CAYE 50mm F1.4 III lens.

Generalization and Adaptation

Models pre-trained on the evolved AODLib demonstrated superior zero-shot performance, outperforming existing libraries like ZEBASELib by nearly 2dB in PSNR. When the unsupervised domain adaptation was applied, performance gains reached up to 2.59dB PSNR in cases of severe aberration.

Real-world capture demonstrating typical lens aberrations like blur and color fringing that OmniLens is designed to correct.

Real-World Performance

On the undocumented CAYE 50mm lens, OmniLens successfully suppressed "purple fringing" and restored sharpness across various aperture settings. The results significantly outperformed traditional blind deconvolution methods, proving the framework's utility for off-the-shelf consumer optics.

Conclusion and Future Work

OmniLens represents a shift from rigid, lens-specific correction models to a flexible, adaptive workflow. While highly effective for spherical lens structures, future work aims to incorporate aspheric and diffractive elements into the EAOD pipeline. Additionally, addressing the limitations of the Dark Channel Prior in extremely bright or specular scenes remains a priority for improving the robustness of the unsupervised adaptation phase.

Summary updated

BibTeX
@misc{jiang2024flexible,
  author = {Qi Jiang and Yao Gao and Shaohua Gao and Zhonghua Yi and Lei Sun and Hao Shi and Kailun Yang and Kaiwei Wang and Jian Bai},
  title = {{A Flexible Framework for Universal Computational Aberration Correction via Automatic Lens Library Generation and Domain Adaptation}},
  year = {2024},
  eprint = {2409.05809},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.05809},
}
Figure