Surfaces that are not flat

The lines a surface leaves alone

Only the plane draws every straight line straight, which this site has measured and which gets read as though a curved surface bent everything. It does not. Every curved picture surface here keeps a one-parameter family of world lines exactly straight, and the family is a curve on the sphere of lines rather than a region of it — so a grid of samples finds none of it, which is what the first version of this measurement reported.

Worth reading first: When the picture surface is not flat · Stereographic keeps every angle, and only stereographic · The cylinder, and the price of going all the way round.

The curved field’s foundational result is that only the plane keeps straight lines straight, and this site asserts it directly: the flat picture bends a probe line by nothing, and every curved surface bends the same line by a measurable amount, with the straightest of them still off by a stated percentage of the chord.

That is true and it is read as more than it says. A reader takes it to mean that a curved surface bends everything, and it does not. Every one of them leaves a family of lines exactly alone, and which family it is turns out to be the most useful single fact about the surface — more useful than the bend, which is a number about one line, and more useful than the area range, which is a number about one field of view.

The lines each surface leaves aloneA curved picture surface does not bend everything. Each panel draws the family of world lines the surface images as straight lines: two-dimensional for the plane, and a one-parameter family for every other surface here — running through the picture's centre on an azimuthal surface, and parallel on a cylindrical one.planeevery linecylinderone parameter · parallelno meeting pointstereographicone parameter · concurrentthey meet to 1e-12equirect.one parameter · parallelno meeting point3 of 4 keep a curvethe signature has three values, not eight
Fig. 1 The lines each surface draws straight, drawn as their own images. The plane’s family is every line; the others keep a one-parameter family each, running through the picture’s centre on an azimuthal surface and parallel on a cylindrical one.

The question, stated so it has an answer

A straight line in the world is a great circle on the sphere of view, and a great circle is named by its axis — a direction on the sphere, up to sign. So the set of world lines is a two-dimensional sphere of axes, and asking which lines a surface draws straight is asking about a subset of that sphere.

Subsets have dimension. If the answer is all of them, the set is two-dimensional. If the answer is a curve, it is one-dimensional. If nothing, zero.

That is the whole question, and stating it that way is what makes it answerable rather than a matter of examples.

The first version of this measurement was worthless

The obvious way to find the set is to sample it: lay a grid of axes over the sphere, image each one’s great circle, and keep the ones whose image is straight to a tolerance.

Run that on the cylinder over a 64 × 64 grid and it reports 120 straight axes out of 4,096. Run it on the three fisheyes and it reports zero, and on the equirectangular surface zero.

None of those numbers is a measurement of anything. A one-dimensional curve on a two-dimensional sphere has no area, so a grid of points misses it except where a grid point happens to land on it — and 120 is the grid’s spacing, not the surface’s behaviour. Reporting zero for a surface that has a whole family of straight lines is the same defect with the accident absent.

This is the third time this site has recorded a measurement of that shape: a quantity evaluated where it cannot see what it is looking for. The first was a cross-ratio evaluated over four consecutive divisions, the second an angle differenced along the surface’s own axes, and this is the third, and all three passed everything at the time they were written.

Looking for a curve along paths

The repair is to stop sampling the set and start crossing it.

A one-parameter path through the sphere of axes crosses a codimension-one set transversally, in isolated points, and misses nothing. So: take a family of great-circle paths through the sphere of axes, scan the straightness along each, refine every local minimum by golden section, and keep the ones that reach zero.

A surface whose straightness is zero everywhere is caught first, by a coarse sweep, because for that one the root-finder would return an arbitrary point of a region and call it a curve.

The verdict is then: dimension two if the coarse sweep says everything, dimension one if a root is found on essentially every path, and zero if no path finds one.

The plane returns two, at 100% of sampled axes. Every other surface here returns one, on 96% to 100% of paths, with under 0.05% of the sphere straight by area. The one surface that returns zero is the cube map, and its reason is its own.

The lines each surface leaves aloneA curved picture surface does not bend everything. Each panel draws the family of world lines the surface images as straight lines: two-dimensional for the plane, and a one-parameter family for every other surface here — running through the picture's centre on an azimuthal surface, and parallel on a cylindrical one.stereographicone parameter · concurrentthey meet to 1e-12equidistantone parameter · concurrentthey meet to 2e-6equal-areaone parameter · concurrentthey meet to 1e-12cylinderone parameter · parallelno meeting point4 of 4 keep a curvethe signature has three values, not eight
Fig. 2 Three fisheyes and a cylinder. The first three panels are the same picture, which is the finding this measurement cannot avoid: the straight family is a coarser invariant than the surface.

The parameterisation nearly cost the answer a second time

There is a second failure hiding behind the first, and it was live for one commit.

The natural way to scan for a curve on a sphere is to fix an azimuth and sweep the elevation. That works for the cylinder, whose family is the circle of horizontal axes — every azimuth crosses it. It fails completely for the azimuthal surfaces, whose family is the circle of axes perpendicular to the view direction: in that parameterisation the family lives at two particular azimuths and nowhere else, so a sweep in elevation finds a continuum of roots at 6% of azimuths and nothing at the other 94%.

The measurement reported “0.5-dimensional” for the three fisheyes, which is not a dimension. It was reporting how well the coordinate grid happened to line up with the answer.

Scanning along a family of deliberately skew paths removes the dependence, because a path chosen without reference to the surface’s own axes crosses a codimension-one set whatever the set’s orientation. That is the same principle as rotating the right angle in the conformality test, and it is the same principle as taking the four points of a homography fit from the design’s corners: a measurement must not be evaluated in coordinates the thing being measured helped choose.

What the families are

Naming them makes the abstraction concrete, and each is a family a photographer already knows.

On a cylindrical surface — the cylinder and the equirectangular unrolled sphere — the straight family is the verticals, plus the horizon. A vertical world line has constant azimuth, the map’s first coordinate is the azimuth, so the image has constant horizontal position and is a vertical straight segment. The horizon is the one crosswise member.

On an azimuthal surface — stereographic, equidistant, equal-area — the straight family is the lines whose images run through the picture’s centre. A great circle passing through the optical axis has all its directions in one plane through the axis, and every azimuthal map sends such a plane to a radius.

On the plane it is everything, which is Beltrami’s theorem stated as a dimension.

The signature, and what it cannot do

Dimension alone separates the plane from everything else and stops. What separates the two remaining groups is whether the straight images are concurrent — whether they all pass through one point.

They do on every azimuthal surface, and the fitted meeting point comes back at a spread of 1e-12 picture units for stereographic and around 2e-6 for the two whose roots are found less precisely. They do not on either cylindrical surface: the verticals are parallel and the fitted intersections run off to 1e+7 and beyond, which is the numerical form of “no meeting point”.

So the pair (dimension, concurrent) is a signature, and over the six surfaces it takes exactly three values: two-dimensional; one-dimensional and concurrent; one-dimensional and parallel.

Three values over six surfaces is a coarse invariant, and this is the honest yield of the measurement. It cannot tell the cylinder from the equirectangular surface, and it cannot tell the three fisheyes apart.

The limit is a result

That last sentence is where the essay’s interest is, because a measurement that failed to distinguish things which are different would be a bad measurement, and this one is distinguishing things that are the same in the respect being measured.

The site already found, by a completely independent route, that the cylinder and the equirectangular surface have identically the same anisotropy, secϕ\sec\phi, to 10910^{-9}. They differ in area and in reach, not in shape. Now they are found to have identically the same straight family too.

Two independent measurements agreeing that two surfaces have the same shape is worth more than either alone. The straight family is not failing to separate them; there is nothing there to separate.

The three fisheyes are a different case and the measurement is honest about it. They differ enormously — stereographic is conformal and equal-area has an exactly flat area scale, two exact zeros in the whole comparison — and they differ in the radial profile of the map, which is precisely the thing a family of radial lines cannot see. The straight family is blind to the one axis along which those three surfaces vary.

Straight, or conformal — the corner that is emptySix picture surfaces plotted by how much they bend a straight line (across) against how far they are from preserving shape (up). The plane sits on the left edge and the top; stereographic on the bottom and the right. Nothing sits in the bottom-left corner, and by Beltrami's theorem nothing can.straight AND conformal — empty10⁻⁷10⁻⁶10⁻⁵10⁻⁴10⁻³10⁻²10⁻¹10⁰10⁻⁷10⁻⁶10⁻⁵10⁻⁴10⁻³10⁻²10⁻¹10⁰10¹10²bend of a straight line, as a fraction of its own chorddeparture from conformal (degrees, or % of anisotropy)planecylinderstereographicequidistantequal-areaequirect.sampled over a 130° fanlower left would be a surface with no cost
Fig. 3 Where the same six sit on the field’s other two measurements. The three fisheyes are spread across this plot and land on top of each other in the straight family, which is the sense in which the two measurements are independent.
One room at 130° 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%130° across in every panelsame scene, same angle, six surfaces
Fig. 4 And the six as pictures. The differences the straight family cannot see are visible here as differences in how fast the periphery is compressed, which is the radial profile.

What the family is worth as a classification

Three values over six surfaces sounds like a poor invariant, and it is worth asking what a better one would look like before accepting it.

The field’s other measurements each give six different numbers, so each of them separates all six surfaces. That looks stronger and it is weaker, because the numbers depend on the field of view sampled: the bend, the worst angle, the anisotropy and the area range all change when the fan changes, and two surfaces can swap places. A ranking that moves is a ranking of the measurement.

The straight family does not move. It is a topological fact about the map — how many dimensions of lines survive, and whether their images meet — and it is the same at every field of view, at every focal length, and at every scale the picture is drawn at. It puts the six surfaces into three boxes and the boxes never change.

That is the trade a coarse invariant makes, and it is the same trade the group-level classification makes one field away: a map’s fixed structure has three cases and a map’s matrix has eight numbers, and the three cases are the ones that survive re-coordinatising.

The cube map’s zero

The one surface returning dimension zero deserves its own paragraph, because the answer is right and means something different from every other zero.

A cube map draws a line exactly straight if the line’s image stays inside one face, and not at all if it crosses a seam. The probe used here spans about a 50° arc, and a 50° arc crosses a seam from almost anywhere — 2.8% of sampled directions avoid one. So over the probe’s own length there is essentially no straight family, and the measurement reports zero correctly.

Shorten the probe and the answer changes: at a 9° arc, 94.4% of lines are straight, which is dimension two over that length. The cube map’s straight family depends on how long a line is drawn, which is a scale rather than a family, and it is the reason the cube map is not one surface but six.

The cube map has a scale below which everything is straightThe fraction of world lines a cube map draws exactly straight, against how long a piece of the line is drawn. It falls from 95.8% at a 5° arc to 2.8% at 50°. Every other surface here gives the same answer at every length.0%25%50%75%100%10°20°30°40°50°world lines drawn exactly straightlength of the piece drawn, in degrees of arcsampled over 24×24 directionsno other surface here has a scale
Fig. 5 The dependence, plotted. Every other surface here gives the same answer at every arc length, and the cube map’s answer runs from 95.8% to 2.8%.
Six flat pictures, and what happens where two of them meetEach face is a flat picture at 90°, so a straight line inside one is drawn exactly straight — 1e-15 of its chord. Across a seam the two straight pieces meet at 1.80°. The shading is the area scale, which runs from 1 at a face's centre to 5.196 at its corner, with an anisotropy of 1.7321 there.leftfrontrightbackupdownacross the left/front seam: 1.80°, with each side straight to 7e-16corner area ×5.196anisotropy √3 = 1.7321 there
Fig. 6 And the reason: a line crossing a seam is two straight pieces meeting at an angle, so it is neither straight nor bent, and a measurement expecting one or the other has to be told which question it is asking.

What a photographer does with it

The families are the practical content, and each one is a compositional rule that usually arrives as folklore.

On a cylindrical panorama, keep the verticals vertical. They are the only lines the surface draws straight, so a picture composed around uprights — columns, doorframes, trees, the corners of buildings — has every one of its strong lines exact and everything else bowed. That is why cylindrical panoramas of architecture work and cylindrical panoramas of a level horizon at an angle do not.

On a fisheye, compose radially. The straight lines are the ones running out from the centre, so a subject arranged along a radius is drawn straight and one arranged across the frame is drawn as an arc. A photographer who has learned to put the horizon through the middle of a fisheye frame has learned that the horizon is a member of the family when it passes through the centre and not otherwise.

On the Panini family, the family is the cylinder’s, because the construction is built on a cylinder. Every member keeps verticals straight, which is the whole reason the family exists and is the sense in which it is a family selected for buildings.

One family, one parameter, and where the convention sits in itThe same room on five members of the Panini family, each scaled so 130° of the world spans the same width. Every member keeps a vertical line vertical; only d = 0, the flat plane, keeps a general one straight. The worst angular error over the field is smallest at d = 1.00, at 16.84°.d = 0d = 0.5d = 1d = 2d = 4d = 0straight48.06° angle×17.80 aread = 0.54.81% bend23.08° angle×4.66 aread = 17.21% bend16.84° angle×2.65 aread = 29.61% bend23.13° angle×1.57 aread = 411.54% bend32.71° angle×1.73 areaa general straight line · worst angle · area range, over the field130° acrossangular minimum at d = 1.00
Fig. 7 The compromise family, whose straight lines are the verticals at every setting of its parameter. That is a property of a subset of lines rather than of the map, and it is what the family was chosen for.
Five great circles, imaged on the stereographicEach is fitted as a general conic and comes back a circle: |A−C|+|B| is 1e-9 of the fit's own scale. Stereographic is the only surface here that does this.fitted conic: a circle to 1e-9stereographicdashed: the fit, not the samples
Fig. 8 And the family’s complement on one surface: everything that is not radial is drawn as a circle, exactly, which is what makes the compass recipe possible.

The measurement stated as a rule

Two sentences, and they replace the reading the field’s headline result usually gets.

Only the plane draws every line straight, which is Beltrami’s theorem and is what the site already asserted.

And every curved surface draws a one-parameter family straight, which nobody says, and which is the family a picture on that surface should be composed around.

The second is not a weakening of the first. A one-parameter family in a two-parameter set is a set of measure zero — a photographer choosing a line at random gets a bent one with probability one — and it is also every line of one useful kind. Both facts are true and only the first ever gets stated.

How wide the picture gets as the field of view opensOn a flat plane the picture's half-width is tan(θ/2): it multiplies by 6.6 between 120° and 170° and is unbounded at 180°. On a cylinder it multiplies by 1.42 over the same range and keeps going past 180° without incident.0246850100150field of view across the picture (degrees)half-width of the picture, in focal lengthsplanecylinderstereographicequidistantcut off at eight focal lengthsthe plane crosses it at 166°
Fig. 9 The reason curved surfaces are used at all, and therefore the reason the families matter. A flat picture’s half-width runs away as the field widens, so a wide view has to be made on something that bends most lines.
Every angle exact, and unrecognisableA 360 photograph re-projected stereographically from below. Every crossing in the original crosses at the same angle here — the worst departure over 160° of the sphere is 4.4e-8° — while the area scale runs over a factor of 255. Conformal is not a synonym for undistorted.angle, worst over the sphere4.4e-8°anisotropy, worst1.000000023area scale, largest over smallest×255what a reader calls distortedthe third row, not the firstthe disc is 160° of the spheredrawn to 160° off axisthe first two rows are conformality
Fig. 10 The extreme case, where the family is still exactly there: the radial lines running out from a little planet’s centre are drawn perfectly straight, in a picture where nothing else is.
The same 84° view, projected onto a plane and onto a cylinderOn the plane every straight line stays straight (2e-13 px of bend) and the edges stretch; on the cylinder the stretch is even and straight lines bow by up to 863 px.flat picture plane — straight lines stay straightcylindrical picture surface — even stretch, bowed linesone scene, two picture surfacesneither is the distorted one
Fig. 11 The two answers side by side. Neither is the corrected version of the other, and the curved one is not bending everything — it is bending everything except a family a composer can use.

What would separate the three fisheyes

Since the essay has stated a limit, it should say what removes it, and the answer is already in the field.

The three azimuthal surfaces differ in their radial profile: the picture radius as a function of the angle off axis. It is 2tan(θ/2)2\tan(\theta/2) for stereographic, θ\theta for equidistant, 2sin(θ/2)2\sin(\theta/2) for equal-area. Every difference between them is in that one function, and every straight line in the family runs radially, so the family is exactly the set of lines along which the profile cannot be seen.

The measurement that does see it is the one the field already has — the area scale, or equivalently the anisotropy, along a radius — and it separates all three by a wide margin: equal-area’s area scale is exactly flat, stereographic’s runs away fastest, equidistant’s sits between them.

So the two measurements are complementary in a precise sense rather than a vague one. The straight family sees everything about the map except the radial profile; the distortion battery sees the radial profile and cannot see which lines are straight. Neither is a substitute for the other and together they determine the surface among these six.

Area scale across the picture, for six surfacesThe flat plane's area scale is sec³θ and leaves the frame before 70°. The equal-area fisheye is the flat line at 1, which is what its name asserts and what this measures.024680204060angle off the optical axis (degrees)area scale, relative to the centreplanecylinderstereographicequidistantequal-areaequirect.measured by differencing on the spherethe plane leaves the frame
Fig. 12 The measurement that separates what the family cannot. The three fisheyes’ area curves are three different shapes, and they are three different radial profiles of the same family of straight radii.

The short version

A world line is a great circle and a great circle is named by an axis, so the set of lines a surface draws straight is a subset of a sphere and has a dimension.

The plane’s is two-dimensional: every line. Every curved surface here has a one-dimensional family — a curve on the sphere of axes, with no area, which is why a grid of samples finds none of it and the first version of this measurement reported zero for four surfaces out of six.

The pair (dimension, concurrent) takes three values over six surfaces. It separates the plane from the rest and the azimuthal group from the cylindrical one, and it cannot separate the cylinder from the equirectangular surface — which the site had already found, independently, to have identically the same anisotropy.

A curved picture surface does not bend everything. It bends everything except one family, and the family is what a picture on it should be built from.

What links here

Computed from the collection, not written here: the essays that point at this one.

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.

AnisotropyBeltramiConformalCube mapCylindrical projectionDegeneracydegrees of freedomDemonstrationEqual area projectionEquidistant projectionEquirectangularGnomonicnecessary, not sufficientPanini projectionPicture surfaceSeamStereographic projectionStraight family