Seeing through water

Alexei A. Efros, Volkan Isler, Jianbo Shi, Mirkó VisontaiNeurIPS 2004

The Challenge of Underwater Distortion

Imagine trying to read a book placed at the bottom of a swimming pool on a windy day. The ripples on the water's surface act like a chaotic, moving array of lenses, constantly refracting light and distorting the image of the pool floor. If you record a video, every single frame is warped, making it impossible to see the true image clearly.

Fifteen consecutive frames showing severe distortion caused by surface waves.

The goal of this research is to recover the "ground truth" image—the floor as it would appear if the water were perfectly still. Traditional approaches to this problem usually fall into two camps:

  1. Explicit Modeling: This involves trying to mathematically model the water surface and "undo" the refraction. However, this is incredibly difficult in uncontrolled, real-world environments where the waves are unpredictable.
  2. Temporal Averaging: A simpler method is to just take the mean or median of all the video frames over time. While easy to compute, this "brute force" method fails to recover fine details because the distortions are often biased or too large relative to the image features, resulting in a blurry mess.

Because the distortions are fast, noisy, and discontinuous, standard feature tracking is impossible. Instead, the authors propose a statistical approach based on Manifold Learning.

The Manifold Hypothesis

Instead of trying to track where a specific point moved (spatial tracking), the authors ask when the water is locally flat enough to provide a clear view of the ground.

Diagram illustrating how surface waves refract light according to Snell's Law.

Physically, for any specific location on the camera's image plane, the camera is essentially sampling points from a small "disk" on the ground plane, dictated by Snell's Law. If the water directly above is flat, you see the "center" of the disk (the true image). If the water is tilted, the light bends, and you see a distorted neighbor.

Because of this physical constraint, the set of all observed image patches for a given location lies on a low-dimensional manifold. The objective, therefore, is to find the center of that manifold, which corresponds to the undistorted ground truth.

Solving the "Leakage" Problem

To find the center of the manifold, the algorithm must measure the distances (similarities) between different image patches. Standard manifold learning methods, like Isomap, use "shortest paths" on a graph of local similarities to estimate these distances.

However, Isomap suffers from a critical vulnerability known as leakage. If just one pair of unrelated, blurry patches is mistakenly flagged as "similar" by the local distance metric, the shortest path algorithm will "leak" through that erroneous edge. This short-circuits the graph, distorts the global geometry, and ruins the entire reconstruction.

The authors' key innovation is replacing shortest paths with a Convex Flow technique:

  • They treat the distance calculation as a network flow problem.
  • Instead of assigning a fixed cost to each edge in the graph, they use a convex cost function. As more "flow" (or shortest paths) passes through a specific edge, the cost of using that edge increases.
  • This naturally penalizes "leaky" edges. An erroneous shortcut that tries to carry too much traffic becomes prohibitively expensive, forcing the algorithm to find more robust, redundant paths across the manifold.

Key Results and Insights

By shifting from "shortest path" to "min-cost flow," the authors created a system that is highly robust to the inevitable noise of underwater imaging. By treating edges like roads that can get "congested," they prevent a single bad data point from dominating the global geometry.

When tested on real-world video of a submerged textbook cover, the convex flow method successfully reconstructed sharp text ("VISION") that was completely blurred out by standard mean and median filtering. Furthermore, in synthetic tests, the convex flow method maintained the correct structure of the data manifold even after erroneous edges were intentionally added, whereas Isomap’s embedding completely collapsed.

Limitations and Future Work

While highly effective, the method has a few limitations. The convex cost function relies on several hyperparameters that define the "steepness" of the cost increase, and the paper does not provide a fully automated way to select these. Additionally, solving a min-cost flow problem for every single patch location in a high-resolution video is computationally expensive. Future work may focus on optimizing this process and developing a more integrated approach to ensure global image coherence across all reconstructed patches.

Summary updated

BibTeX
@inproceedings{efros2004seeing,
  author = {Alexei A. Efros and Volkan Isler and Jianbo Shi and Mirkó Visontai},
  title = {{Seeing through water}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2004},
  url = {https://openreview.net/forum?id=rkZrFDZdbS},
}
Figure