betaFeedback

WorksComputer Science

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

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 flat-port interfaces causes bowl-shaped deformation in reconstructed scenes and camera trajectories, compromising the metric accuracy required for mapping and navigation. To remove the dominant refractive distortion before reconstruction, we introduce a physics-based refraction correction in image space. Our method is downstream-agnostic: the refraction-corrected images can be directly used as input to existing reconstruction and SLAM algorithms. We characterize the refractive distortion through ray-tracing simulations and validate our correction on two real underwater datasets with differing scene structures. Compared with conventional and refractive Structure-from-Motion (SfM), our approach removes 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.

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, 4, 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, 11, 12, 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 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 (Figure 1).

Underwater 3D reconstruction from top and side views

Figure 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).

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.

  1. 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.

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

Underwater 3D reconstruction faces a wide array of challenges, comprising optical effects such as attenuation and backscattering that degrade image appearance [15, 16], or sensor fusion with acoustic and inertial sensors for robust localization in turbid scenes [17, 18]. We target the geometric distortion induced by refraction at the camera housing and its impact on 3D reconstruction.

Underwater Camera Modeling and Refraction

Underwater cameras enclosed in flat-port housings violate the conventional perspective imaging assumption because light rays are refracted at the interfaces between water, glass, and air. As a result, the observed image rays deviate from those predicted by a pinhole camera model [1]. This deviation is governed by Snell’s law,

ηwsin⁡θw=ηgsin⁡θg=ηasin⁡θa(1)\eta_w \sin\theta_w = \eta_g \sin\theta_g = \eta_a \sin\theta_a \tag*{(1)}

where ηa\eta_a, ηg\eta_g, ηw\eta_w are the refractive indices of air, glass, and water, and θa\theta_a, θg\theta_g, θw\theta_w are the ray angles with respect to the interface normal.

Treibitz et al. [1] showed that a flat-port underwater camera does not have a single viewpoint and cannot be exactly described by a pinhole model, as the required compensation varies with scene depth [19]. In practice, however, the radial component can be partially approximated with conventional camera intrinsics and distortion parameters [20].

When these parameters are refined through self-calibration, the added degrees of freedom can trade off against one another [21]. This is especially problematic in scenes with weak geometric structure, where flat, feature-limited surfaces provide insufficient constraints for reliable self-calibration, which can lead to systematic “doming” [22, 23]. Such deformation is most pronounced on near-planar scenes and reduced on topographically varied ones [22], and is further amplified under near-parallel viewing [24, 25].

Refractive Structure-from-Motion

Conventional 3D reconstruction pipelines, including COLMAP [10], and recent learning-based approaches such as VGGT [11], MASt3R [12], and Depth Anything 3 [13] rely on perspective camera models and therefore do not explicitly account for underwater refraction. To address this limitation, refractive SfM methods tightly incorporate light refraction into the reconstruction process to improve geometric accuracy. Chadebecq et al. [2] derived an explicit refractive fundamental matrix, extending the theoretical two-view refractive geometry of Chari et al. [26], avoiding the costly direct computation of the refractive reprojection error, which requires solving a 12th-degree polynomial. Jordt et al. [14] proposed a complete refractive SfM framework by introducing a refractive reprojection error and customized pose estimation and bundle adjustment procedures. More recently, She et al. [6] integrated refractive geometry into COLMAP, enabling large-scale incremental refractive SfM while jointly optimizing camera and refractive parameters.

All the above-mentioned approaches tightly build refraction into the reconstruction geometry itself – whether as a refractive two-view formulation [2], a dedicated SfM framework [14], or an extension of an existing pipeline [6] – so that the estimation must be reformulated around the refractive model. In contrast, we correct refraction as an image-level pre-processing step, separating it from reconstruction, which enables state-of-the-art reconstruction methods to be used without modification.

Camera Calibration Underwater

A complementary line of work addresses underwater refraction without explicitly incorporating refractive geometry into the reconstruction pipeline. Instead, these approaches represent the refractive effect within conventional perspective camera models by adjusting intrinsic parameters or introducing additional correction terms [19, 20, 27].

The Pinax model [28] exploits the geometric constraints of practical camera configurations with flat-port housings and represents the refractive projection through a virtual pinhole approximation with precomputed ray mappings. Other approaches estimate physical housing parameters directly from calibration targets [29] that can be used by subsequent refractive reconstruction methods [6]. Singh et al. [4, 5] jointly estimate the refractive index within a visual-inertial framework by decomposing the refractive effect into virtual pinhole and radial distortion components.

Our work complements these approaches by correcting refraction directly in the image domain, as a physics-based preprocessing step before reconstruction. Rather than proposing a new distortion model, we investigate whether correcting refraction improves reconstruction robustness and geometric fidelity while remaining compatible with standard pipelines.

Methodology

Refractive Camera Geometry

We first review the geometry of a flat-port underwater camera [1, 30], which we use to derive the ray-traced displacement field in Sec. III-B. We consider a pinhole camera enclosed in a flat-port housing observing an underwater scene. Under the conventional perspective model, a 3D point P=(X,Y,Z)∈R3P = (X, Y, Z) \in\mathbb{R}^{3} projects onto the image plane as

u=fxXZ+cx,v=fyYZ+cy,(2)u = f_x \frac{X}{Z} + c_x,\qquad v = f_y \frac{Y}{Z} + c_y, \tag*{(2)}

where (u,v)(u, v) is the resulting image coordinate, (cx,cy)(c_x, c_y) the principal point, and (fx,fy)(f_x, f_y) the focal length. Normalizing by the intrinsics gives the corresponding normalized image coordinates

x=u−cxfx,y=v−cyfy,(3)x = \frac{u-c_x}{f_x},\qquad y = \frac{v-c_y}{f_y}, \tag*{(3)}

with normalized image radius

r=x2+y2.(4)r = \sqrt{x^2+y^2}. \tag*{(4)}

For a flat port, the air–glass and glass–water interfaces are assumed parallel to each other and perpendicular to the optical axis [1, 30]. Light refracts at each interface according to Snell’s law. The housing is parameterized by the distance d0d_0 between the camera center and the air–glass interface, and the glass thickness tgt_g. With ZZ denoting the camera-to-object distance along the optical axis, the refractive projection (derived in Sec. III-B) depends on both ZZ and the housing geometry.

Forward Refractive Displacement Model

We compute the refractive displacement by tracing rays through the flat-port housing (see Figure 2a). Given a pixel (u,v)(u, v), and its normalized image coordinates (x,y)(x, y) and radius rr, as defined in Sec. III-A, its ray in air is then back-projected as

ra=(x,y,1)Tr2+1∈S2.(5)\mathbf{r}_a = \frac{(x, y, 1)^{\mathsf{T}}}{\sqrt{r^2+1}} \in\mathbb{S}^{2}. \tag*{(5)}

This ray intersects the air–glass interface at P1P_1, located at distance d0d_0 from the camera center along the port normal n∈S2\mathbf{n} \in\mathbb{S}^{2}. Applying Snell’s law gives the ray direction in glass,

rg=refract⁡(ra,n,ηa,ηg),(6)\mathbf{r}_g = \operatorname{refract}(\mathbf{r}_a,\mathbf{n},\eta_a,\eta_g), \tag*{(6)}

where ηa\eta_a and ηg\eta_g are the refractive indices of air and glass. The function refract⁡(⋅)\operatorname{refract}(\cdot) applies Snell’s law in vector form:

refract⁡(r,n,η1,η2)=μr+(1−μ2(1−c2)−μc)n,(7)\operatorname{refract}(\mathbf{r},\mathbf{n},\eta_1,\eta_2) = \mu\mathbf{r}+ \left(\sqrt{1-\mu^2(1-c^2)}-\mu c\right)\mathbf{n}, \tag*{(7)}

where μ=η1/η2\mu=\eta_1/\eta_2 and c=nTrc=\mathbf{n}^{\mathsf{T}}\mathbf{r}. The refracted ray propagates through the glass of thickness tgt_g to the glass–water interface at P2P_2, where a second refraction gives the water-side direction,

rw=refract⁡(rg,n,ηg,ηw),(8)\mathbf{r}_w = \operatorname{refract}(\mathbf{r}_g,\mathbf{n},\eta_g,\eta_w), \tag*{(8)}

with ηw\eta_w denoting the refractive index of water.

Ray tracing through the flat-port housing

(a) Ray tracing through the flat-port housing. A ray from the camera center travels as ra\mathbf{r}_a, refracts toward the normal at the air–glass interface (P1P_1) into rg\mathbf{r}_g, and away from the normal at the glass–water interface (P2P_2) into rw\mathbf{r}_w, meeting the scene plane at depth ZZ in PwP_w. The dashed line is the direct camera-to-PwP_w reference. Angles are exaggerated for clarity.

Backward refraction warping

(b) Backward refraction warping. For each pixel in the corrected image, we solve for the corresponding pixel in the raw underwater image whose ray-traced water-side intersection matches the ideal perspective 3D point at the assumed depth, and sample its color via bilinear interpolation. The radial displacement visualizes the pixel-wise refractive offset between the corrected and underwater images. The geometric mapping (solid arrows) proceeds from the corrected image to the 3D point and to the raw image, while color values are fetched in the reverse direction (dashed arrow).

Selecting the corrected image’s scale factor

(c) Selecting the corrected image’s scale factor ss. Left: Displacement-field RMSE as a function of the scale factor ss; the minimum defines s∗s^*. Right: Corrected image with the optimal scale s∗s^*, closest to the original field of view.

Figure 2. Fig. 2: Refraction-aware underwater image correction.

The interface points P1P_1, P2P_2, and the ray directions are determined by the housing geometry and are independent of scene depth, and are given by

P1=d0nTrara,P2=P1+tgnTrgrg.(9)P_1 = \frac{d_0}{\mathbf{n}^{\mathsf{T}}\mathbf{r}_a}\mathbf{r}_a,\qquad P_2 = P_1 + \frac{t_g}{\mathbf{n}^{\mathsf{T}}\mathbf{r}_g}\mathbf{r}_g. \tag*{(9)}

Here and throughout, subscripts xx, yy, zz denote a vector’s components along the camera’s optical axis and image-plane directions. The water-side ray intersects the scene plane at

Pw=P2+Z−P2,zrw,zrw,(10)P_w = P_2 + \frac{Z-P_{2,z}}{r_{w,z}}\mathbf{r}_w, \tag*{(10)}

so that Pw,z=ZP_{w,z}=Z by construction. The corresponding refracted image location is then

πr(u,v;Z)=(Pw,xZ+cx,Pw,yZ+cy).(11)\pi_r(u,v;Z)=\left(\frac{P_{w,x}}{Z}+c_x,\frac{P_{w,y}}{Z}+c_y\right). \tag*{(11)}

The refractive displacement is defined as

Δd(u,v;Z)=πr(u,v;Z)−(u,v).(12)\Delta d(u,v;Z)=\pi_r(u,v;Z)-(u,v). \tag*{(12)}

Backward Refraction Warping

To remove refraction, we invert the displacement field into a backward resampling map that relocates each refracted pixel toward its perspective position, and use it to warp the input image (see Figure 2b).

The housing magnifies the scene: since water is optically denser than air, rays bend toward the optical axis as they cross the interfaces, so the housing captures a narrower field of view than an equivalent perspective camera of the same focal length [1]. Consequently, mapping raw pixels back to their perspective positions concentrates the captured content into a smaller radius around the image center, strongly shrinking the corrected image. To compensate, we introduce a scale factor ss that rescales the focal length used in the corrected image’s projection, fx′=sfxf_x'=sf_x and fy′=sfyf_y'=sf_y, and resize the output image to new dimensions (w′,h′)(w',h') accordingly. We estimate ss once per housing configuration via the ray-tracing simulation of Sec. III-B: we compute the refractive displacement field Δd(u,v;Z)\Delta d(u,v;Z) over a range of candidate scales and select the value of ss that minimizes its RMSE, keeping the corrected image as close as possible in scale to the original, see Figure 2c.

Given this scale factor, we compute the backward correspondence for each output pixel as follows. For each pixel (u∗,v∗)(u^*,v^*) in the corrected image, at known depth Z∗Z^*, we identify the corresponding pixel (u,v)(u,v) in the raw underwater image and sample its intensity there via bilinear interpolation. We first back-project (u∗,v∗,Z∗)(u^*,v^*,Z^*) to its 3D point under the ideal perspective model, using the corrected intrinsics fx′,fy′f_x',f_y',

P∗=((u∗−cx)Z∗fx′,(v∗−cy)Z∗fy′,Z∗),(13)P^*=\left(\frac{(u^*-c_x)Z^*}{f_x'},\frac{(v^*-c_y)Z^*}{f_y'},Z^*\right), \tag*{(13)}

and then solve for the raw pixel (u,v)(u,v) whose ray-traced water-side intersection Pw(u,v;Z∗)P_w(u,v;Z^*), as defined in Eq. (10), coincides with P∗P^*, i.e.,

(u,v)=arg min⁡(u,v)∥Pw(u,v;Z∗)−P∗∥2,(14)(u,v)=\underset{(u,v)}{\operatorname{arg\,min}}\left\lVert P_w(u,v;Z^*)-P^*\right\rVert^2, \tag*{(14)}

solved as nonlinear least-squares. The intensity at (u∗,v∗)(u^*,v^*) in the corrected image is then set to the bilinearly interpolated intensity of the raw image at (u,v)(u,v).

Depth Assumption in Practice

While the formulation above supports a per-pixel depth ZZ, our experiments assume a single constant depth Z0Z_0 for all images in a sequence, so that the backward mapping is computed once and applied uniformly rather than solved independently for every pixel. We set Z0Z_0 to average scene depth over the sequence. This is a reasonable approximation for our datasets, which, as in most coral reef surveys, are largely planar or captured at a roughly constant altitude.

Depth variability nonetheless affects correction quality: as our results on the Lizard Island dataset show, scenes with substantial depth variation are only approximately corrected under a single Z0Z_0. Future work should address variable depth, per image or even per pixel, to achieve maximally accurate and reliable reconstructions.

Simulation and Sensitivity Analysis

We simulate the refractive displacement (Eq. (12)) while varying each parameter of the flat-port housing model independently, and report the resulting RMSE relative to the nominal configuration (Figure 3). The displacement is most sensitive to the ratio between the scene depth ZZ and the housing-to-camera distance d0d_0: varying ZZ or d0d_0 independently produces substantial RMSE changes, and expressing this dependence through the ratio Z/d0Z/d_0 captures the dominant trend. In contrast, glass thickness tgt_g has a negligible effect on the displacement, indicating that accurately estimating Z/d0Z/d_0 is far more critical for the correction than precisely measuring the housing’s glass thickness.

Sensitivity analysis plots for refraction-correction parameters

Figure 3. Sensitivity analysis of refraction-correction parameters. Each panel varies one parameter of the flat-port housing model while holding the others fixed at their nominal values: (a) depth ZZ, (b) housing-to-camera distance d0d_0, (c) the ratio Z/d0Z/d_0 of depth to housing-to-camera distance, (d) water refractive index ηw\eta_w, (e) glass thickness tgt_g, and (f) focal length fx,fyf_x,f_y.

DatasetSequenceFramesZZ (m)Characteristics
Malaysiap1 s01175680.5Diver handheld
Malaysiap1 s0275571.0GoPro HERO13
Malaysiap1 s03110431.5Coral rubble
Malaysiap3 s0298851.05×55 \times5 m
Malaysiap3 s0351271.5Near-planar scene
Lizard IslandFeb 2024 0110473ASV
Lizard IslandMar 2024 0111828GoPro HERO11
Lizard IslandMar 2024 02467811–88Coral reef
Lizard IslandSep 2024 01915657×4557 \times45 m
Lizard IslandSep 2024 0214382Varied scene

Table 1. TABLE I: Per-sequence characteristics of the Malaysia and Lizard Island datasets. ZZ denotes the range of camera-to-scene distance observed in each sequence.

Experimental Setup

Baselines

We compare our approach against SfM COLMAP [10] and its refractive variant, Refractive COLMAP [6]. COLMAP is the standard perspective baseline that can approximate refraction with a radial-tangential distortion model, while Refractive COLMAP jointly optimizes refractive parameters with camera poses and structure throughout the SfM pipeline. Ours instead applies our physics-based correction to the images before reconstructing with conventional COLMAP. Comparing these three approaches highlights their caveats and benefits in terms of final geometric accuracy, optimization convergence, and computational performance.

Because our correction is applied directly to the image, prior to any reconstruction step, it is agnostic to the specific downstream pipeline. We test this portability by evaluating two learning-based multi-view models, MapAnything [31] and Depth Anything 3 (DA3) [13], on the raw and corrected images. Furthermore, we evaluate five VSLAM systems spanning a range of paradigms [32]: the traditional handcrafted feature-based ORB-SLAM3 [33]; the learned feature-based AnyFeature-VSLAM [34]; the RNN-based DROID-SLAM [35] and DPVO [36]; and the transformer-based MASt3R-SLAM [37].

Datasets

We evaluate on two datasets of real underwater data captured with consumer GoPro cameras in standard flat-port housings. These were collected by two different teams across four missions at two geographic locations, Malaysia and Lizard Island, spanning four different times of year. Frames from the two datasets are shown in Figure 4. Table I summarizes the complementary characteristics of both datasets, contrasting diver-handheld versus robot-mounted capture and near-planar versus topographically varied scene geometry.

Two pairs of underwater RGB images, raw and refraction-corrected

Figure 4. Top row: two RGB images from the Malaysia dataset; bottom row: two RGB images from the Lizard Island dataset. In each pair, left is the raw underwater capture and right is the refraction-corrected image.

Malaysia Dataset. [38] The survey was conducted at Pom Pom Island, Borneo, Malaysia, as part of an initiative evaluating biodegradable biomaterials for coral-rubble stabilization. A diver-handheld, 3-camera GoPro HERO13 stereo rig surveyed a coral-rubble seabed, with camera-to-seafloor distance varying across passes.

Lizard Island Dataset. [39] An ASV-mounted GoPro HERO11 over a coral reef. The data was collected as part of a multi-year autonomous reef restoration program on the Great Barrier Reef, using a reconfigurable surface vehicle fleet. The scene is topographically varied, while the ASV maintains a fixed height above the water surface, producing an approximately planar camera trajectory.

Evaluation Metrics

Evaluating underwater 3D reconstruction against absolute ground truth remains impractical at the scale of our surveys. GPS does not propagate underwater, so ASV positioning is not accurate enough to serve as a reliable pose reference, and more sophisticated positioning or scanning systems capable of providing reliable ground truth are expensive and impractical to deploy in the field. We instead evaluate each reconstruction using a thorough combination of structural consistency, whether the reconstruction preserves the underlying geometry known a priori, and standard SfM statistics [10, 40, 41].

Structural deformation. A hallmark of refractive distortion is systematic bowl-shaped deformation in reconstructed scene geometry and camera trajectories. We quantify this deformation using a sequence-specific planar reference. For the near-planar Malaysia seafloor, we fit a plane to the reconstructed 3D points, while for Lizard Island we fit a plane to the reconstructed camera centers, reflecting its constant-altitude ASV trajectory.

Plane fit and scale normalization. Given reconstructed points {xi}i=1N\{\mathbf{x}_i\}_{i=1}^{N}, we estimate the best-fit plane by SVD and compute the signed point-to-plane residual

ri=nTxi+d,(15)r_i = \mathbf{n}^{\mathsf{T}}\mathbf{x}_i + d, \tag*{(15)}

where n\mathbf{n} is the unit plane normal and dd is the plane offset. We orient n\mathbf{n} toward the mean camera center. Let (ui,vi)(u_i,v_i) denote the coordinates of the in-plane projection of xi\mathbf{x}_i in an orthonormal basis of the fitted plane. To account for arbitrary monocular scale, we normalize by the projected scene extent

D=(max⁡iui−min⁡iui)2+(max⁡ivi−min⁡ivi)2.(16)D = \sqrt{\left(\max_i u_i-\min_i u_i\right)^2+\left(\max_i v_i-\min_i v_i\right)^2}. \tag*{(16)}

Radial curvature. We model the systematic bowl/dome component of the residual field with a radially symmetric paraboloid,

ri≈c0+c1ui+c2vi+c3(ui2+vi2),(17)r_i \approx c_0+c_1u_i+c_2v_i+c_3\left(u_i^2+v_i^2\right), \tag*{(17)}

where the affine terms absorb residual offset and tilt, while c3c_3 captures the systematic radial curvature. We report the dimensionless curvature

κ=c3D,(18)\kappa= c_3D, \tag*{(18)}

where κ=0\kappa= 0 indicates a flat reconstruction and ∣κ∣|\kappa| measures the strength of the radial bowl/dome deformation. The sign indicates the deformation direction, with negative values corresponding to a bowl and positive values to a dome.

Structure-from-Motion statistics. Even though absolute accuracy cannot be obtained, a systematic analysis of SfM statistics allows us to draw useful conclusions about the performance of the different baselines.

Registered image ratio (Reg.) and number of reconstructed 3D points (Pts): ceteris paribus, a higher number of recovered camera poses and/or number of 3D points indicates a better fit of the model to the underlying 3D geometry.

Mean track length (Track): the average number of images in which a reconstructed point is observed reflects how consistently features are matched across views.

Reprojection error (Reproj.): smaller reprojection errors after bundle adjustment are indicative of a better fit of the model, but, as shown in § 5, this does not necessarily translate to a more accurate reconstructed geometry.

Results

We run all experiments using calibrated in-air intrinsics and standard flat-port parameters of tg=2t_g = 2 mm glass thickness and d0=2d_0 = 2 cm housing-to-camera distance. Results, reported in Table II and Figure 5, use the operational depth Z0Z_0 obtained as detailed in the ablation study (Sec. VI).

SequenceMethodDist.Reg.↑Pts×10510^{5}↑Track↑Reproj.↓κ≈0\kappa\approx0
Lizard Island
feb_gp1COLMAPref0.884.226.780.35−0.366
feb_gp1Refractive COLMAPfix0.884.226.770.36−0.453
feb_gp1Ours + COLMAPfix0.965.857.750.34+0.017
mar_gp1COLMAPref0.996.728.350.48−0.304
mar_gp1Refractive COLMAPfix0.996.688.340.48+0.055
mar_gp1Ours + COLMAPfix1.008.159.410.45+0.014
mar_gp2COLMAPref0.905.997.900.48+0.306
mar_gp2Refractive COLMAPfix0.905.987.880.48−0.057
mar_gp2Ours + COLMAPfix1.006.999.250.47+0.017
sep_gp1COLMAPref0.795.109.190.57+0.082
sep_gp1Refractive COLMAPfix0.795.109.160.57−0.045
sep_gp1Ours + COLMAPfix0.976.939.940.52−0.024
sep_gp2COLMAPref0.39(3.41)(8.54)(0.56)(−0.029)
sep_gp2Refractive COLMAPfix0.39(3.41)(8.52)(0.56)(+0.068)
sep_gp2Ours + COLMAPfix0.836.798.840.49+0.053
Malaysia
p1_s01COLMAPref0.9523.325.700.37+0.188
p1_s01Refractive COLMAPfix—*
p1_s01Ours + COLMAPfix0.9927.376.010.37−0.068
p1_s02COLMAPref1.0012.707.380.29+0.089
p1_s02Refractive COLMAPfix1.0012.827.190.57+0.694
p1_s02Ours + COLMAPfix1.0013.148.570.32−0.000
p1_s03COLMAPref1.0011.109.430.36+0.073
p1_s03Refractive COLMAPfix1.0011.418.940.68+0.105
p1_s03Ours + COLMAPfix1.0010.6112.010.40+0.031
p3_s02COLMAPref1.0012.975.030.41−0.064
p3_s02Refractive COLMAPfix—*
p3_s02Ours + COLMAPfix1.0015.565.400.42−0.004
p3_s03COLMAPref1.007.307.450.35+0.097
p3_s03Refractive COLMAPfix1.007.327.340.62+0.253
p3_s03Ours + COLMAPfix1.007.768.730.38+0.078

Table II. Reconstruction results. Distortion parameters are fixed (fix) or refined (ref); planarity is measured against the scene (Malaysia) or trajectory (Lizard Island). κ=0\kappa= 0 is flat; negative is a bowl, positive a dome. Parentheses: insufficient sequence coverage; —*: failed reconstruction.

Comparison of 3D point clouds and camera trajectories for Lizard-Island and Malaysia datasets

Figure 5. Comparison of 3D point clouds and camera trajectories reconstructed using COLMAP (ref) and OURS + COLMAP across Lizard-Island and Malaysia datasets. Note how our approach yields more complete trajectories (fewer camera gaps) and more geometrically consistent reconstructions (no bending).

Geometric Fidelity via Structural Deformation

Conventional COLMAP (fix) with fixed intrinsics always leads to catastrophic failure on both the Malaysia, and Lizard Island datasets. Refining the camera intrinsics and distortion parameters, COLMAP (ref), substantially reduces the curvature in Malaysia scenes, with κ∈[−0.06,+0.19]\kappa\in[-0.06, +0.19]. These results are consistent with the fact that the scene structure in this dataset is generally planar, so refraction has an overall radial effect that can be modeled with radial distortion parameters. Consistently, on Lizard Island, where the scene is topographically varied and refraction produces a strong non-radial component, COLMAP (ref) remains comparatively larger, with κ∈[−0.37,+0.31]\kappa\in[-0.37,+0.31].

InputDA3 [13]MaPLe [31]ORB3 [33]AV [34]DROID [35]DPVO [36]MaSSLR [37]
Reg. ↑1.001.000.201.001.001.001.00
κ≈0\kappa\approx0-0.032-0.045(-0.009)+0.005+0.029+0.006-0.176

Table 3. Generalization across 3D Reconstruction and VSLAM. Trajectory planarity (κ\kappa) and number of registered images (Reg.) with our corrected inputs within each backend.

MethodUndist.↓Feat. Extraction↓Feat. Matching↓Mapping↓Total↓
COLMAP (refined)–7.691158.803499.744666.23
Refractive COLMAP–8.421129.882934.844073.14
Ours + COLMAP7.757.031015.052242.733272.56

Table 4. Runtime evaluation (ms / image). Our method achieves the fastest runtime across all stages and reports the fastest total runtime, despite introducing the additional refractive undistortion step.

Refractive COLMAP, with κ∈[+0.10,+0.69]\kappa\in[+0.10,+0.69] in Malaysia and κ∈[−0.45,+0.07]\kappa\in[-0.45,+0.07] in Lizard Island, does not consistently outperform COLMAP (ref) with refined intrinsics, suggesting that explicitly modeling refraction hinders optimization convergence, likely causing it to settle in local minima.

In contrast, our image-space correction consistently produces the smallest structural curvature across the evaluated sequences, with κ∈[−0.07,+0.08]\kappa\in[-0.07,+0.08] in Malaysia and κ∈[−0.02,+0.05]\kappa\in[-0.02,+0.05] in Lizard Island sequences.

Reconstruction Completeness and Model Fit

As shown in Table II, our approach achieves the highest registered image ratio across all sequences with the highest geometric fidelity. As discussed in the previous section, COLMAP (ref) with refined distortion parameters consistently yields the lowest reprojection error on the Malaysia sequences, because the scene structure in this dataset is generally planar, so refraction has an overall radial effect that can be modeled with radial distortion parameters; however, this does not translate to the highest geometric fidelity.

Finally, another notable trend is that our approach produces the highest number of 3D3D points across 9/10 sequences and the highest mean track length across all sequences. This indicates that our correction does not merely reconstruct more points at the cost of weaker constraints; rather, it recovers more 3D points while each is observed more consistently across views, better constraining the reconstruction.

Generalization Across 3D Reconstruction and VSLAM

A key benefit of our approach is that, by correcting refraction in image space, it allows seamless combination with any 3D reconstruction or VSLAM pipeline that assumes a perspective (pinhole) camera model, many of which are trained on in-air data. Table III shows how our approach converts catastrophic failure into standard operating performance for each system (see accompanying video).

Ablation Studies

Reference depth. As shown in Sec. III-E, Z0Z_0 is strongly coupled with the flat-port parameter d0d_0; we therefore vary Z0Z_0 directly and evaluate its effect on reconstructed geometry, using planarity as a proxy for geometric fidelity.

Figure 7 shows that geometric fidelity is highest (curvature is minimized) at specific operational values Z0Z_0. A limitation of this analysis is that we fit a single Z0Z_0 per scene, whereas the true optimal depth varies per pixel with local scene depth. The value we identify is therefore an average that minimizes the aggregate curvature over the whole scene, rather than the locally optimal depth at every point (see Figure 6).

Planarity deviation maps for the Malaysia dataset p1_s02

Figure 6. Planarity deviation maps for the Malaysia dataset p1_s02 (left: Refractive COLMAP; right: Ours + COLMAP). Axes denote normalized in-plane coordinates; color shows normalized signed deviation from the fitted plane. The left panel shows a strong dome artifact, a hallmark of optimization convergence overfitting. Our method (right) eliminates this systematic pattern, leaving only deviations from the actual 3D structure.

Depth ablation plots for Malaysia and Lizard Island

Figure 7. Depth ablation to select the operational depth Z0Z_0 used for refractive undistortion. We undistort images using a range of candidate values of Z0Z_0 and reconstruct the scene for each. Each plot shows the resulting distribution of normalized planarity residuals across the sequence.

Computational Performance. Table IV shows that our approach speeds up feature matching (which includes geometric verification) and mapping, both by using a better-fitting model compared to COLMAP and a simpler model compared to Refractive COLMAP. We run all experiments on a desktop workstation with an Intel Core i7-14700, 32GB RAM, and an NVIDIA RTX 4090.

Conclusion and Future Work

We presented an image-space refraction correction method for underwater 3D reconstruction with flat-port cameras. Our method corrects the refractive displacement by warping images to their equivalent perspective appearance prior to reconstruction. A key benefit is that this enables any standard 3D reconstruction or VSLAM pipeline to run unmodified. Through this work we have identified current limitations. Specifically, we determine a single operational scene distance Z0Z_0 by tuning it against prior knowledge of scene structure. However, this parameter should instead be obtained per pixel, either through stereo triangulation or recent monocular depth prediction models. More broadly, the field lacks an underwater dataset with highly accurate ground-truth geometry for 3D reconstruction.

References

References

  1. [1]T. Treibitz, Y. Schechner, C. Kunz, and H. Singh, “Flat refractive geometry,” IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 34, no. 1, pp. 51–65, 2012.
  2. [2]F. Chadebecq, A. Vasconcelos, R. Lacher, E. Maneas, A. Desjardins, S. Ourselin, T. Vercauteren, and D. Stoyanov, “Refractive two-view reconstruction for underwater 3d vision,” International Journal of Computer Vision, vol. 128, no. 5, pp. 1101–1117, 2020.DOI
  3. [3]V. Raoult, P. A. David, S. F. Dupont, C. P. Mathewson, S. J. O’Neill, N. N. Powell, and J. E. Williamson, “GeoProstM, as an underwater photogrammetry tool for citizen science,” PeerJ, vol. 4, p. e1960, 2016.DOI
  4. [4]M. Singh and K. Alexis, “Online refractive camera model calibration in visual inertial odometry,” in IEEE/RSJ International Conference on Intelligent Robots and Systems, 2024, pp. 12 609–12 616.arxiv.org/abs/2409.12074
  5. [5]M. Singh, M. Dharmadhikari, and K. Alexis, “An online self-calibrating refractive camera model with application to underwater odometry,” in IEEE International Conference on Robotics and Automation, 2024, pp. 10 005–10 011.arxiv.org/abs/2310.16658
  6. [6]M. She, F. Seegräber, D. Nakath, and K. Köser, “Refractive colmap: Refractive structure-from-motion revisited,” in IEEE/RSJ International Conference on Intelligent Robots and Systems, 2024, pp. 12 816–12 823.
  7. [7]J. Sauder, G. Banc-Prandi, A. Meibom, and D. Tuia, “Scalable semantic 3d mapping of coral reefs with deep learning,” Methods in Ecology and Evolution, vol. 15, no. 5, pp. 916–934, 2024.
  8. [8]B. Gorry, T. Fischer, M. Milford, and A. Fontan, “Image-based relocalization and alignment for long-term monitoring of dynamic underwater environments,” in IEEE/RSJ International Conference on Intelligent Robots and Systems, 2025, pp. 10 749–10 756.DOI
  9. [9]A. Friedman, J. Monk, O. Pizzaro, D. Lindsay, E. Oh, B. Thornton, A. Carroll, R. Przeslawski, and S. Williams, “Squidle+: a collaborative platform to manage, discover and annotate marine imagery,” Frontiers in Marine Science, vol. 12, p. 1677103, 2026.DOI
  10. [10]J. L. Schönberger and J.-M. Frahm, “Structure-from-motion revisited,” in IEEE Conference on Computer Vision and Pattern Recognition, 2016, pp. 4104–4113.DOI
  11. [11]J. Wang, M. Chen, N. Karaev, A. Vedaldi, C. Ruprecht, and D. Novotny, “VGGT: visual geometry grounded transformer,” in IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2025, pp. 5294–5306.arxiv.org/abs/2503.11651
  12. [12]V. Leroy, Y. Cabon, and J. Revaud, “Grounding image matching in 3D with MaSt3R,” in European Conference on Computer Vision, 2024, pp. 71–91.arxiv.org/abs/2406.09756
  13. [13]H. Lin, S. Chen, J. H. Liew, D. Y. Chen, Z. Li, G. Shi, J. Feng, and B. Kang, “Depth anything 3: recovering the visual space from any views,” in International Conference on Learning Representations, 2026.arxiv.org/abs/2511.10647
  14. [14]A. Jordt-Sedlazek and R. Koch, “Refractive structure-from-motion on underwater images,” in IEEE International Conference on Computer Vision, 2013, pp. 57–64.
  15. [15]H. Li, W. Song, T. Xu, A. Elsig, and J. Kulhanek, “WaterSplatting: Fast underwater 3D scene reconstruction using Gaussian Splatting,” in International Conference on 3D Vision, 2025, pp. 969–978.arxiv.org/abs/2408.08206
  16. [16]M. Kweon and J. Sattar, “Swimm3r: Splatting with medium-aware SfM for underwater 3D reconstruction,” arXiv 2608.00950, 2026.arxiv.org/abs/2608.00950
  17. [17]O. Bagoren, S. Isaacson, S. Sundar, Y.-C. Sun, A. Sheppard, H. Ma, A. Shariff, R. Vasudevan, and K. A. Skinner, “SurfSLAM: Sim-to-real underwater stereo reconstruction for real-time SLAM,” arXiv 2601.10814, 2026.arxiv.org/abs/2601.10814
  18. [18]S. Xu, K. Z. Zhang, and S. Wang, “AQUA-SLAM: Tightly-coupled underwater acoustic-visual-inertial SLAM with sensor calibration,” IEEE Transactions on Robotics, vol. 41, pp. 2785–2803, 2025.arxiv.org/abs/2503.11420
  19. [19]A. Sedlazek and R. Koch, “Perspective and non-perspective camera models in underwater imaging – overview and error analysis,” in Outdoor and Large-Scale Real-World Scene Analysis, 2012, pp. 212–242.
  20. [20]D. Senshina, D. Polevoy, E. Ershov, and I. Kunina, “Experimental study of radial distortion compensation for camera submerged underwater using open saltwaterdistortion data set,” Journal of Imaging, vol. 8, no. 10, 2022.DOI
  21. [21]B. Triggs, P. F. McLauchlan, R. I. Hartley, and A. W. Fitzgibbon, “Bundle adjustment — a modern synthesis,” in Vision Algorithms: Theory and Practice, 2000, pp. 298–372.DOI
  22. [22]D. Griffiths and H. Burningham, “Comparison of pre- and self-calibrated camera calibration models for UAS-derived nadir imagery for a SfM application,” Progress in Physical Geography: Earth and Environment, vol. 43, no. 2, pp. 215–235, 2019.
  23. [23]L. Magri and R. Toldo, “Bending the dolmen effect in structure from motion reconstructions through bundle adjustment,” The International Archives of the Photogrammetry, Remote Sensing and Spatial Information Sciences, vol. XLII-2/W6, pp. 235–241, 2017.DOI
  24. [24]M. R. James and S. Robson, “Mitigating systematic error in topographic models derived from raw and ground-based image networks,” Earth Surface Processes and Landforms, vol. 39, no. 10, pp. 1413–1420, 2014.DOI
  25. [25]C. Wu, “Critical configurations for radial distortion self-calibration,” in IEEE Conference on Computer Vision and Pattern Recognition, 2014, pp. 25–32.DOI
  26. [26]V. Chari and P. Sturm, “Multiple-view geometry of the refractive plane,” in British Machine Vision Conference, 2009.
  27. [27]J. M. Lavest, G. Rives, and J. T. Lapresté, “Underwater camera calibration,” in European Conference on Computer Vision, 2000, pp. 654–668.DOI
  28. [28]T. Łuczyński, M. Pfingsthorn, and A. Birk, “The pinax-model for accurate and efficient refraction correction of underwater cameras in flat-pane housings,” Ocean Engineering, vol. 133, pp. 9–22, 2017.DOI
  29. [29]F. Seegräber, M. She, F. Woelk, and K. Köser, “A calibration tool for refractive underwater vision,” in IEEE/CVF International Conference on Computer Vision Workshops, 2025, pp. 2087–2095.arxiv.org/abs/2405.18018
  30. [30]A. Agrawal, S. Ramalingam, Y. Taguchi, and V. Chari, “A theory of multi-layer flat refractive geometry,” in IEEE Conference on Computer Vision and Pattern Recognition, 2012, pp. 3346–3353.
  31. [31]N. Keetha et al., “MapAnything: Universal feed-forward metric 3D reconstruction,” in International Conference on 3D Vision, 2026.arxiv.org/abs/2509.13414
  32. [32]A. Fontan, T. Fischer, J. Civera, and M. Milford, “VSLAM-LAB: A Comprehensive Framework for Visual SLAM Methods and Datasets,” in IEEE/RSJ Intl. Conf. on Intelligent Robots and Systems, 2025, pp. 9013–9020.arxiv.org/abs/2504.04457
  33. [33]C. Campos, R. Elvira, J. J. G. Rodríguez, J. M. M. Montiel, and J. D. Tardós, “ORB-SLAM3: An Accurate Open-Source Library for Visual, Visual-Inertial, and Multimap SLAM,” IEEE Transactions on Robotics, vol. 37, no. 6, pp. 1874–1890, 2021.DOI
  34. [34]A. Fontan, J. Civera, and M. Milford, “AnyFeature-VSLAM: Automating the Usage of Any Chosen Feature into Visual SLAM,” in Robotics: Science and Systems, vol. 2, 2024.DOI
  35. [35]Z. Teed and J. Deng, “DROID-SLAM: Deep Visual Slam for Monocular, Stereo, and RGB-D Cameras,” Advances in Neural Information Processing Systems, vol. 34, pp. 16 558–16 569, 2021.arxiv.org/abs/2108.10869
  36. [36]Z. Teed, L. Lipson, and J. Deng, “Deep Patch Visual SLAM,” in European Conference on Computer Vision, 2024, pp. 424–440.arxiv.org/abs/2408.01654
  37. [37]R. Murai, E. Dexheimer, and A. J. Davison, “MASt3R-SLAM: Real-Time Dense SLAM with 3D Reconstruction Priors,” in IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2025, pp. 16 695–16 705.arxiv.org/abs/2412.12392
  38. [38]S. K. Leung, T. M. Kenyon, L. J. Raymundo, H. E. Fox, N. Cook, K. Cook, A. J. Edwards, E. E. Fisher, A. J. Brival, F. E. Nicholson et al., “A decision support tool for rubble stabilization on coral reefs,” Journal of Environmental Management, vol. 396, p. 128154, 2025.
  39. [39]S. Mou, D. Tsai, and M. Dunbabin, “Reconfigurable robots for scaling reef restoration,” arXiv 2205.04612, 2022.
  40. [40]L. Pan, D. Baráth, M. Pollefeys, and J. L. Schönberger, “Global structure-from-motion revisited,” in European Conference on Computer Vision, 2024, pp. 58–77.arxiv.org/abs/2407.20219
  41. [41]Y. Wang, L. Pan, M. Pollefeys, and V. Larsson, “Structure-from-motion with a non-parametric camera model,” in IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2025, pp. 1040–1049.DOI

Paper details

vlnc:W_rrk7vhvr
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents