The ball at the edge of the frame
Worth reading first: The circle whose centre moves · The conic a circle becomes · What a projection destroys.
A billiard ball is on a table and a camera photographs the whole table at once. In the middle of the picture the ball is drawn as a circle. At the edge it is not.
That much is easy to check and it is usually blamed on the lens. It is not the lens. The camera here is an exact pinhole with no glass in it anywhere, every point of every figure is projected through one centre, and the ball at the edge still comes out as an ellipse.
The site has been near this before and stopped one step short. Wide angle is not distortion measures how much wider a sphere is drawn at the edge of a wide frame, and answers the oldest complaint about wide-angle photographs by pointing at the reader’s own position. That is a claim about size.
This is a claim about shape, and about a second thing that turns out to be there when the shape is computed rather than assumed.
What a sphere’s outline actually is
Start with the object rather than the picture.
A sphere is a quadric — a surface whose points satisfy one quadratic equation, written as a symmetric four-by-four matrix in homogeneous world coordinates, exactly as a conic is a symmetric three-by-three in homogeneous picture coordinates. A cone, a cylinder, an ellipsoid and a hyperboloid are the same kind of object with different entries.
The outline of a quadric, seen from a point, is made of the rays that graze it — the rays whose line touches the surface rather than cutting it. Where those rays touch, they trace a curve on the surface, and that curve is the thing whose image is the outline.
That is the whole of it: the grazing curve is a plane section, a plane section of a quadric is a conic, and the image of a conic is a conic. So the outline of a sphere is a conic, always, and the only question is which one.
The circle on the ball is not the ball’s equator. It is the circle at which the ball turns away, and its plane is nearer the eye than the centre is. That circle is the same object the edge of a shadow is drawn on the object computes for a lamp, arrived at here for an eye, and the two agree on the case they share.
The one line of algebra
Computing the outline point by point is honest and slow. There is a route with no sampling in it, and it is worth stating because it is what turns “the outline is a conic” from a description into an instrument.
Write the sphere as the four-by-four matrix , the camera as the three-by-four matrix , and take the duals of both. A dual quadric is the set of planes tangent to the surface; a dual conic is the set of lines tangent to the curve. Then
and the outline conic is the adjugate of that. Three matrix products, no geometry, no case distinction between a ball, a pipe, a cone and a dish.
The reason the duals are the right objects is the reason the outline is made of tangent rays rather than of chosen points: what the eye sees of a solid is which planes graze it, and a dual quadric is exactly a list of those.
Which conic, and where
Now the picture. On the axis, the outline is a circle exactly. Off the axis it is an ellipse, longer along the radius from the centre of the picture than across it, and the elongation grows with the angle.
The direction of the elongation is worth stating because it is the opposite of what a lens fault would give. A radial stretch is what a flat picture surface does: the picture plane is further from the eye at the edge than at the centre, and a solid subtending a fixed angle covers more of the sheet the more obliquely the sheet is met. It is edge stretch again, applied to a shape rather than to a size, and it is correct from the station point in exactly the same way.
The second thing, which is the one nobody expects
The centre of the drawn ellipse is not the image of the centre of the ball.
The reason is short and it is a reason this site has already met. The centre of a conic is defined by midpoints — it is the point every chord’s midpoint arrangement is symmetric about — and a projection does not preserve midpoints. The near half of the grazing circle is magnified more than the far half, so the drawn figure is not symmetric about the image of the point the real figure was symmetric about.
Measured, on the ball at the edge of a ninety-two degree frame: the two centres are a few pixels apart, which is a few per cent of the outline’s own semi-axis. That is small and it is not nothing, and it matters in exactly one situation — when somebody is measuring a ball’s position by finding the centre of its drawn outline, which is the ordinary way to do it.
How big the two effects are, in the pictures people take
Both numbers are functions of one angle, so they can be quoted once and read off for any frame.
At ten degrees off the axis — which is most of an ordinary picture — the elongation is under a hundredth and the two centres are a quarter of a pixel apart on a canvas this wide. Nothing whatever follows. At twenty degrees the elongation is a twentieth. At forty it is a fifth, and the gap between the centres has reached a twentieth of the outline’s own semi-axis, which on a ball drawn thirty pixels across is a pixel and a half.
Those are the angles a wide lens reaches in the corners of an ordinary frame, so the effect is not exotic. What makes it invisible is that a person looking at the picture is almost never looking for a circle: the ball is drawn among other things that the same surface is stretching by the same amount, and a scene stretched consistently reads as a scene.
The measurement is a different matter. A ball fitted to its own drawn outline and reported by that outline’s centre is being reported at a position that is systematically outward — away from the centre of the picture, always, never toward it — by an amount that grows with the field angle. A bias with a sign is worth more attention than a scatter of the same size, because averaging removes the second and not the first.
The control, and it is a different surface
Every claim above is about a flat picture surface. The test that says so is to change the surface and leave everything else alone.
On a sphere, the outline of a ball is a circle, everywhere, because a sphere has no direction that is special and a flat sheet has an axis. Nothing about the ball has changed; the whole of the effect belongs to the choice of surface, which is this site’s standing position on almost everything in the curved field.
What it takes to get the ball back
A shape recovered from a picture is worth having only if the recovery is stated. Here it is short, and it is a good illustration of what a single view can and cannot do.
From the drawn conic and the camera’s own intrinsics, the tangent cone through the eye is recoverable exactly — it is the cone whose section by the picture plane is that conic. The direction to the ball is then the cone’s axis, and the half-angle of the cone gives the ratio of the ball’s radius to its distance. What is not recoverable is either one of those two separately, which is the single view’s usual refusal: one picture gives shape and never size.
That last difference is the one worth carrying. A photographed circle leaves a two-fold pose ambiguity and a free distance — two congruent circles in planes twenty-three degrees apart draw the same conic. A photographed sphere leaves only the distance, because a sphere is the same from every direction, so the only thing a picture of one can fail to say is how big it is.
There is a practical corollary that follows straight from that asymmetry, and it is why spheres are used as calibration targets and circles mostly are not. A photographed ball tells the truth about its direction and lies about nothing, once the conic has been fitted properly; a photographed circle has to be told which of its two poses it is in before it says anything at all. The ball’s one refusal — the scale — is the refusal every single view makes about everything, and the circle’s extra one belongs to the circle.
What this does not say
It says nothing about a lens. Real photographs of balls at the edge of a wide frame have both effects and a third one on top, and separating them needs the lens model that fitting a lens from straightness alone recovers. The pinhole’s share is the part computed here and it is the part that does not go away with better glass.
It says nothing about whether a viewer notices. The elongation is correct from the station point and a reader standing there sees a ball; a reader standing further back sees an elongated one, and whether that reads as wrong is a fact about seeing rather than about projection.
And it does not make the outline useless for measurement. It makes the outline’s centre the wrong thing to measure. The conic is five numbers and every one of them is available; fitting the conic and taking its tangent cone is exact, and taking its centre and calling that the ball is a small error that nothing in the picture announces.
The transferable form
Every statement this site has made about a conic in a plane has a partner about a quadric in space, and until this essay none of the partners had been made.
A curve in a plane and a surface in space are the same kind of object one dimension apart, so a result about one is a question about the other — and the question usually has an answer, in the same words.
The pole and polar of a conic becomes the pole and polar plane of a quadric. Five points fixing a conic becomes nine fixing a quadric. The circle whose centre moves becomes the ball whose centre moves. Each of those is a sentence this site had already written with one word changed, and the changed word is the whole of the work.
The one place the transfer stops is worth knowing about too, and it is the next rung: a singular quadric — a cone, a cylinder — has a dual that is rank one, and the one-line outline formula loses the answer entirely while the point-by-point route keeps it. Two routes agreeing is the site’s habit; two routes where one has a domain and the other does not is the more useful thing to know.
What links here
Computed from the collection, not written here: the essays that point at this one.
Reads more easily once this is understood
Essays that name this one as worth reading first.
Shares its objects with
Essays that name at least two of the same things, and that neither author linked.
- A centre and a measure are exclusive — both name centre of projection, demonstration, midpoint
- A lamp lights less than half a ball — both name centre of projection, conic, demonstration
- A straight line in a scroll is a hyperbola — both name conic, demonstration, picture surface
- A texture does not interpolate on the page — both name camera matrix, demonstration, midpoint
- A wide field on a small screen — both name demonstration, edge stretch, field of view
- Conformal is not undistorted — both name demonstration, field of view, picture surface
Named objects
A flat tag is an object no other essay names yet.
Camera matrixcentre of projectionConicContour generatorDemonstrationDual quadricEdge stretchfield of viewImaged circleMidpointPicture surfacePolar planeQuadric