Refrax: flat-port refraction removal
Warps an underwater image taken through a flat-port housing into a refraction-free pinhole image, so it can be used directly by tools such as COLMAP. Every pixel is traced through the air–glass–water interfaces onto a scene plane at depth z0, and the resulting map is inverted.
Code · Image-Space Refraction Correction for Underwater 3D Reconstruction: Warping Flat-Port Views into Pinhole Perspective
Loading Python in your browser… the first visit takes about 30 s.