A picture through water has no viewpoint
There is a way of asking whether something is a projection that does not depend on knowing anything about the thing being projected.
A projection through a centre is exactly the statement that every ray of the picture passes through one point. Not approximately, not on average — one point, and the same one for every ray. So take the rays of a picture, continue them into the space where the objects are, and ask whether they meet. If they do, the picture is a projection and the meeting point is the centre. If they do not, it is not, and how badly they miss is the measurement.
Applied to a picture taken through water, the answer is that they miss by ten millimetres.
The fit, and the control beside it
The closest point to a set of lines is a small least-squares problem. For rays with unit directions passing through points , the point minimising the sum of squared perpendicular distances solves
which is a 3×3 symmetric system, solved here by elimination with partial pivoting. It refuses rather than returning a number when the bundle is degenerate — every ray parallel, so the closest point is at infinity — and that refusal is fired at in the site’s gate rather than trusted.
What the figure reports is the RMS miss and the worst miss, in metres of the world.
The number that makes those mean anything is the one computed beside them: the same fit, on the same angles, with the water taken away. That comes out at exactly zero, because the rays really do all pass through the eye. A measurement of 9.9 mm quoted without that control would be a number; quoted with it, it is a statement about the geometry.
This is the shape of every claim in this field, and it is worth naming once. The refracted case is always drawn against the pinhole case, computed by the same code, from the same scene. Anything else would be reporting the machinery.
What the rays actually do
The miss is not random scatter. The rays converge to a surface rather than to a point, and the surface has a name in optics — the caustic — and a shape that is easy to describe once the arithmetic is in view.
A ray leaving the pinhole at a small angle bends very little at the water surface and its backward extension, in the water, points at a virtual position close to below the surface. A ray leaving at a large angle bends a great deal, and its backward extension points at a virtual position much shallower. So the virtual positions the rays appear to come from are strung out along a curve, running from on the axis toward the surface at the rim. That curve is the same object as the apparent depth falling with the angle of view, seen from the other side: the pool’s apparent bottom is not a plane because the eye’s rays have no common origin in the water.
The least-squares fit hands back the point that is least wrong for all of them at once, which is somewhere in the middle of that curve, and the RMS miss is the spread of the curve about it. Pushing the surface further from the eye spreads the rays over a wider range of angles before they reach it and the miss grows; pulling it closer shrinks it. The slider is that.
The invariant
The miss in metres says the picture is not a projection. The next question is which of the theorems built on projections still hold, and there is a natural first one to ask, because the whole site rests on it.
Four collinear points in the world have a cross-ratio, and a projection preserves it exactly. It is the one quantity that survives, and almost everything checkable about a picture on this site is checked with it: the depth of a row of posts, the height of a building from a photograph, whether a taught construction depicts what it claims to.
One and a quarter per cent does not sound like much until it is put where such a number is used. A height recovered from a photograph is a cross-ratio; so is a depth along a receding row; so is the check that says a drawn box is a box. A per cent and a quarter on the invariant is a per cent and a quarter on the answer, at best, and worse where the ratio is near a singularity.
There is a second failure in the same figure, and it is the cleaner one. The four points stop being collinear. A projection sends lines to lines — that is not an accident of the definition, it is what makes vanishing points exist at all — so a set of four world points on one line whose images are 1.24 px off a straight line has been through something that is not a projection, and no further argument is needed.
Two failures of different kinds
It is worth separating what the two measurements say, because they are not the same complaint.
The cross-ratio being wrong says the map is not projective. That is a statement about the map as a function on the image: no homography, no change of camera, no rectification will repair it, because those are all projective and a projective map composed with a projective map is projective. The image would have to be warped by something else.
The rays having no common point says something stronger. It says the map is not a function of image position at all. The correct place to send a point depends on how far away that point is, so even a general non-projective warp of the image cannot repair it: the information needed is not in the picture. The near-and-far demonstration in the previous essay is the sharp form of this — two world points that share one image point in air land 102.2 px apart in water.
That distinction is why underwater photogrammetry is genuinely hard rather than merely fiddly. The standard fix is not to correct the image but to model the interface: put the water surface, the port, and the indices into the ray-tracing itself, and stop pretending there is a camera matrix. Everything above is the argument for why there is no shortcut.
What can still be measured, and how
None of this makes underwater measurement impossible; it makes it a different problem, and the shape of the different problem follows from the same arithmetic.
Ratios along one plane parallel to the interface still behave. Points at a single depth are all displaced by the same rule as a function of angle, so a homography fitted to that plane alone is a good approximation over a limited field. That is why a diver’s ruler laid flat on the bottom, photographed from directly above, gives usable measurements — the configuration removes both of the problems at once, the angles being small and the depth being constant.
Anything spanning depth does not. As soon as the scene has extent along the optical axis, the depth-dependence bites, and the only honest route is the ray-based one: trace forward through the modelled interface, and solve for the scene that reproduces the observed image.
And the interface has to be modelled, not fitted away. It is tempting to absorb the whole effect into a radial distortion coefficient, because the pattern looks radial and there is a well-known polynomial for that. It does look radial, and over one plane at one distance the fit is quite good. It is not a lens, and the giveaway is the near-and-far split again: fit the polynomial on a target at one metre and it is wrong at three, in a way a real lens never is.
Why the fit is least-squares and not an intersection
A small point about method, because it decides what the reported number means.
The obvious way to ask whether a bundle of rays meets is to intersect them pairwise and see how far apart the intersections are. That is a worse question than it looks. Two rays in three dimensions almost never intersect at all, so the pairwise version has to be softened into “closest approach”, and then the answer depends on which pairs are chosen — a bundle of eleven rays has fifty-five pairs and their closest approaches are spread over a range that includes the answer and a good deal else.
The least-squares common point asks the question the definition actually poses: is there a single point through which all of them pass? It produces one point and one residual, the residual is zero if and only if the bundle really is concurrent, and it degrades gracefully rather than by choosing a favourite pair.
It is also the same instrument the site already uses on the picture side. The vanishing point of a bundle of drawn edges is found by least squares over the image lines, with the residual reported, precisely so that a drawing whose edges do not meet has no vanishing point invented for it. Here the same idea is applied to rays in space instead of lines in the picture, and the same discipline follows: a figure that reported a “centre of projection” for a refracted picture without its residual would be inventing one.
The scale of the effect, and when to care
The miss in the figure is about ten millimetres, which is the size of a fingernail. Two things scale it.
The first is the standoff — how far the camera sits from the interface. The miss grows roughly in proportion, because a longer air path spreads the rays over a wider range of incidence angles before they reach the water. Pressing the port against the glass of an aquarium is a real mitigation and the reason people do it instinctively.
The second is the field of view. Everything here is a departure that grows with the angle off the optical axis, so a long lens through the same interface is far better behaved than a wide one. That is the opposite of the usual underwater advice, which is to shoot wide to reduce the water between camera and subject — the two considerations pull against each other, and which wins depends on whether the picture is being looked at or measured.
Both scalings have the same source. The bend at the surface is , which is zero on the axis and grows monotonically with the angle. Everything in this field is that function, integrated over whatever path the configuration provides.
The gate this essay forced
There is a piece of machinery that had to be built before this essay could be written, and it is worth stating because it is a piece of the site’s furniture rather than of its geometry.
Every perspective figure here ends with a strip stating the distance the picture is correct from. That strip is the site’s one non-negotiable ornament: a perspective picture is a projection from a point, the point is computable, and stating it is what separates a figure that shows a construction from a figure that makes a claim.
Half the figures in this field cannot print it. A refracted picture has no station point — that is the whole finding — and putting a number there would be inventing one. So those figures print the miss instead, and the site’s gate now asks, of every generator, either for a stated viewing distance or for a declaration that the figure has none, backed by a measurement showing that it has none. A figure cannot simply omit the strip and be quiet about it.
That is a small thing and it is the kind of small thing this fleet keeps finding matters. The failure mode being closed is not a wrong number; it is an absent one, and every gate here asks whether a label fits, contrasts and stays inside the frame, and none of them asks whether it exists.
The same question, asked of a drawing
There is a version of this test that has nothing to do with water, and it is worth stating because it is what makes the field’s instrument general rather than special-purpose.
Hand somebody a hand-made perspective drawing and ask whether it is a projection of anything. The rays are not available — there is no scene and no camera — but the drawn edges are, and bundles of edges that are supposed to be parallel in the world must meet at a point in the picture. Fit each bundle by least squares, report the residual, and the drawing answers the question about itself. That is precisely what the site’s recovery does, and it is why the recovery reports its bundle residuals rather than only its focal length: a drawing whose bundles do not meet has no vanishing points to hand to the recovery, and computing a “least-squares vanishing point” for lines that do not meet would be inventing a number.
So there are two instruments with the same shape, one working in the picture and one in the world. In the picture: do the drawn lines that should be concurrent meet, and by how much do they miss? In the world: do the rays that should be concurrent meet, and by how much do they miss? A hand drawing usually fails the first by a few pixels because the illustrator was working by eye. A refracted photograph passes the first — its lines are near enough straight to fit — and fails the second decisively.
That asymmetry is the useful part. It says the failure of a refracted picture is not visible in the picture. Nothing about the drawn marks announces it, which is why the effect is invisible in every underwater photograph anyone has looked at and shows up immediately in any attempt to measure one.
Where this leaves the premise
The site’s premise is that every picture states the point it is correct from. This field contains pictures for which there is no such point, and rather than weaken the premise, that sharpens it.
A picture with a station point is one whose rays meet. That is a property a picture either has or does not, it is testable from the rays alone, and the test has now been run on a case where the answer is no. What the premise says, properly stated, is: when a picture is a projection, the point it is correct from is a computable fact about it and should be stated — and the essays in this field are the ones that had to check the antecedent first.
The next essay is the surprise on the other side. A pane of glass with air on both sides moves every point of the picture and moves no vanishing point at all, so a camera recovered from a picture taken through a shop window is exactly the camera that took it — out of a picture in which nothing is where it was.