Stereo Measurement of Objects in Liquid and Estimation of Refractive Index of Liquid by Using Images of Water Surface

Atsushi Yamashita, Akira Fujii, Toru KanekoInTech 2011 · OpenAlex

Abstract

Underwater computer vision is significantly hampered by light refraction at the liquid-air interface, which distorts the perceived geometry of submerged objects. Traditional 3D measurement techniques often require the liquid's refractive index to be known a priori. This paper introduces a method to estimate the refractive index dynamically by analyzing the visual discontinuity of an object as it crosses the water surface. Using this estimated index, a ray-tracing-based stereo measurement system achieves high-precision 3D reconstruction and image restoration.

Introduction

Underwater imaging faces several environmental challenges, including light attenuation and noise from suspended particles. However, the most significant geometric hurdle is refraction. When light travels from a liquid through a glass viewport into the air-filled camera housing, it bends according to Snell's Law. This bending causes objects to appear shifted or "broken" at the surface, as demonstrated by the duck model used in the authors' experiments.

The duck model used in experiments, showing the visual discontinuity at the water surface due to refraction.

In many practical applications, such as autonomous underwater vehicles (AUVs) encountering unknown liquids or varying environmental conditions, the refractive index is not known. This paper proposes a solution that treats the water surface as a calibration reference rather than an obstacle.

Methodology

Refractive Index Estimation

The core innovation lies in using the "break" of an object's edge at the surface to solve for the unknown refractive index ($n_3$). By comparing the undistorted position of the object in the air with its distorted counterpart just below the surface, the system applies Snell’s Law to derive $n_3$ mathematically. This approach eliminates the need for pre-calculated calibration tables, which are inflexible in changing environments.

3D Measurement via Ray Tracing

Standard stereo triangulation assumes light travels in straight lines. To account for refraction, the authors employ a ray-tracing model that tracks light paths through three media: liquid, glass, and air.

Ray tracing diagram illustrating the light path from the object through liquid, glass, and air interfaces.

As shown in the geometric model, the system calculates the path of light rays from the object to the camera lens. Because noise prevents rays from a stereo pair from intersecting perfectly, the 3D position is determined by finding the midpoint of the shortest line segment connecting the two rays.

Image Restoration

The estimated refractive index and 3D data are used to "un-distort" the submerged portion of the image. This rectification process re-projects pixels to their true geometric locations. Additionally, an inpainting algorithm is used to fill the "black strip"—a blind spot created by the geometry of refraction at the surface.

Experimental Results

The method was validated using a stereo camera setup and a water tank containing a duck model and a geometric cube.

  • Refractive Index Estimation: The system estimated the refractive index of water as 1.333, achieving less than 1% error compared to the ground truth of 1.33.
  • 3D Reconstruction Accuracy: In measurements of a submerged object at 250mm, the proposed method reduced the average error from 36.1mm (without refraction correction) to just 2.0mm.
  • Geometric Fidelity: The vertex of a submerged cube, which appeared as 111.1° due to distortion, was measured at 90.9° using the proposed method, nearly matching the actual 90.0° angle.

Conclusion and Future Work

This research demonstrates that the water surface can serve as a powerful tool for self-calibration in underwater stereo vision. By dynamically estimating the refractive index, the system provides robust 3D measurements in unknown liquid environments. Future work will focus on adapting the method for dynamic, wavy surfaces and exploring optimization techniques for deep-water scenarios where the surface is not visible.

Summary updated

Abstract

Stereo Measurement of Objects in Liquid and Estimation of Refractive Index of Liquid by Using Images of Water Surface
BibTeX
@inproceedings{yamashita2011stereo,
  author = {Atsushi Yamashita and Akira Fujii and Toru Kaneko},
  title = {{Stereo Measurement of Objects in Liquid and Estimation of Refractive Index of Liquid by Using Images of Water Surface}},
  booktitle = {InTech},
  year = {2011},
  doi = {10.5772/12970},
}
Figure