DualSpec: Spectral Reconstruction with Optimized Stereo Cameras

Luca Cogo, Marco Buzzelli, Simone Bianco, Raimondo SchettiniarXiv 2026

TL;DR

Standard RGB cameras squash the rich spectrum of light down into just three channels, creating an unsolvable math puzzle if you try to reconstruct the full hyperspectral image afterward. Instead of buying a bulky, expensive hyperspectral scanner, DualSpec uses two ordinary RGB cameras outfitted with custom optical filters whose transmittance curves are co-designed alongside a neural network. By turning a three-channel guessing game into a six-channel complementary measurement, it dramatically outperforms single cameras and off-the-shelf filter pairs—proving that better data acquisition beats throwing bigger networks at ambiguous pixels.

What Problem Does This Paper Address?

Every object reflects a detailed, continuous fingerprint of wavelengths, yet our standard cameras compress all that light into three broad buckets: Red, Green, and Blue. Recovering a dense spectrum (say, 31 or 61 narrow wavelength bands) from just three numbers is fundamentally ill-posed.

The core villain here is metamerism: two completely different physical spectra—like a real bell pepper and a plastic counterfeit—can integrate to the exact same RGB values. No matter how massive or clever your neural network is, if two objects produce identical RGB pixels, the network can only guess based on statistical priors learned during training.

Figure 1. Cross-dataset reconstruction with MST++ [8] on a scene from the CAVE dataset [52]. The artificial (A) and real (B) peppers look similar in RGB but have distinct spectra. The complemen- tary measurements acquired by DualSpec yield reconstructions that better distinguish the spectral signatures of the two samples than those obtained with a single RGB camera. Solid and dashed curves represent ground-truth and reconstructed spectra, respec- tively. The reported spectral angle (SAM) measures the separation between the two reconstructed spectra.

Dedicated hyperspectral cameras solve this directly, but they often require slow mechanical scanning, active indoor lighting, or spatial-resolution trade-offs, making them costly and impractical. Previous attempts to hack standard multi-camera setups placed off-the-shelf commercial filters in front of RGB lenses. However, searching through fixed catalogs limits your optical options and relies on rough proxy metrics because training a deep network for tens of thousands of filter pairs is computationally impractical.

Methods

DualSpec sidesteps fixed filter catalogs via end-to-end joint optical–computational optimization. The setup pairs two identical, unmodified RGB sensors (such as Sony IMX477 or IMX224 models), placing a passive optical filter attachment in front of each to capture six total channels per pixel.

What’s new is how those filters are created:

  • Differentiable Image-Formation Model: Scene spectra pass through simulated filter transmittances and camera sensitivities to form noisy 6-channel images, which feed into a standard reconstruction backbone (the authors test a pixel-wise MLP, convolutional EDSR, and attention-based MST++). Reconstruction error gradients flow backward through the network and into the physical filter designs.
  • Realistic Noise & Exposure: Filters block light. DualSpec simulates a capped auto-exposure (up to $8\times$ longer exposure to match an unfiltered reference), Poisson shot noise, Gaussian dark noise, and 16-bit quantization. If a learned filter gets too dark, noise spikes, naturally forcing the optimizer to balance spectral selectivity against signal-to-noise ratio.
  • Smooth Parameterization: To ensure the filters aren't jagged mathematical fantasies, transmittances are parameterized as a sum of smooth Gaussian basis functions passed through a logistic sigmoid, keeping values strictly between 0 and 1.
  • Two-Stage Training & Physical Realization: Stage 1 jointly trains the filters and network using a differentiable Gaussian approximation of shot noise. Stage 2 freezes the filters and retrains the network from scratch under exact Poisson noise and quantization. Finally, the authors fit the learned curves to realistic 30-layer alternating thin-film interference stacks ($\text{Ti}_3\text{O}_5$ and $\text{SiO}_2$ on glass) and briefly fine-tune the network.

Datasets

  • Arad-1K: Used for visible-range (400–700 nm, 31 bands) training and evaluation across 950 natural scenes.
  • BGU-ICVL: Used to test visible-to-near-infrared (VNIR, 400–1000 nm, 61 bands) across 201 scenes.
  • CAVE: 32 indoor scenes used for zero-shot cross-dataset generalization.
  • New Displaced-View Benchmark: Because real stereo cameras sit slightly apart, the authors used a Specim IQ hyperspectral camera on a sliding bracket (2 cm baseline) to capture 10 new stereo pairs (5 indoor, 5 outdoor). Unlike synthetic single-view benchmarks, this tests real-world viewpoint misalignment and stereo registration (via SIFT + RANSAC homographies) without fine-tuning.

Key Insights and Ideas

  • Physics beats context: A simple pixel-wise MLP—which looks at one pixel at a time with zero spatial context—paired with DualSpec achieves a lower spectral error ($4.73^\circ$ on Arad-1K; $2.35^\circ$ on VNIR) than sophisticated spatial-attention networks (EDSR and MST++) running on a single RGB image ($5.28^\circ$ and $5.35^\circ$). The ambiguity is genuinely resolved optically rather than hallucinated via context.
  • Priors can backfire out-of-distribution: Adding a single learned filter to one RGB camera improved performance on the training dataset (Arad-1K), but actually hurt spatial networks when transferred zero-shot to the displaced-view and CAVE datasets. Three channels still leave ambiguities that force networks to over-rely on dataset-specific priors; DualSpec's six complementary channels break that reliance.
  • Optics should match the compute: Under commercial filter-selection baselines, different filter catalogs won depending on whether an MLP or a spatial transformer was used downstream—underscoring why co-designing optics for the specific neural architecture matters.

Key Results

Evaluated primarily via Spectral Angle Mapper (SAM, in degrees—lower is better):

  • Consistent Error Reduction: Across backbones and spectral ranges, DualSpec cuts mean SAM by 36–72% compared to a single RGB camera, and by 11–29% compared to the best stereo pairs chosen from 22,155 Lee and 9,316 Omega Optical commercial filter combinations.
  • Visible & VNIR Accuracy: With MST++, DualSpec reaches $1.93^\circ$ mean SAM on Arad-1K (vs. $5.35^\circ$ single RGB and $2.28^\circ$ best commercial pair) and $1.74^\circ$ over 400–1000 nm on BGU-ICVL. Notably, DualSpec's 95th-percentile worst-case errors beat the average errors of single-camera setups.
  • Robustness & Manufacturability: On misaligned stereo views (registered via homography) and CAVE cross-dataset tests, DualSpec lowers mean SAM by 12–22% and 18–29% respectively over commercial stereo baselines. Approximating the filters with 30-layer thin-film stacks (4.3–5.4 $\mu\text{m}$ thick) plus 60 epochs of network fine-tuning comes within $0.01^\circ$ (EDSR/MST++) of the idealized curves.

Limitations and Future Work

DualSpec assumes two identical RGB camera sensors to isolate the optical contribution of the learned filters and simplify stereo capture. Mixing different camera sensors (like the wide and ultrawide cameras on a smartphone) could inject even more natural spectral diversity, though future work would need to handle mismatched quantum efficiencies, fields of view, exposure behavior, and synchronization.

Summary updated

Abstract

Spectral imaging captures information that ordinary RGB sensors cannot, but dedicated spectral cameras can be expensive and bulky. Recovering dense spectra from RGB images offers an accessible alternative, but distinct spectra can produce the same camera response, generating an ambiguity that even more advanced recovery algorithms cannot always resolve. Therefore, increasing the spectral information captured at acquisition is essential. We propose DualSpec, a stereo acquisition framework that jointly optimizes two external optical filters and a reconstruction network. Each filter is placed in front of a standard RGB camera, and the two are designed to produce six responses that provide complementary information for the network. Experiments across reconstruction architectures and spectral ranges show that DualSpec reduces mean spectral angle error by 36-72% relative to a single RGB camera and by 11-29% relative to stereo pairs selected from commercial filters. Cross-dataset evaluations, including a new benchmark of spectral images captured from displaced viewpoints, show that the method generalizes and remains robust to viewpoint misalignment, while analyses of thin-film approximations support optical feasibility.
BibTeX
@misc{cogo2026dualspec,
  author = {Luca Cogo and Marco Buzzelli and Simone Bianco and Raimondo Schettini},
  title = {{DualSpec: Spectral Reconstruction with Optimized Stereo Cameras}},
  year = {2026},
  eprint = {2611.32896},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.32896},
}
Figure