Grayscale to Hyperspectral at Any Resolution Using a Phase-Only Lens

Dean Hazineh, Federico Capasso, Todd E. Zickler · OpenReview

TL;DR

This paper introduces a novel method for reconstructing detailed hyperspectral images from a single, low-resolution grayscale snapshot. By leveraging a diffractive optic and a guided diffusion model, they achieve high-quality results even with minimal training data and a severely ill-posed imaging setup, paving the way for compact and efficient hyperspectral cameras.

What Problem Does This Paper Address?

Capturing hyperspectral images (which provide detailed spectral information across many wavelengths) is crucial for various applications, from scientific analysis to remote sensing. However, traditional hyperspectral cameras are often bulky, complex, and expensive. This paper tackles the challenge of reconstructing a rich hyperspectral image from a much simpler, filterless snapshot system. This system uses only a single diffractive lens and a standard grayscale sensor, making it significantly more compact and light-efficient. The core problem is that this simplified setup is severely "ill-posed," meaning a single grayscale measurement contains ambiguous information about the original hyperspectral scene, making direct reconstruction extremely difficult.

Methods

The authors propose a "Filterless Snapshot Hyperspectral Imaging using Guided Patch Diffusion" approach. The key components are:

  • Diffractive Lens: A custom-designed diffractive lens (metalens) is used to encode spectral information into spatial blur. Crucially, this lens induces chromatic aberration, meaning different wavelengths are blurred differently, which is the primary source of spectral information in the measurement.
  • Patch-Based Diffusion Model: They train a conditional denoising diffusion model. Instead of processing the entire image at once, the model learns to denoise and reconstruct small patches of the hyperspectral image. This is efficient for limited training data.
  • Guided Sampling (Inference-Time Guidance): This is the most novel aspect. During reconstruction, the model synchronizes predictions from individual patches. It does this by enforcing physical consistency with the system's optical point spread function (PSF). Essentially, it uses the known optical behavior of the lens to guide the stitching and refinement of the reconstructed patches into a coherent full hyperspectral image. This cross-patch guidance is critical for resolving ambiguities introduced by the ill-posed nature of the problem.
  • Uncertainty Estimation: By drawing multiple samples from the diffusion model, they can also estimate the uncertainty in the reconstructed spectral predictions for each pixel.

Datasets

  • ARAD1K Dataset: Used for training and evaluating the simulation results.
  • ICVL, Harvard, CAVE datasets: Used for cross-dataset generalization experiments.
  • KAIST Dataset: Used for evaluating the model on the CASSI benchmark.

Key Insights and Ideas

  • Local Cues Suffice: Surprisingly, the authors found that even very small patches, comparable in size to the optical point spread function (PSF), can contain enough local optical cues to reconstruct full spectral information. This challenges the intuition that larger receptive fields are always necessary for complex spectral reconstruction.
  • Guidance is Key: The "guided sampling" during inference is crucial. It effectively synchronizes patch-level reconstructions and enforces physical consistency, overcoming the inherent ambiguities of the filterless, single-optic system. Without guidance, performance drops significantly.
  • Uncertainty as a Reliability Metric: The per-pixel uncertainty estimates strongly correlate with reconstruction error, providing a valuable tool for identifying regions where the reconstruction is less reliable.
  • Compactness vs. Complexity Trade-off: The work demonstrates a new paradigm for hyperspectral imaging, trading off complex optics for sophisticated computational reconstruction, enabling significantly more compact and lightweight systems.

Key Results

  • High-Quality Reconstructions: The proposed method achieves state-of-the-art results on the ARAD1K dataset, outperforming existing methods by a significant margin in PSNR, SSIM, and SAM metrics. For example, they achieved an average PSNR of 34.63 dB, surpassing the next best method by 2.86 dB.
  • Robustness to Noise: The model demonstrates robustness to noisy measurements, with reliable performance even at low SNRs when trained with augmented noisy data.
  • Cross-Dataset Generalization: The trained model generalizes well to other datasets (ICVL, Harvard, CAVE) without further finetuning, indicating the learned priors are broadly applicable.
  • Scalability: The patch-based approach allows the model to reconstruct images of arbitrary sizes without retraining, a significant advantage over methods that process full images.
  • CASSI Generalization: The framework successfully adapts to a more complex snapshot HSI system (CASSI), demonstrating its versatility.

Limitations and Future Work

  • Texture Requirement: The method relies on spatial variations within patches. Homogeneous regions with little texture can lead to degraded reconstruction accuracy, as there are fewer optical cues to exploit.
  • Global Context: While guidance enforces cross-patch consistency, it doesn't fully capture global scene context, which can lead to uneven reconstruction quality within a scene. The authors suggest an encoder that conditions each patch on a full-resolution image embedding could address this.
  • Computational Cost: While inference is parallelizable across patches, the guidance step can be computationally intensive, leading to longer reconstruction times for higher-resolution images. They suggest strategies like scheduled guidance iterations to mitigate this.
  • Future Work: The authors envision a new class of compact, light-efficient hyperspectral imagers based on this technology. Further work could explore improving global context modeling and reducing inference time.

Summary updated

Abstract

We consider the problem of reconstructing a HxWx31 hyperspectral image from a HxW grayscale snapshot measurement that is captured using only a single diffractive optic and a filterless panchromatic photosensor. This problem is severely ill-posed, but we present the first model that produces high-quality results. We make efficient use of limited data by training a conditional denoising diffusion model that operates on small patches in a shift-invariant manner. During inference, we synchronize per-patch hyperspectral predictions using guidance derived from the optical point spread function. Surprisingly, our experiments reveal that patch sizes as small as the PSFs support achieve excellent results, and they show that local optical cues are sufficient to capture full spectral information. Moreover, by drawing multiple samples, our model provides per-pixel uncertainty estimates that strongly correlate with reconstruction error. Our work lays the foundation for a new class of high-resolution snapshot hyperspectral imagers that are compact and light-efficient.
BibTeX
@misc{hazineh2024grayscale,
  author = {Dean Hazineh and Federico Capasso and Todd E. Zickler},
  title = {{Grayscale to Hyperspectral at Any Resolution Using a Phase-Only Lens}},
  year = {2024},
  eprint = {2412.02798},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.02798},
}
Figure