Surfaces that are not flat

Where a surface spends its pixels

A picture surface is a budget before it is anything else, and the six named ones distribute the same marks over the same directions quite differently. The flat plane lays 25.0 times as many on a square degree at the edge of a 70° field as on one at the centre; the equal-area fisheye is flat to 8.3e-6 per cent.

Worth reading first: When the picture surface is not flat · Every fisheye is a different rule · The cylinder, and the price of going all the way round.

No surface keeps everything settles what the six named surfaces preserve: straightness, angle, area, and the fact that no surface holds all three. Every entry in that comparison is about fidelity — how much a surface distorts what it draws.

None of them is about price. A picture surface is a budget before it is anything else: a finite number of marks, spread over a set of directions, and the only decision it makes is where to put them. Two surfaces can be equally faithful in the sense of that earlier comparison and spend their marks so differently that one of them has no resolution left where the other has plenty.

This essay asks the second question. The answer is a factor of twenty-five between the extremes, at a field of view a real camera reaches.

On the flat plane, the same 510 square degrees are drawn ×57.68 larger at the edge than at the centreA room cast onto the flat plane, 150° across. The floor's rings are at equal angles below the horizon rather than at equal distances, and the posts stand at equal azimuths, so nothing in the drawn spacing is perspective foreshortening — it is the surface's spend. The faint mesh over it holds cells of exactly 510 square degrees each; the outermost are ×57.68 the area of those on the axis. The stated distance is exact for the flat plane and is where this picture's centre is correct for a curved one, because every surface here agrees with the plane to first order on the axis.correct from 2 cm, at 160 mm wideplane · ×57.68 edge to centre
Fig. 1 A room cast onto the flat plane at 150° across, with a mesh over it whose cells each hold exactly 510 square degrees of world. The floor’s rings are at equal angles below the horizon and the posts at equal azimuths, so none of the drawn spacing is perspective foreshortening of the usual kind — it is the surface’s spend. The outermost cells are ×57.68 the area of those on the axis. The stated distance is exact for the flat plane and is where a curved surface’s picture would be correct at its centre.

The comparison has to hold something fixed, and it is not the focal length

Before any number is quoted, the comparison needs a footing, and the obvious footing is wrong in a way that is worth measuring rather than asserting.

The natural thing to say is “compare the six at the same focal length”, or equivalently at the same image size. Do that and the pictures are not even the same size.

At one focal length the six pictures differ in size by ×5.74 before anything is comparedTwo ways of putting six picture surfaces on the same footing, and only one of them compares distributions. Shown here: hold the focal length fixed, and the pictures are not even the same size — the flat plane's covers ×5.74 the area of the equal-area fisheye's over the identical 70° cone of directions, so every per-square-degree number read off them is that factor wearing a disguise. The bars are quoted against the smallest. This is the control the density comparison rests on: a version of it that did not hold the total fixed would be measuring the image width.picture area at one focal length, against the smallestplane×5.7423.72 f²cylinder×2.349.66 f²stereographic×1.496.16 f²equidistant×1.134.69 f²equal-area×1.004.13 f²equirect.×1.245.11 f²the same 70° cone on every surface×5.74 largest to smallest
Fig. 2 The control the whole essay rests on. Holding the focal length fixed, the six pictures of the identical 70° cone of directions differ in area by ×5.74 — the flat plane’s picture covers 23.72 f² against the equal-area fisheye’s 4.13. So a per-square-degree number read off pictures put on that footing is that factor of 5.74 wearing a disguise, and a comparison built that way would be measuring the image width.

There is a second and sharper reason the focal-length footing says nothing. At a fixed focal length, five of the six surfaces score identically on the optical axis — 3.046 × 10⁻⁴ marks per square degree per focal length squared — because every surface here agrees with the plane to first order at the centre. A comparison on that footing has nothing at all to say about the axis, and everything it says off-axis is the area ratio again.

So the footing used throughout is different: the same number of marks, over the same cone of directions, for every surface. The gate keeps the wrong implementation, runs it, and requires it to fail, which is the only way to know that the right one is doing something.

The same world, thirty-six times over

With the footing fixed, the cleanest statement of the result is not a number at all. Divide the cone into cells of equal solid angle and draw them.

The same 377 square degrees, 36 times over: the plane spends ×25.0 more at the edge than at the centreSix picture surfaces, each carrying a mesh of 36 cells that hold exactly the same solid angle — 377 square degrees apiece, over a cone 70° from the axis. Every panel is scaled to its own width, so the six hold the same world and the same number of marks and differ only in where the marks went. A cell's drawn size is how many marks that surface spent on it: the flat plane's outer cells are ×25.0 its innermost, the equal-area fisheye's are all one size to 8.3e-6 per cent, and the equidistant fisheye — the one sold as linear in angle — sits at ×1.30.plane — ×24.99 edge to centrecylinder — ×2.40 edge to centrestereographic — ×2.22 edge to centreequidistant — ×1.30 edge to centreequal-area — ×1.00 edge to centreequirect. — ×1.34 edge to centre36 cells of 377 square degrees, out to 70°equal-area ×1.00 · plane ×25.0
Fig. 3 Six surfaces, each carrying a mesh of thirty-six cells holding exactly the same solid angle — 377 square degrees apiece, over a cone 70° from the axis. Every panel is scaled to its own width, so the six hold the same world and the same number of marks and differ only in where the marks went. A cell’s drawn size is how many marks that surface spent on it. The flat plane’s outer cells are ×25.0 its innermost; the equal-area fisheye’s are all one size to 8.3 × 10⁻⁶ per cent; the equidistant fisheye, the one sold as linear in angle, sits at ×1.30.

Every cell in every panel is the same amount of world. What differs is the area each surface gives it, and that area is the resolution: a cell drawn twice as large has twice as many marks in it and records twice as much detail about the same piece of sky.

Read that way the flat plane’s behaviour stops being a curiosity about wide lenses and becomes the plainest fact about it. A rectilinear picture is a surface that spends almost nothing at the centre and lavishes marks on its corners — which is exactly backwards from what a photographer wants, since the subject is usually in the middle.

The distributions, as curves

The mesh shows the shape. The curve puts numbers on it.

One budget, six distributions: 12.8 marks per square degree on the plane's axis against 73.7 on the equal-area fisheye'sHow many of a picture's marks land on each square degree of world, plotted against the angle off the optical axis. Every surface is given the same 1 million marks spread over the same 70° cone, so the six curves enclose the same area and the comparison is about shape alone. The flat plane starts lowest at 12.8 and ends highest at 321, a factor of 25.0; the equal-area fisheye is the horizontal line at 73.7, flat to 8.3e-6 per cent. The sweep is at 45° to the axes, because a horizontal sweep runs along the cylinder's own equator where its area scale is exactly one and it would look flat too.11.5022.500204060degrees off the optical axismarks per square degree, at 1 million marks over the whole 70° coneplane ×24.99cylinder ×2.40stereographic ×2.22equidistant ×1.30equal-area ×1.00equirect. ×1.341 million marks over the same 70° cone, on all sixequal-area flat to 8e-6%
Fig. 4 Marks per square degree against the angle off the optical axis, with every surface given the same one million marks over the same 70° cone — so the six curves enclose the same area and the comparison is about shape alone. The flat plane starts lowest at 12.8 and ends highest at 321, a factor of 25.0. The equal-area fisheye is the horizontal line at 73.7, flat to 8.3 × 10⁻⁶ per cent. The sweep runs at 45° to the axes, because a horizontal sweep would follow the cylinder’s own equator, where its area scale is exactly one and it would look flat too.

The 45° detail is worth pausing on, because it is the kind of thing that turns a measurement into a statement about the instrument rather than the subject. The cylinder is uniform in azimuth by construction; sweep along its equator and it reports perfect evenness, which is true along that one line and false of the surface. Sweeping at 45° crosses both of its axes and catches the anisotropy that a horizontal sweep is blind to.

The equal-area fisheye’s flatness is the opposite case and deserves the opposite caution: it is flat because its construction asserts flatness, not because the measurement discovered it. The 8.3 × 10⁻⁶ per cent is a check on the arithmetic — the number would move if the map or the integrator were wrong — rather than a finding about the surface. Reading it as a discovery would be reading a definition back as evidence.

The ranking, and the surface that is not where its reputation puts it

Reduced to one number per surface, the ratio of edge spending to centre spending, the order holds a surprise in the middle of it.

From ×1.00 to ×25.0: how unevenly each surface spends out to 70°The ratio between the marks a surface lays on a square degree at the edge of the 70° field and on one at the centre. One is even spending; the equal-area fisheye returns 1.0000 because that is what its construction asserts, and it is the only surface here for which the number is not an accident of the map. The order is worth reading: the equidistant fisheye, whose selling point is being linear in angle, is at ×1.30 rather than at one, because a constant radial scale still leaves the tangential scale growing as the angle over its own sine. The flat plane is last at ×25.0 and is unbounded as the field approaches 180°.marks per square degree at 70° off axis, against on axisplane×24.99513 → 321cylinder×2.39632 → 76stereographic×2.22149 → 110equirect.×1.33860 → 80equidistant×1.30065 → 84equal-area×1.00074 → 74one budget, one cone of directionsequal-area ×1.000
Fig. 5 The marks a surface lays on a square degree at the edge of a 70° field against one at the centre. Even spending is one. The equal-area fisheye returns 1.0000 by construction; the equidistant fisheye — whose selling point is being linear in angle — is at ×1.300 rather than at one; stereographic is ×2.221, the cylinder ×2.396, equirectangular ×1.338, and the flat plane ×24.995, unbounded as the field approaches 180°.

The equidistant fisheye is the one to read carefully. It is described everywhere as the linear-in-angle projection, and it is: radius on the picture is exactly proportional to angle off the axis. A reader could reasonably conclude that it therefore spends evenly. It does not, and the reason is that a surface has two directions to spend in.

Radially the equidistant fisheye is flat by construction. Tangentially it is not: a ring of directions at angle θ from the axis has circumference proportional to sin θ in the world and to θ on the picture, so the tangential scale runs as θ/sin θ, which is one at the centre and grows to 1.30 at 70°. Area is the product of the two scales, so the surface that is exactly linear in one direction is 30 per cent uneven in area.

That is a real and specific correction to a description that is otherwise true, and it is the sort of thing this collection exists to notice: the property everybody quotes is a statement about one of the two directions, and the property a reader wants is about both.

Why the plane runs away and the others do not

The ranking is not a list of empirical facts. Each surface’s number falls out of its own radial law in one line, and having the laws side by side explains why one of the six is qualitatively different from the rest.

A surface maps an angle θ off the axis to a radius r on the picture. Its radial scale is dr/dθ and its tangential scale is r/sin θ, because a ring of directions at θ has circumference proportional to sin θ in the world and to r on the page. The area scale is the product, and the spending ratio is that product at the edge over its value on the axis.

For the flat plane, r = f·tan θ. The radial scale is f·sec²θ and the tangential is f·tan θ/sin θ = f·sec θ, so the area scale runs as sec³θ — which is 25.0 at 70° and diverges at 90°. The divergence is the plane’s defining property, not a defect in it: the surface has to reach infinitely far to hold a direction at ninety degrees, and infinite reach for finite world is exactly what unbounded spending means. Every other surface here is bounded because every other surface reaches a half-turn or more at a finite radius.

For the equidistant fisheye, r = f·θ. The radial scale is f exactly — that is the selling point — and the tangential is f·θ/sin θ, which is the whole of the ×1.300. For the equal-area fisheye, r = 2f·sin(θ/2), and the two scales are reciprocal by construction, which is what the 8.3 × 10⁻⁶ per cent is checking.

So the six numbers are one formula evaluated six times, and the plane’s separation from the rest is a statement about which of them are bounded rather than about how badly any of them behaves.

What it looks like on a room

The meshes and curves are the honest instruments. A picture of a room is what makes the size of the effect legible.

On the equal-area fisheye, the same 246 square degrees are drawn ×1.00 larger at the edge than at the centreA room cast onto the equal-area fisheye, 100° across. The floor's rings are at equal angles below the horizon rather than at equal distances, and the posts stand at equal azimuths, so nothing in the drawn spacing is perspective foreshortening — it is the surface's spend. The faint mesh over it holds cells of exactly 246 square degrees each; the outermost are ×1.00 the area of those on the axis. The stated distance is exact for the flat plane and is where this picture's centre is correct for a curved one, because every surface here agrees with the plane to first order on the axis.correct from 7 cm, at 160 mm wideequal-area · ×1.00 edge to centre
Fig. 6 The same room on the equal-area fisheye, 100° across, with the same equal-solid-angle mesh over it: cells of 246 square degrees, and the outermost ×1.00 the area of those on the axis. Set beside the flat plane at the top of this essay — where the same mesh runs to ×3.77 at 100° and ×57.68 at 150° — the two are the extremes of the ranking, drawn on one scene.

The comparison across those two figures is the whole essay in two pictures, and it is worth being exact about what changed and what did not. The room is the same, the mesh is the same amount of world per cell, and the number of marks is the same. Only the surface differs.

What this is not, and it is not distortion

There is a strong temptation to read the flat plane’s ×25.0 as a statement about how wrong a rectilinear picture looks at the edges, and it is a different claim entirely.

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. 7 Fidelity rather than price, borrowed from the essay that measures it: one room at 120° across on all six surfaces. The flat plane keeps every straight line straight and is the only one that does; the five curved surfaces bend the ground lines by between 3.5 and 6.0 per cent of their own length. On the measurement this essay makes, the ranking is nearly reversed.

The plane is the most faithful surface by the straightness measure — it is the unique surface that keeps every straight line straight — and the least even by the spending measure, by a wide margin. Those two facts are not in tension and neither is a consequence of the other. A stretched face at the corner of a wide rectilinear photograph is a fidelity effect, and it is the correct projection of that face from that eye; the resolution poured into the corner is a separate matter, and it is why the corner of such a picture is sharper than its centre while looking worse. Conformal is not undistorted makes the neighbouring point about the little planet, where a surface that preserves every angle still produces a picture nobody would call faithful.

So the two comparisons answer different questions and a reader has to know which one they are asking. What will be bent? is the earlier essay. Where will the detail be? is this one.

The measurement against the fleet’s other reading of the same surfaces

It is worth setting this comparison beside the two the collection already has, because the three together are the whole of what choosing a surface decides, and no two of them rank the surfaces the same way.

Stereographic keeps every angle measures conformality and finds exactly one surface with a zero. The third column is area measures area distortion and finds exactly one with a zero, a different one. This essay measures where the marks land, and its zero — even spending — belongs to the same surface as the area column, for the obvious reason that spending is an area scale seen from the picture’s side rather than the world’s.

That last equivalence is worth stating rather than leaving implicit, because it means this essay adds nothing to the area comparison mathematically and a great deal to it practically. The area column says a shape drawn at the edge is the wrong size; the spending column says the same fact is a statement about how much detail the edge can hold. Same number, two consequences, and a photographer cares about the second while a cartographer cares about the first.

The straightness column stands alone and is the one that disagrees, since the flat plane is the only surface that keeps a straight line straight and is last on both of the others. There is no surface that is even, conformal and straight — and this essay’s contribution to that trade is that “even” has a precise price which can be read off a picture of a room.

What a reader can do with it

The measurement is only worth making if it decides something, and it decides three things that come up.

Where the subject is. A picture surface should spend where the subject is, and most subjects are near the middle. Every fisheye is a different rule sets out the four laws a lens may obey; this measurement is what choosing between them costs in detail rather than in shape. On that criterion the flat plane is the worst available choice at wide fields and the equal-area fisheye the best, with the ordinary equidistant fisheye between them and closer to the good end.

What a field of view costs. The plane’s unevenness is not a fixed penalty; it is ×3.77 at 100°, ×24.995 at 70° measured to the corner of the cone used here, and ×57.68 at 150°, growing without bound as the field approaches a half-turn. Every one of those is the same surface. The choice of surface and the choice of field are not independent decisions, and a wide picture on a plane is a different object from a moderate one.

What a screen wants. The same arithmetic runs the other way for a display rather than a camera: a projector or a curved screen also has a finite number of marks and also has to decide where to put them, and the surface a screen wants is the essay that asks which surface a viewer at a stated seat is best served by. The spending measured here is the supply side of that question, and the two have to be read together — a picture taken on a surface that spends evenly and shown on one that does not has thrown the evenness away.

What a resampling costs. A reprojection from one surface to another is exact wherever both cover the direction, so nothing geometric is lost in one. What is lost is here: marks that one surface put in the middle cannot be conjured at the edge by another, and the resolution a picture has is fixed by the surface it was taken on.

Where the marks go on the surfaces that are not lenses

Two of the six are not lens projections at all, and their spending has a different practical meaning worth separating out.

The cylinder is the panorama surface, and its ×2.396 is anisotropic in a way the single number hides. It is uniform in azimuth exactly — that is what makes it the right surface for a rotating rig — and it stretches only in elevation, as the secant of the angle above the horizon. So a cylindrical panorama has even resolution all the way round and loses it upward, which is why what a 360 photograph is can hold the whole horizon at one quality and cannot hold the zenith at all.

The equirectangular surface is the storage format rather than a picture anybody looks at, and its ×1.338 over this cone badly understates it, because the cone stops at 70° and the surface’s trouble is at the pole. A pole is a line measures what happens there: one direction is sent to a whole edge and the area scale diverges, so a cap of sky at the pole occupies an absurd share of the marks. Over a 70° cone that never shows.

Which is the general caution about every number in this essay. A spending ratio is quoted over a stated cone, and the surfaces differ in where their trouble lives — the plane’s is at the rim of any cone a reader picks, and the equirectangular surface’s is at a point that most cones exclude. Comparing two surfaces over a field that contains one’s difficulty and not the other’s is the same error as comparing them at a fixed focal length, one level subtler.

The honest summary is that the ranking above is a ranking over a 70° cone about the axis, it is stable in order across the fields this family draws, and the only surface whose position is an accident of the cone is the equirectangular one.

What this does not settle

Three limits, and the third is the one that would change the numbers.

The comparison is over a cone of directions, symmetric about the axis, which is the right shape for a fisheye and the wrong shape for a photograph. Real pictures are rectangular, and a rectangular crop of a plane samples the surface’s worst corners while a rectangular crop of a fisheye throws them away. Nothing here accounts for the frame’s shape, and a comparison that did would narrow the gap.

The marks are treated as an area, not as a sampling lattice. A real sensor has a grid with an orientation, and the anisotropy the equidistant fisheye shows tangentially interacts with that grid in ways that are about sampling rather than about geometry. This collection computes the geometry.

And the whole comparison is about where the marks go, not about what reaches them. A wide lens has falloff, and the corners of a rectilinear picture are darker as well as more finely sampled. That is radiometry and it belongs to another subject; the geometry says only how many marks the corner has.

One budget, six ways of spending it

The object is a picture surface, and the finding is that the question everybody asks of one — what does it distort? — is the second question rather than the first.

The first is where its marks go, and the six named surfaces answer it over a range of twenty-five to one at a field a real camera reaches. The surface with the best answer to the fidelity question has the worst answer to this one, and the surface whose reputation rests on being linear turns out to be linear in one of the two directions it has.

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.

Angular resolutionArea scaleEqual-areaEquidistantEquirectangularfield of viewFisheyePicture surfaceSolid angleStereographic