What survives

The ball at the edge of the frame

A ball photographed near the edge of a wide picture is not drawn as a circle. It is an ellipse, longer along the radius from the centre of the picture than across it, and the centre of that ellipse is not the image of the centre of the ball. Both are properties of the flat sheet the picture is on, and an exact pinhole produces both.

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.

Five equal balls, equally far awayEvery ball here is 0.40 m across the radius and 4.60 m from the eye, so the arrangement singles out no one of them. On the axis the outline is a circle to 2.7e-15 of its own width; at 42.4° off it is an ellipse 1.358 times longer along the radius from the centre of the picture than across it, and its centre is 4.28 px from the image of the ball's own centre — 8.0% of the outline's own semi-axis. The outline is computed as C = adj(P adj(Q) Pᵀ), three matrix products, and drawn from that rather than traced.correct from 8 cm, at 160 mm widestretch 1.358 · centres 4.28 px
Fig. 1 Five balls of the same radius, all of them the same distance from the eye, arranged on a circle about it so that the arrangement singles out none of them. The outlines are computed from the balls and drawn; nothing was traced off a silhouette.

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.

Seven identical spheres across a 84° frameThe outer sphere images 27% wider than the central one. That is what a correct rectilinear projection does, and it vanishes if the picture is viewed from 9 cm.54 px69 px84° across27% wider at the edge
Fig. 2 The earlier measurement: seven identical spheres, and the one at the edge drawn 27% wider than the one in the middle. What it does not say is what shape any of them is.

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.

The eye's polar plane cuts a sphereThe curve on the surface whose tangent plane passes through the eye — the contour generator — is exactly where the surface meets the **polar plane** of the eye, Q x. Here it is drawn as a plane and a curve rather than as a silhouette traced in the picture. Every point of it projects onto the conic the duals predict, to 1.5e-20 of the conic's own scale, over 242 points.correct from 18 cm, at 160 mm wideoutline from the duals · ellipse
Fig. 3 The curve on the surface, and the plane it lives in. The eye’s polar plane with respect to the quadric contains every point whose tangent plane passes through the eye, so the curve is a plane section — and a plane section of a quadric is a conic.

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 eye's polar plane cuts a sphereThe curve on the surface whose tangent plane passes through the eye — the contour generator — is exactly where the surface meets the **polar plane** of the eye, Q x. Here it is drawn as a plane and a curve rather than as a silhouette traced in the picture. Every point of it projects onto the conic the duals predict, to 1.2e-20 of the conic's own scale, over 242 points.correct from 18 cm, at 160 mm wideoutline from the duals · ellipse
Fig. 4 The eye moved round. The plane moves with it — the polar plane depends on where the eye is and on nothing else — and the section it cuts is a different circle on the same ball.

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 shadow's edge and the drawn outlineTwo circles on the same ball. One is where the surface turns away from the lamp — it is the curve whose shadow is the edge of the cast shadow, and at 2.6 m it lies 80.0° from the lamp's direction rather than the 90° of a great circle. The other is where the surface turns away from the eye, at 84.0°. They are 88.9° apart and they coincide only when the lamp is at the eye, which is the arrangement in which no shadow is visible.88.9° between the two circlescorrect from 23 cm, at 160 mm widelamp 2.6 m · shadow circle at 80.0°
Fig. 5 The same ball with two of these curves on it — one belonging to the lamp and one to the eye. Neither is painted on the ball and neither is the equator; each belongs to a point.

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 QQ, the camera as the three-by-four matrix PP, 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

C=PQPTC^{*} = P\,Q^{*}\,P^{\mathsf T}

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.

The one-line formula and the traced curve, over a decade of distanceC = adj(P adj(Q) Pᵀ) against the contour generator traced on the surface and projected point by point, for a sphere and an ellipsoid, with the eye taken from 2.1 m out to 34 m. The two routes agree to at least 19 decimal places everywhere and the curve is flat, which is what an identity looks like rather than an approximation. The cone and the cylinder are not on this plot because the dual route has nothing to compare: its outline conic comes back rank 1, and the adjugate that would take the point conic back out of it is 1.4e-9 of the matrix's own size.1919.52020.5102030distance from the eye to the surface (m)decimal places the two routes agree tosphereellipsoidworst 19 placessingular quadrics have no dual conic
Fig. 6 The two routes against each other, with the eye taken from two metres out to thirty-four. The traced curve lands on the conic the duals predict to nineteen decimal places everywhere, and the curve is flat — which is what an identity looks like rather than an approximation.
The site's camera, written as the matrix multi-view geometry needsK holds the focal length and the principal point; R's rows are the camera basis — right, down, forward — and t is −R·eye. Projecting all 44 scene points through P = K[R|t] and through the camera itself gives the same picture to 1.8e-13 px. Everything in this field rests on the two being one camera, so it is measured rather than assumed.K — focal length and principal point739.90345.00739.9200.0001.0000R — right, down, forward0.980000.1991-0.0182-0.99580.08970.1982-0.0915-0.9759t = −R·eye00.99586.6497focal 739.85 px · 50.0° acrossP projects 44 points where the camera does, to 1.8e-13 pxcorrect from 17 cm, at 160 mm wide50° across
Fig. 7 The camera as a matrix, checked against the camera’s own projection routine before any of the above is believed. The two agree to the last bit, which is what makes the outline formula a second route rather than a restatement.

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.

A ball 36 degrees off the axisOne ball of radius 0.40 m, 4.60 m from the eye, carried across the picture on a circle about the eye so that its distance never changes. At 36.5° off the axis its outline is 1.246 times longer along the radius from the centre of the picture than across it, and the centre of that outline is 2.91 px from the image of the ball's own centre — 6.5% of the outline's own semi-axis. Both numbers are zero on the axis and neither is a lens: the outline is computed as C = adj(P adj(Q) Pᵀ) from an exact pinhole.2.91 px apartcorrect from 8 cm, at 160 mm widestretch 1.246 · centres 2.91 px
Fig. 8 One ball, carried across the picture on a circle about the eye so that its distance never changes. At thirty-six degrees off the axis its outline is a quarter longer radially than it is across.
A ball 45 degrees off the axisOne ball of radius 0.40 m, 4.60 m from the eye, carried across the picture on a circle about the eye so that its distance never changes. At 45.0° off the axis its outline is 1.420 times longer along the radius from the centre of the picture than across it, and the centre of that outline is 5.12 px from the image of the ball's own centre — 8.7% of the outline's own semi-axis. Both numbers are zero on the axis and neither is a lens: the outline is computed as C = adj(P adj(Q) Pᵀ) from an exact pinhole.correct from 8 cm, at 160 mm widestretch 1.420 · centres 5.12 px
Fig. 9 The same ball further out. Nothing about the ball changed between this figure and the last one, and nothing about its distance from the eye changed either.
Both of them grow with the angle, and neither is the lensThe elongation of a ball's outline and the gap between the centre of that outline and the image of the ball's centre, swept from the axis to 46.8° off it. At the edge the outline is 1.467 times longer radially than across, and the two centres are 9.30% of the semi-axis apart. Both are properties of a flat picture surface; the camera here is an exact pinhole with no lens in it at all.11.201.40010203040angle off the optical axis (degrees)stretch, and 1 + centre gap as a fraction of the semi-axisstretchcentre gapball of radius 0.74 mstretch to 1.483
Fig. 10 The elongation against the angle off axis, computed from the conic rather than measured off the drawing. It is 1.000 on the axis and 1.467 at forty-seven degrees off it.

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.

A sphere 40° off the axis of a 96° frameOn the paper it is an ellipse 1.309 times as long radially as across, against the 1/cos θ of 1.305 the geometry predicts. From the station point every point of that same ellipse is 5.0000° from its axis, and the spread across 720 of them is 4e-13° — it is a circular cone after all.drawn: 1.309 : 1subtended at the station point: 1.000000000 : 1the faint circle is the mean radius, for comparisonthe drawn centre sits 3.42 px from the axis's own mark
Fig. 11 The same effect on a flat card: correct from the point the picture is a projection from, and visibly wrong from anywhere else. A reader who stands where the picture says has nothing to complain about.

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.

A ball 42 degrees off the axisOne ball of radius 0.40 m, 4.60 m from the eye, carried across the picture on a circle about the eye so that its distance never changes. At 42.4° off the axis its outline is 1.358 times longer along the radius from the centre of the picture than across it, and the centre of that outline is 4.28 px from the image of the ball's own centre — 8.0% of the outline's own semi-axis. Both numbers are zero on the axis and neither is a lens: the outline is computed as C = adj(P adj(Q) Pᵀ) from an exact pinhole.correct from 8 cm, at 160 mm widestretch 1.358 · centres 4.28 px
Fig. 12 The two marks in the middle of the outline. One is where the ball’s own centre lands; the other is the centre of the ellipse drawn round it. Off the axis they are different points.

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.

A circle on the ground, and the two points that get called its centreThe image of the centre and the centre of the image ellipse are 21.1px apart — 5.1% of the ellipse's own width.centre of the ellipseimage of the centrecorrect from 22 cm, at 160 mm wideoffset 21.1 px
Fig. 13 The flat version of the same defect, written earlier here: a circle on the ground, the image of its centre, and the centre of its image, which are two different points. The ball is that statement one dimension up.
The midpoint of one segment, under both familiesThe parallel projection places it exactly halfway (0e+0 px out). The perspective projection places it 22 px away from halfway, 7% of the drawn length.halfway along the drawn linethe actual midpointcorrect from 26 cm, at 160 mm wide22 px apart
Fig. 14 The underlying fact, stated on a single segment. A parallel projection keeps the midpoint exactly and a projection through a centre does not, and every consequence above is that one line.

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.

Five equal balls, equally far awayEvery ball here is 0.40 m across the radius and 4.60 m from the eye, so the arrangement singles out no one of them. On the axis the outline is a circle to 1.8e-14 of its own width; at 42.4° off it is an ellipse 1.358 times longer along the radius from the centre of the picture than across it, and its centre is 3.22 px from the image of the ball's own centre — 8.0% of the outline's own semi-axis. The outline is computed as C = adj(P adj(Q) Pᵀ), three matrix products, and drawn from that rather than traced.correct from 6 cm, at 160 mm widestretch 1.358 · centres 3.22 px
Fig. 15 A wider frame. Both effects grow, and the ball nearest the edge is the one a person would most want to measure and the one the measurement is worst on.

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.

Both of them grow with the angle, and neither is the lensThe elongation of a ball's outline and the gap between the centre of that outline and the image of the ball's centre, swept from the axis to 46.8° off it. At the edge the outline is 1.467 times longer radially than across, and the two centres are 9.30% of the semi-axis apart. Both are properties of a flat picture surface; the camera here is an exact pinhole with no lens in it at all.11.201.40010203040angle off the optical axis (degrees)stretch, and 1 + centre gap as a fraction of the semi-axisstretchcentre gapball of radius 0.40 mstretch to 1.467
Fig. 16 The two curves for a narrower frame. Both are still there and both are smaller, and the shape of the two curves does not change — they are the same functions of the angle off axis, sampled over a shorter range.

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 it is a circle wherever it isThe same ball drawn on a spherical picture surface instead of a flat one, carried from 1.4 m out to 11 m and across 68° of field as it goes. Its outline is out of round by at most 8.4e-13° of arc anywhere on that sweep, and its angular radius agrees with asin(R/d) to 9.9e-13°. Nothing about the ball changed between this figure and the last one: a sphere has no direction that is special and a flat sheet has an axis, and the stretch belongs to the surface.102030246810distance from the eye to the ball (m)angular radius of the outline (degrees)out of round by at most 6.2e-13°a spherical picture surfaceasin(R/d) to 6.1e-13°
Fig. 17 The same balls at the same field angles, drawn on a spherical picture surface. The outline is a circle wherever the ball is — out of round by four parts in ten thousand million million of a degree — and its angular radius is asin(R/d) exactly.

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.

One room at 120° across, cast onto six picture surfacesEach panel holds the same angular width of the same scene. The flat plane keeps every straight line straight and pays for it at the edges; the five curved surfaces bend the ground lines by 3.5% to 6.0% of their own length.plane — bend 0.0%cylinder — bend 6.0%stereographic — bend 3.5%equidistant — bend 4.5%equal-area — bend 5.1%equirect. — bend 5.7%120° across in every panelsame scene, same angle, six surfaces
Fig. 18 The six surfaces this site casts pictures onto, side by side. Each of them does something different to a ball, and the flat one is not the neutral member of the family — it is the member that keeps straight lines straight and pays for it here.
The same 100° view, projected onto a plane and onto a cylinderOn the plane every straight line stays straight (1e-13 px of bend) and the edges stretch; on the cylinder the stretch is even and straight lines bow by up to 652 px.flat picture plane — straight lines stay straightcylindrical picture surface — even stretch, bowed linesone scene, two picture surfacesneither is the distorted one
Fig. 19 The price a flat surface charges, measured on the quantities a picture surface can change. The ball’s outline is one more entry on this list rather than a new phenomenon.

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.

Two scenes 137× apart, and the one picture they both makeEverything in the second plan — the room, the eye's distance, the eye's own height — is 137 times the first. Every projected vertex agrees to 1e-13 px. A single photograph has no scale, and this is what that means.a room 2.8 m across, eye 1.6 m up1 mthe same plan, 137× bigger137 midenticalpicturesthe picture — both scenes, drawn twice, one on top of the otherlargest disagreement 1e-13 px over 8 verticesone length has to come from outside the picture
Fig. 20 The general form of that refusal. A single view fixes the geometry of a scene up to one overall scale, whatever the scene is made of, and a ball is not an exception to it.
Three circles on one ground, and the three conics they drawThe same camera and the same ground. The only thing that differs between the rows is how far the nearest point of the circle is from the plane through the eye — 4.95 m, 0.37 m, -2.98 m — and that alone decides whether the picture is an ellipse, a parabola or a hyperbola.circlenearest point, past the eye planeB² − 4ACthe picture isradius 4.00 m, wholly beyond the eye+4.951 m-1.61e-1ellipseradius 8.62 m, just touching it+0.372 m-1.58e+0ellipseradius 12.00 m, crossing it-2.978 m1.65e-1hyperbolaone camera, 34° across, eye 8.78 m from the centreellipse · ellipse · hyperbola
Fig. 21 The plane version, for comparison: a circle in the world and the conic it becomes. A circle’s image loses its pose two ways over; a sphere’s loses only the scale, because a sphere has no pose to lose.

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.

Four camera pairs fit the same two pictures; one of them is in frontThe essential matrix recovered from 44 correspondences decomposes into two rotations and two translation signs. All four satisfy every epipolar constraint exactly. Counting how many points each puts in front of both eyes separates them at once: 44 against 0, 0, 0. The winner is the true pose to 0.0e+0°; the nearest rejected candidate is 180° away — and one of the three shares the winner's rotation exactly, differing only in walking the baseline backwards.points in front of both camerasR₁, t0 of 44180° from the truthR₁, t reversed0 of 44180° from the truthR₂, t44 of 44chosenR₂, t reversed0 of 44180° from the truththe chosen pose is the true one to 0.0e+0°cheirality, not algebra, picks it
Fig. 22 The circle’s ambiguity, drawn: two different poses draw one conic, and a ball has nothing corresponding to it.

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.

One reconstruction, drawn at its own scale and at 3.4×The courtyard recovered from two pictures, seen from above. Every pairwise distance ratio matches the world's to 6.3e-14, so the shape is exact. The size is not determined at all: the right-hand plan is the same reconstruction 3.4 times larger and fits the same two pictures equally well. One measured length in the scene — here 0.800 m — fixes it, and nothing in the pictures can.as recovered0.308 across× 3.4 — same two pictures1.046 acrossworst ratio deviation 6.3e-14size fixed only by a supplied 0.80 m
Fig. 23 The general shape of what one view gives back: everything up to a similarity, which is to say a shape with no size. Whatever is in the scene, that is the ceiling, and the ball reaches it.

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.

A rectangular grid through a lens with k₁ = -0.32The faint grid is what a pinhole would have drawn. The solid one is the same grid through barrel distortion: the centre line is untouched, and the outermost bows by 17.8 px.principal pointk₁ = -0.320, k₂ = 0.110 — barrel distortioncentre line 0e+0 px of sag, outermost 17.8 px
Fig. 24 The other contribution, for scale. A lens bends straight lines and a pinhole does not, so the two effects can be told apart by looking at something straight in the same frame.

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.

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