arXiv:2610.07788cs.CVOct 2026

Manuscript Offprint

arXiv:2610.07788

Image-Space Refraction Correction for Underwater 3D Reconstruction: Warping Flat-Port Views into Pinhole Perspective

Chelim Lim, Tobias Fischer, Emilio Olivastri, Beverley Gorry, Michael Milford, Alejandro Fontan

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Chelim Lim, Tobias Fischer, Emilio Olivastri, Beverley Gorry, Michael Milford and Alejandro Fontan

Abstract—Consumer-grade cameras in flat-port housings are widely used for underwater exploration and mapping of coral reefs and seafloor habitats due to their low cost and accessibility. However, refraction at the flat-port interfaces causes bowl-shaped deformation of the reconstructed scene and camera trajectory, compromising the metric accuracy that mapping and navigation depend on. To remove the dominant refractive distortion before reconstruction, we introduce a physics-based refraction correction in image-space. Our method is downstream-agnostic, and the refraction-corrected images can be directly used as input to any reconstruction or SLAM algorithms. We characterize the refractive distortion through ray-tracing simulations and validate the correction on two real underwater datasets with differing scene structure. Compared with conventional and refractive Structure-from-Motion (SfM), our approach removes the reconstruction deformation while registering more frames and maintaining low reprojection error. The correction further generalizes across diverse reconstruction and VSLAM backends, demonstrating its broad applicability to downstream vision pipelines. Code and interactive demo are available at github.com/cllim118/Refrax and huggingface.co/spaces/cllim118/refrax-demo.

I. INTRODUCTION

Recovering accurate 3D geometry underwater is affected by refraction, as light bends at the camera–housing interface between media of different refractive indices, such as water, glass, and air, invalidating the single-viewpoint (pinhole) assumption [1], [2].

Conventional cameras protected by flat-port housings provide a simple and effective solution for underwater imaging, and are widely used instead of dedicated underwater imaging systems, which are expensive and impractical for many applications [3]–[5]. However, the water–housing interface introduces refractive distortions that violate the perspective (pinhole) assumption, resulting in geometric inaccuracies that accumulate, in 3D applications, into bent, bowl-shaped scene structure and camera trajectory [6], [7]. The resulting inconsistent reconstructions are unsuitable for downstream tasks such as robot localization and navigation, as well as ecological monitoring, including coral reef and benthic habitat surveys [8], [9].

3D reconstruction methods are mature outside of water [10]–[13], but underwater reconstruction still poses challenges, such as how refraction is handled. Two main strategies have addressed this problem. The first absorbs refraction, to a certain extent, into conventional radial-tangential distortion parameters, since the induced distortion has a strong radial component. However, this approximation is not exact, since refraction is not perfectly radial and varies with scene depth. As well as this, estimating these parameters jointly

Figure

(a) Conventional SfM

Figure

(b) Ours + SfM

Fig. 1: Underwater 3D reconstruction from top and side views, comparing (a) Conventional SfM with refined intrinsics (red) and (b) Ours + SfM (green) on a survey of three coral bommies. Our correction recovers a flat, planar trajectory and scene structure (side view, green), consistent with the vehicle's known survey pattern, whereas Conventional SfM produces a visibly bowed trajectory (side view, red).

with camera pose and structure during reconstruction hinders optimization convergence and introduces systematic errors.

The second strategy incorporates refraction tightly into the reconstruction through dedicated refractive camera models and modified bundle adjustment [6], [14]. Such physics-based modeling improves reconstruction accuracy over perspective approximations, but at the cost of requiring refractive parameters to be handled jointly with camera pose and scene structure, which increases the number of coupled variables and hinders optimization convergence. In contrast, we propose to correct refractive distortion in image space, decoupling the correction from the reconstruction, which yields a simpler optimization and makes it independent of the downstream reconstruction system (Fig. 1).

The main contribution of this paper is a physics-based refraction correction method that removes the refractive distortion in image space prior to downstream vision tasks. By eliminating the need for refractive parameters from the downstream method, our approach simplifies the optimization and improves geometric fidelity and reconstruction robustness. The corrected images can be used with existing reconstruction, localization, and mapping methods without modifying their camera models or optimization procedures.

In particular, we make the following contributions:

  1. Physics-based preprocessing: A ray-traced image-space correction that characterizes the refractive displacement by tracing light through the flat-port housing's air-glass and glass-water interfaces, and inverts it into a backward warp that maps each image to their equivalent perspective appearance, decoupling refraction correction from the reconstruction backend.

  2. Failure-mode analysis: We build a simulator of the flat-port refractive model to analyze the influence of each parameter involved in the warping, and propose several ablations to discuss their relative importance and correlations, and the trade-offs through which over-parameterization hinders optimization convergence and degrades accuracy.

  3. Empirical evaluation: On real underwater datasets, our correction improves geometric fidelity by up to 10×10\times over conventional and refractive SfM and transfers across diverse vision pipelines.

References (41)