Abstract
Refraction is a common physical phenomenon and has long been researched in computer vision. Objects imaged through a refractive object appear distorted in the image as a function of the shape of the interface between the media. This hinders many computer vision applications, but can be utilized for obtaining the geometry of the refractive interface. Previous approaches for refractive surface recovery largely relied on various priors or additional information like multiple images of the analyzed surface. In contrast, we claim that a simple energy function based on Snell's law enables the reconstruction of an arbitrary refractive surface geometry using just a single image and known background texture and geometry. In the case of a single point, Snell's law has two degrees of freedom, therefore to estimate a surface depth, we need additional information. We show that solving for an entire surface at once introduces implicit parameter-free spatial regularization and yields convincing results when an intelligent initial guess is provided. We demonstrate our approach through simulations and real-world experiments, where the reconstruction shows encouraging results in the single-frame monocular setting.
Introduction
When viewing an object through a refractive medium, such as water, the resulting image appears distorted. This distortion occurs because light rays bend as they transition between media of different refractive indices. While typically considered a nuisance in computer vision, these distortions encode critical information about the geometry of the refractive interface.
Reconstructing a surface from a single image is a fundamentally ill-posed problem. For any given point on the surface, there are two primary unknowns: its depth (distance from the camera) and its surface normal (the angle of the interface). Mathematically, an infinite number of depth-angle combinations can explain the same observed distortion. Traditional solutions have circumvented this by using multi-camera arrays, video sequences, or structured light. This research explores whether a standard monocular camera can achieve similar results using only a single frame.
Methodology
The proposed approach for monocular shape from refraction is built upon three core technical pillars:
1. Snell’s Law as an Energy Function
The method defines an energy function based on the physics of refraction. By tracing a light ray from the camera through a hypothesized surface point and applying Snell’s Law, the system predicts where that ray should strike the known background. The error is defined as the distance between this predicted hit point and the actual location of the background feature observed in the image.
2. Implicit Regularization
A key innovation is the use of "parameter-free spatial regularization." Instead of solving for surface points in isolation, the entire surface is optimized simultaneously. Because the surface normal at any point is geometrically linked to the depth of its neighbors, the physics of refraction naturally enforces surface smoothness. This eliminates the need for manually tuned smoothing parameters common in other reconstruction techniques.
3. Smart Initialization
Due to the non-convex nature of the optimization problem, the system requires a robust starting point to avoid local minima. The researchers initialize the process by finding the best-fitting flat plane. This virtual plane is adjusted in depth until the average distortion matches the observed image, providing a stable baseline for detailed wave reconstruction using the L-BFGS optimization algorithm.
Experimental Results
The method was evaluated using both synthetic benchmarks (rendered in Blender) and real-world experiments involving a water tank with a high-texture background.
Key Findings
- Accuracy: In synthetic tests, the method achieved a Mean Angular Error (MAE) for surface normals between 5° and 6°. While multi-camera setups remain more precise (often <1°), this monocular approach provides a high-fidelity alternative with significantly reduced hardware requirements.
- Perspective Projection: Unlike many previous methods that assumed parallel light rays (orthographic projection), this model uses perspective projection. This realistic camera model helps resolve "height ambiguity," distinguishing between a close, flat surface and a distant, wavy one.
- Comparison to Deep Learning: The physics-based approach outperformed recent deep-learning models (like FSRN-RNN) in single-frame scenarios, demonstrating that explicit physical constraints can be more effective than learned priors when training data is limited.
Conclusion and Future Work
This research demonstrates that monocular refractive surface reconstruction is viable by leveraging global optimization and the inherent constraints of Snell's Law. However, the method remains dependent on a good initial depth guess and requires a sufficiently textured background to detect distortions. Future work may involve hybrid models that combine the robustness of deep learning for initialization with the precision of physics-based energy functions for final surface refinement.
Summary updated