TL;DR
Our eyes are completely blind to the polarization of light, yet modern single-shot sensors can capture both color and polarization at once—unlocking superpowers like seeing through glass reflections or visualizing invisible mechanical stress in clear plastic. Unfortunately, reconstructing clean images from these sensors requires training data that, until now, has been plagued by optical misalignments and overexposed highlights. This paper introduces HDR-Polar1K, a pristine, artifact-free dataset of 1,008 high-dynamic-range scenes, alongside Raw2Stokes, a neural network mathematically guaranteed to output physically valid light measurements.
What Problem Does This Paper Address?
Standard digital cameras use a grid of red, green, and blue filters (a Bayer pattern) and "demosaic" the missing colors at each pixel. Color-polarization filter array (CPFA) cameras take this a step further: every pixel is covered by both a color filter and a microscopic linear polarizer angled at $0^\circ, 45^\circ, 90^\circ,$ or $135^\circ$.
To get a usable image, algorithms must take this noisy, 1-channel RAW mosaic and reconstruct nine values per pixel: three Stokes parameters (which describe total light intensity and linear polarization) for each of the three RGB channels.
Deep learning handles this joint demosaicing and denoising (JDD) well, if you have clean ground-truth training data. Historically, researchers built datasets using a standard RGB camera and physically rotating a polarizer in front of the lens across multiple shots. This introduces three major headaches:
- Spatial misalignment: Rotating a physical glass filter slightly shifts the light path, creating fake polarization fringes at object edges.
- Saturation: Clipped highlights ruin polarization math.
- Lack of diversity: Existing datasets mostly show everyday street or indoor scenes, ignoring laboratory setups like photoelastic stress analysis or polarized LCD lighting.
Methods
The authors tackle this from three angles: clean data acquisition, realistic sensor simulation, and physics-aware network design.
- CPFA-Aware Downsampling: Instead of a rotating filter, the authors lock down a CPFA camera (Sony IMX250MYR) and take 32 repeated shots across 6 exposure brackets (spaced 2 EV apart) to crush noise and eliminate clipped highlights. To turn this $2448 \times 2048$ mosaic into ground truth without demosaicing artifacts, they downsample it to $153 \times 128$. Crucially, simple box-averaging creates false polarization at sharp edges because different color-polarizer pixels sit at slightly different locations. The authors select a specific cubic filter that matches first- and second-order spatial moments across channels, cleanly suppressing edge artifacts.
- Calibrated Sensor Simulation: Because the ground-truth images are HDR, the authors can scale their brightness up or down and pass them through a calibrated physics model of the Sony sensor—injecting realistic Poisson–Gaussian noise, dark signals, hot pixels, and quantization across varying gain, exposure, and temperature settings.
- Raw2Stokes Network: Built on a standard RCAN backbone, this network introduces two clever twists. First, its output head uses a
softplusand vector-normalization parameterization that mathematically guarantees physically valid Stokes vectors (total intensity is never negative, and polarized intensity never exceeds total intensity). Second, it uses Feature-wise Linear Modulation (FiLM) with random dropout during training to optionally condition the network on camera metadata (gain, exposure, temperature), allowing a single model to operate either "blind" or metadata-guided.
Datasets
- HDR-Polar1K (New): Contains 1,008 HDR color Stokes scenes (782 everyday indoor/outdoor scenes and 226 controlled optical setups featuring structured light, polarized illumination, and photoelastic stress). Resolution is $153 \times 128$, with 0.00% saturated pixels and 0.00000% nonphysical Stokes vectors.
- Evaluated Baselines: The authors benchmark against eight existing rotating-polarizer datasets: Wen et al. (2019 & 2021), Morimatsu et al. (2020), Qiu et al. (2021), Zhou et al. (2025), Rahman et al. (2025), Luo et al. (2026), and Wu et al. (2026)—which suffer from 0.21% to 5.34% pixel saturation and various alignment issues.
Key Insights and Ideas
- Accuracy beats resolution for patch-based training: Downsampling by $16\times$ sounds drastic, but JDD networks train on small $64 \times 64$ patches anyway. Trading away pixel count to get rock-solid, artifact-free physical values at every pixel yields vastly superior supervision.
- Bad training data can make neural nets worse than basic math: On controlled optical scenes (like polarized LCD lighting), networks trained on existing everyday-only datasets actually performed worse in some regions than simple, non-learned bilinear interpolation. Diverse optical phenomena must be in the training mix.
- Enforcing physics helps accuracy, not just validity: Constraining the network's output layer to obey Stokes physics doesn't just prevent impossible numbers—it actively lowers reconstruction error compared to unconstrained prediction.
Key Results
- Universal boost across architectures: Training on HDR-Polar1K instead of the eight prior datasets improved reconstruction accuracy across all three tested architectures (TCPDNet, PIDSR, and Raw2Stokes) on 100 test scenes—consistently lowering Stokes MSE, Angle of Linear Polarization (AoLP) error, and Degree of Linear Polarization (DoLP) error.
- Zero physical violations: While TCPDNet and PIDSR produced nonphysical Stokes vectors in roughly 0.5% to over 3% of pixels depending on the training set, Raw2Stokes achieved an exact 0.0% nonphysical rate across all datasets.
- Real-world generalization: Despite training on $64 \times 64$ crops from $153 \times 128$ simulated images, a single Raw2Stokes model generalized directly to full-resolution ($2448 \times 2048$) real-world RAW captures—cleanly reconstructing everything from bright daytime scenes (0 dB gain) to noisy nighttime bike racks (31 dB gain) and intricate photoelastic stress fringes.
Limitations and Future Work
The authors candidly highlight the core trade-off of their pipeline: fidelity vs. spatial resolution. While aggressive $16\times$ downsampling cleans up channel-offset errors, residual artifacts can still sneak in if a scene has ultra-high spatial frequencies. Downsampling even further would fix this, but shrinking images below $153 \times 128$ leaves very few crop locations and starves the network of broader spatial context. Capturing a massive, diverse dataset of color Stokes images that are both artifact-free and high-resolution—perhaps using future higher-megapixel CPFA sensors—remains an open challenge for the field.
Summary updated