Manuscript Offprint
arXiv:2610.07788Image-Space Refraction Correction for Underwater 3D Reconstruction: Warping Flat-Port Views into Pinhole Perspective
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

(a) Conventional SfM

(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:
-
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.
-
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.
-
Empirical evaluation: On real underwater datasets, our correction improves geometric fidelity by up to over conventional and refractive SfM and transfers across diverse vision pipelines.
A. 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,
where , , are the refractive indices of air, glass, and water, and , , 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].
B. 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 built 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.
C. 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.
III. METHODOLOGY
A. 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 projects onto the image plane as
where is the resulting image coordinate, the principal point, and the focal length. Normalizing by the intrinsics gives the corresponding normalized image coordinates
with normalized image radius
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 between the camera center and the air–glass interface, and the glass thickness . With Z denoting the camera-to-object distance along the optical axis, the refractive projection (derived in Sec. III-B) depends on both Z and the housing geometry.
B. Forward Refractive Displacement Model
We compute the refractive displacement by tracing rays through the flat-port housing (see Fig. 2a). Given a pixel , and its normalized image coordinates and radius , as defined in Sec. III-A, its ray in air is then back-projected as
This ray intersects the air–glass interface at , located at distance from the camera center along the port normal . Applying Snell's law gives the ray direction in glass,
where and are the refractive indices of air and glass. The function refract( ) applies Snell's law in vector form:
where and . The refracted ray propagates through the glass of thickness to the glass–water interface at , where a second refraction gives the water-side direction,
with denoting the refractive index of water.

(a) Ray tracing through the flat-port housing. A ray from the camera center travels as , refracts toward the normal at the air–glass interface ( ) into , and away from the normal at the glass–water interface ( ) into , meeting the scene plane at depth in . The dashed line is the direct camera-to- reference. Angles are exaggerated for clarity.
World 3D Point

bilinear sampling
(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 raw 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).

(c) Selecting the corrected image's scale factor s. Left: Displacement-field RMSE as a function of the scale factor s; the minimum defines . Right: Corrected image with the optimal scale , closest to the original field of view.
Fig. 2: Refraction-aware underwater image correction.

Z (m)
(a)
(mm)
(b)
Z/d₀
(c)
(d)
(mm)
(e)
focal length scale
(f)
Fig. 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 Z, (b) housing-to-camera distance , (c) the ratio of depth to housing-to-camera distance, (d) water refractive index , (e) glass thickness , and (f) focal length , .
The interface points , , and the ray directions are determined by the housing geometry and are independent of scene depth, and are given by
Here and throughout, subscripts x, y, z denote a vector's components along the camera's optical axis and image-plane directions. The water-side ray intersects the scene plane at
so that by construction. The corresponding refracted image location is then
The refractive displacement is defined as
C. 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 Fig. 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 s that rescales the focal length used in the corrected image's projection, and , and resize the output image to new dimensions accordingly. We estimate s once per housing configuration via the ray-tracing simulation of Sec. III-B: we compute the refractive displacement field over a range of candidate scales and select the value of s that minimizes its RMSE, keeping the corrected image as close as possible in scale to the original, see Fig. 2c.
Given this scale factor, we compute the backward correspondence for each output pixel as follows. For each pixel in the corrected image, at known depth , we identify the corresponding pixel in the raw underwater image and sample its intensity there via bilinear interpolation. We first back-project to its 3D point under the ideal perspective model, using the corrected intrinsics ,
and then solve for the raw pixel whose ray-traced water-side intersection , as defined in Eq. (10), coincides with , i.e.,
solved as nonlinear least-squares. The intensity at in the corrected image is then set to the bilinearly interpolated intensity of the raw image at .
D. Depth Assumption in Practice
While the formulation above supports a per-pixel depth Z, our experiments assume a single constant depth 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 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 . Future work should address variable depth, per image or even per pixel, to achieve maximally accurate and reliable reconstructions.
E. 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 (Fig. 3). The displacement is most sensitive to the ratio between the scene depth Z and the housing-to-camera distance : varying Z or independently produces substantial RMSE changes, and expressing this dependence through the ratio captures the dominant trend. In contrast, glass thickness has a negligible effect on the displacement, indicating that accurately estimating is far more critical for the correction than precisely measuring the housing's glass thickness.

Fig. 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.
IV. EXPERIMENTAL SETUP
A. 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].
B. 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 Fig. 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.
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.
TABLE I: Per-sequence characteristics of the Malaysia and Lizard Island datasets. Z denotes the range of camera-to-scene distance observed in each sequence.
| Dataset | Sequence | Frames | Z (m) | Characteristics |
|---|---|---|---|---|
| Malaysia | p1 s01 | 17568 | 0.5 | Diver handheld |
| p1 s02 | 7557 | 1.0 | GoPro HERO13 | |
| p1 s03 | 11043 | 1.5 | Coral rubble | |
| p3 s02 | 9885 | 1.0 | 5×5 m | |
| p3 s03 | 5127 | 1.5 | Near-planar scene | |
| Lizard Island | Feb 2024 01 | 10473 | ASV | |
| Mar 2024 01 | 11828 | GoPro HERO11 | ||
| Mar 2024 02 | 4678 | 1-8 | Coral reef | |
| Sep 2024 01 | 9156 | 57×45 m | ||
| Sep 2024 02 | 14382 | Varied scene |
C. 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 , we estimate the best-fit plane by SVD and compute the signed point-to-plane residual
where n is the unit plane normal and d is the plane offset. We orient n toward the mean camera center. Let denote the coordinates of the in-plane projection of in an orthonormal basis of the fitted plane. To account for arbitrary monocular scale, we normalize by the projected scene extent
Radial curvature. We model the systematic bowl/dome component of the residual field with a radially symmetric paraboloid,
TABLE II: Reconstruction results. Distortion parameters are fixed (fix) or refined (ref); planarity is measured against the scene (Malaysia) or trajectory (Lizard Island). is flat; negative is a bowl, positive a dome. Parentheses: insufficient sequence coverage; —*: failed reconstruction.
Lizard Island
| Sequence | Method | Dist. | Reg.↑ | Track↑ | Reproj.↓ | ||
|---|---|---|---|---|---|---|---|
| feb_gp1 | COLMAP | ref | 0.88 | 4.22 | 6.78 | 0.35 | -0.366 |
| Refractive COLMAP | fix | 0.88 | 4.22 | 6.77 | 0.36 | -0.453 | |
| Ours + COLMAP | fix | 0.96 | 5.85 | 7.75 | 0.34 | +0.017 | |
| mar_gp1 | COLMAP | ref | 0.99 | 6.72 | 8.35 | 0.48 | -0.304 |
| Refractive COLMAP | fix | 0.99 | 6.68 | 8.34 | 0.48 | +0.055 | |
| Ours + COLMAP | fix | 1.00 | 8.15 | 9.41 | 0.45 | +0.014 | |
| mar_gp2 | COLMAP | ref | 0.90 | 5.99 | 7.90 | 0.48 | +0.306 |
| Refractive COLMAP | fix | 0.90 | 5.98 | 7.88 | 0.48 | -0.057 | |
| Ours + COLMAP | fix | 1.00 | 6.99 | 9.25 | 0.47 | +0.017 | |
| sep_gp1 | COLMAP | ref | 0.79 | 5.10 | 9.19 | 0.57 | +0.082 |
| Refractive COLMAP | fix | 0.79 | 5.10 | 9.16 | 0.57 | -0.045 | |
| Ours + COLMAP | fix | 0.97 | 6.93 | 9.94 | 0.52 | -0.024 | |
| sep_gp2 | COLMAP | ref | 0.39 | (3.41) | (8.54) | (0.56) | (-0.029) |
| Refractive COLMAP | fix | 0.39 | (3.41) | (8.52) | (0.56) | (+0.068) | |
| Ours + COLMAP | fix | 0.83 | 6.79 | 8.84 | 0.49 | +0.053 |
Malaysia
| Sequence | Method | Dist. | Reg.↑ | Track↑ | Reproj.↓ | ||
|---|---|---|---|---|---|---|---|
| p1_s01 | COLMAP | ref | 0.95 | 23.32 | 5.70 | 0.37 | +0.188 |
| Refractive COLMAP | fix | —* | |||||
| Ours + COLMAP | fix | 0.99 | 27.37 | 6.01 | 0.37 | -0.068 | |
| p1_s02 | COLMAP | ref | 1.00 | 12.70 | 7.38 | 0.29 | +0.089 |
| Refractive COLMAP | fix | 1.00 | 12.82 | 7.19 | 0.57 | +0.694 | |
| Ours + COLMAP | fix | 1.00 | 13.14 | 8.57 | 0.32 | -0.000 | |
| p1_s03 | COLMAP | ref | 1.00 | 11.10 | 9.43 | 0.36 | +0.073 |
| Refractive COLMAP | fix | 1.00 | 11.41 | 8.94 | 0.68 | +0.105 | |
| Ours + COLMAP | fix | 1.00 | 10.61 | 12.01 | 0.40 | +0.031 | |
| p3_s02 | COLMAP | ref | 1.00 | 12.97 | 5.03 | 0.41 | -0.064 |
| Refractive COLMAP | fix | —* | |||||
| Ours + COLMAP | fix | 1.00 | 15.56 | 5.40 | 0.42 | -0.004 | |
| p3_s03 | COLMAP | ref | 1.00 | 7.30 | 7.45 | 0.35 | +0.097 |
| Refractive COLMAP | fix | 1.00 | 7.32 | 7.34 | 0.62 | +0.253 | |
| Ours + COLMAP | fix | 1.00 | 7.76 | 8.73 | 0.38 | +0.078 |
where the affine terms absorb residual offset and tilt, while captures the systematic radial curvature. We report the dimensionless curvature
where indicates a flat reconstruction and 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 Sec. V, this does not necessarily translate to a more accurate reconstructed geometry.
V. RESULTS
We run all experiments using calibrated in-air intrinsics and standard flat-port parameters of mm glass thickness and cm housing-to-camera distance. Results, reported in Table II and Figure 5, use the operational depth obtained as detailed in the ablation study (Sec. VI).
Lizard-Island

COLMAP (ref)
OURS + COLMAP
Malaysia
P3 S02

COLMAP (ref)

OURS + COLMAP
Fig. 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).
A. 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 . 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

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

(a) Malaysia (p1_s02)

(b) Lizard Island (feb_gp1)
Fig. 7: Depth ablation to select the operational depth used for refractive undistortion. We undistort images using a range of candidate values of and reconstruct the scene for each. Each plot shows the resulting distribution of normalized planarity residuals across the sequence.
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 .
Refractive COLMAP, with in Malaysia and 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 in Malaysia and in Lizard Island sequences.
B. 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 3D 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.
TABLE III: Generalization across 3D Reconstruction and VSLAM. Trajectory planarity ( ) and number of registered images (Reg.) with our corrected inputs within each backend.
| Input | DA3 [13] | MapAny [31] | ORB3 [33] | AFV [34] | DROID [35] | DPVO [36] | MASSR [37] |
|---|---|---|---|---|---|---|---|
| Reg.↑ | 1.00 | 1.00 | 0.20 | 1.00 | 1.00 | 1.00 | 1.00 |
| κ ≈ 0 | -0.032 | -0.045 | (-0.009) | +0.005 | +0.029 | +0.006 | -0.176 |
TABLE IV: 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.
| Method | Undist.↓ | Feat. Extraction↓ | Feat. Matching↓ | Mapping↓ | Total↓ |
|---|---|---|---|---|---|
| COLMAP (refined) | - | 7.69 | 1158.80 | 3499.74 | 4666.23 |
| Refractive COLMAP | - | 8.42 | 1129.88 | 2934.84 | 4073.14 |
| Ours + COLMAP | 7.75 | 7.03 | 1015.05 | 2242.73 | 3272.56 |
C. 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).
VI. ABLATION STUDIES
Reference depth. As shown in Sec. III-E, is strongly coupled with the flat-port parameter ; we therefore vary directly and evaluate its effect on reconstructed geometry, using planarity as a proxy for geometric fidelity.
Fig. 7 shows that geometric fidelity is highest (curvature is minimized) at specific operational values . A limitation of this analysis is that we fit a single 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 Fig. 6).
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.
VII. 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 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
[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] F. Chadebecq, F. 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.
[3] V. Raoult, P. A. David, S. F. Dupont, C. P. Mathewson, S. J. O'Neill, N. N. Powell, and J. E. Williamson, "Gopros™ as an underwater photogrammetry tool for citizen science," PeerJ, vol. 4, p. e1960, 2016.
[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. 12609–12616.
[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. 10005–10011.
[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. 12816–12823.
[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] 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. 10749–10756.
[9] A. Friedman, J. Monk, O. Pizarro, 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.
[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.
[11] J. Wang, M. Chen, N. Karaev, A. Vedaldi, C. Rupprecht, and D. Novotny, “VGGT: visual geometry grounded transformer,” in IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2025, pp. 5294–5306.
[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.
[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.
[14] A. Jordt-Sedlazeck and R. Koch, “Refractive structure-from-motion on underwater images,” in IEEE International Conference on Computer Vision, 2013, pp. 57–64.
[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.
[16] M. Kweon and J. Sattar, “Swimm3r: Splatting with medium-aware SfM for underwater 3D reconstruction,” arXiv 2608.00950, 2026.
[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.
[18] S. Xu, K. 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.
[19] A. Sedlazeck 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] 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.
[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.
[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] L. Magri and R. Toldo, “Bending the doming 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.
[24] M. R. James and S. Robson, “Mitigating systematic error in topographic models derived from uav and ground-based image networks,” Earth Surface Processes and Landforms, vol. 39, no. 10, pp. 1413–1420, 2014.
[25] C. Wu, “Critical configurations for radial distortion self-calibration,” in IEEE Conference on Computer Vision and Pattern Recognition, 2014, pp. 25–32.
[26] V. Chari and P. Sturm, “Multiple-view geometry of the refractive plane,” in British Machine Vision Conference, 2009.
[27] J. M. Lavest, G. Rives, and J. T. Lapresté, “Underwater camera calibration,” in European Conference on Computer Vision, 2000, pp. 654–668.
[28] T. Łuczynski, 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.
[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.
[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] N. Keetha et al., “MapAnything: Universal feed-forward metric 3D reconstruction,” in International Conference on 3D Vision, 2026.
[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.
[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.
[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.
[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. 16558–16569, 2021.
[36] Z. Teed, L. Lipson, and J. Deng, “Deep Patch Visual SLAM,” in European Conference on Computer Vision, 2024, pp. 424–440.
[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. 16695–16705.
[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] S. Mou, D. Tsai, and M. Dunbabin, “Reconfigurable robots for scaling reef restoration,” arXiv 2205.04612, 2022.
[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.
[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.