TL;DR
Cameras that see light polarization can reveal hidden physical properties like surface geometry and material stress, yet processing their raw sensor data in real time usually forces an ugly compromise between fast, blurry math and slow, power-hungry neural networks. DoFP-LUT bridges this gap by distilling a deep neural network's polarization knowledge into tiny, ultra-fast Lookup Tables (LUTs) tailored to the physics of polarized light. The result is crisp, real-time polarization imaging that runs effortlessly on a tiny edge processor using just 149 KB of memory.
What Problem Does This Paper Address?
Human eyes—and standard cameras—only care about light's intensity and color (wavelength). Polarization cameras go a step further by capturing the orientation of light waves, unlocking superpowers for autonomous driving, medical imaging, and Defect detection.
To capture both color and polarization in a single snapshot, off-the-shelf color Division-of-Focal-Plane (DoFP) cameras place a microscopic grid over the sensor: each pixel gets one color filter (Red, Green, or Blue) paired with one micro-polarizer oriented at $0^\circ$, $45^\circ$, $90^\circ$, or $135^\circ$. Because every pixel only sees a fraction of the full picture, the raw output is a complex mosaic. Reconstructing the full color and polarization channels—such as the Degree of Linear Polarization (DoLP) and Angle of Polarization (AoP)—is called demosaicking.
Here lies the dilemma:
- Simple interpolation (like bilinear filtering) is fast and deterministic, but fails miserably at sharp edges, producing noisy polarization artifacts.
- Deep Neural Networks (DNNs) reconstruct gorgeous polarization maps, but demand far too much memory, latency, and battery power for embedded, near-sensor edge devices.
- Generic Lookup Tables (LUTs)—which replace runtime math with pre-computed "cheat sheets"—work great for standard RGB image enhancement. However, directly adapting RGB LUTs to polarization fails because polarization channels aren't independent colors; they are tightly bound by physical wave relationships (Stokes parameters), where subtracting pairs of angles determines the polarization state.
Methods
Instead of running a heavy neural network on the camera, the authors propose DoFP-LUT, the first LUT framework structured explicitly around the physics of polarization sensing.
First, a standard, lightweight bilinear interpolation makes a rough initial guess of the four polarizer angles ($0^\circ, 45^\circ, 90^\circ, 135^\circ$), known as analyzer images. Offline, a heavy CNN "teacher" (PDCNN) computes what the ideal corrections should be. Rather than cramming all corrections into one massive, multi-dimensional table (which would explode in memory size), DoFP-LUT breaks the teacher's corrections down into three sequential, physics-aligned stages:
- Shared Analyzer Correction (2D LUT): Fixes common spatial interpolation artifacts shared across all four angle channels by comparing a pixel's aggregated value to its local neighborhood average.
- Polarization Redistribution (Two 3D LUTs): Physically, polarization state is defined by Stokes parameters: total intensity ($S_0$) is half the sum of all four angles, while $S_1$ and $S_2$ are the differences between orthogonal angle pairs ($0^\circ - 90^\circ$ and $45^\circ - 135^\circ$). This stage uses two 3D LUTs to rebalance errors symmetrically inside those specific angle pairs.
- High-Frequency Compensation (Two 2D LUTs): Acts as a final polish on the provisional $S_1$ and $S_2$ maps, comparing pixel values against local low-frequency averages to restore crisp edge details.
At runtime on the edge device, the neural network is completely gone. Online inference consists purely of integer quantization, nearest-neighbor table lookups (no runtime interpolation math!), and basic addition/subtraction.
Datasets
To ensure broad generalization across diverse textures, lighting, and materials without data leakage, the authors combined four existing public color-polarization datasets with one newly self-collected dataset. Scenes were strictly separated at the scene level, reserving 14 representative scenes from each source to form a balanced 70-scene held-out test set. All raw inputs use a common $4 \times 4$ color-polarization mosaic pattern.
Key Insights and Ideas
- LUTs shouldn't ignore sensor physics: Simply slapping polarization channels onto existing state-of-the-art RGB restoration LUTs (like DnLUT or ShiftLUT) yields poor angle reconstructions. Lookup indices must reflect the underlying physical equations (like Stokes pairwise differences) that govern the errors.
- Factorization beats brute force: If you tried to build a single monolithic LUT indexing all seven relevant spatial and polarization states together, it would require 1.91 GB of storage and suffer from empty, unpopulated bins. Factorizing the problem into five tiny 2D and 3D tables slashes storage to 149 KB—a ~12,000$\times$ reduction—while improving accuracy because every bin gets densely populated during training.
- Zero runtime surprises: Unlike neural networks with complex memory access patterns or dynamic operations, DoFP-LUT executes the exact same sequence of array lookups at every pixel, guaranteeing deterministic latency for real-time video streams.
Key Results
Tested on an embedded RK3588S edge processor (four Arm Cortex-A76 cores) at $512 \times 512$ resolution, DoFP-LUT hits a remarkable sweet spot:
- Speed & Efficiency: DoFP-LUT runs in 29 ms (~34 FPS), consumes 54.58M pJ of energy, and takes 149 KB of storage. Compared to its CNN teacher (PDCNN), it is 60$\times$ faster, uses ~10$\times$ less storage, and consumes ~52$\times$ less energy. Compared to the top-performing Transformer model (PIDSR), it is 175$\times$ faster.
- Reconstruction Quality: It outperforms all interpolation baselines and adapted generic LUTs across the board, achieving 38.24 dB PSNR on analyzer images and reducing Angle of Polarization Mean Absolute Error (AoP MAE) to 9.207° (beating EARI interpolation at 10.642° and generic DnLUT at 10.522°, while approaching the 1760-ms PDCNN teacher at 7.690°).
- Zero Fallbacks: Across all 70 test scenes, 100% of the factorized LUT bins were populated, meaning the system never hit an empty-bin fallback.
Limitations and Future Work
- Sensor-Specific Compilation: Because the LUTs bake in sensor-specific residual patterns, the compiled tables are tied to a specific $4 \times 4$ filter layout and sensor response. Switching to a camera with a different filter mosaic or major domain shift requires recompiling the tables offline.
- Bounded by the Teacher & Quantization: As a distilled approximation, DoFP-LUT's ceiling is inherently capped by the accuracy of its offline teacher network and minor state collisions from quantizing continuous values into discrete bins.
- Hardware Scope: Benchmarks were profiled on an embedded ARM CPU; implementing the pipeline directly onto dedicated camera Image Signal Processors (ISPs) or FPGAs—where LUTs naturally shine—remains an exciting next step, alongside exploring cross-sensor generalization.
Summary updated