Concept

Radial distortion — where it appears

A lens's displacement of points toward or away from the centre of the field, growing with even powers of the radius. It is even in the radius by symmetry, and its coefficients trade against each other along a long shallow valley, so two different fits undistort equally well.

Named by 22 essays across 4 fields — each of them below, with the objects they name alongside it.

principal pointk₁ = -0.320, k₂ = 0.110 — barrel distortioncentre line 0e+0 px of sag, outermost 17.8 px

Straight lines that are not

Everybody says the edges of a wide-angle frame bow. Nothing is special about the edge. A radial map moves every point along its own radius, so the only line it leaves straight is one through the principal point, and the bend of every other is decided by how far it passes from that one place.

lens · Distortion
00.50011.502-0.400-0.20000.200k₁departure of the cross-ratio from the world's value (%)pinhole1.29%the pinhole's own error, on the same four points2e-16 — the control

A lens destroys the invariant

The cross-ratio is the one thing a projection preserves, and nearly everything checkable about a photograph is checked with it. A lens returns it one and a third per cent out where the pinhole is exact to fifteen digits — and the height error that follows tracks a quantity nobody would guess.

lens · Distortion
k₁ = -0.28 · the round trip closes to 8.0e-13 pxpale: what the eye receives · dark: what the renderer drawsthe inner 86% of a 72° frame, where the inverse is exact

The render is distorted on purpose

A headset renders a bent picture so its lens can straighten it, which is a lens's distortion polynomial run backwards, and the one case in which distortion is introduced deliberately. The round trip closes to a thousandth of a millionth of a pixel, and the price is that one rendered pixel becomes 0.493 delivered pixels at the edge of the field and one at the centre.

screen · Distortion
00.50011.5000.5001the lens's radial coefficient, −k₁the worst transversal's distance from a correct perspective, in pxa reader's ruler, 0.2 pxk₁ = −0.40a photographed pavement, against its lens5.7 px of bow at the threshold

The lens a pavement can hide

A photographed pavement reads as a correct drawing up to a radial coefficient of about four tenths — a lens strong enough to bow a straight edge across the page by nearly six pixels and to print as twenty per cent distortion at the frame's corner. The reason is that a pavement sits near the principal point, which is the one part of the frame a radial map barely touches.

lens · Taughtratio
00.50011.50020406080field angle off the axis (degrees)picture radius, in focal lengthsfolds at 47.49°43.91°50.54°the radial factor reaches zeropinholefolds at 47.49°43.91° and 50.54° share one radius

A barrel model folds at a radius it sets itself

The polynomial every calibration fits to a wide lens stops increasing at a radius fixed by its own first coefficient — 47.49° of field at k₁ = −0.28 — and past it two directions land on one picture radius. The routine that undistorts pictures with it does not refuse there. It hands back wrong directions from 46.75°, by as much as 106.5°, and refuses only at 65.5°: a fifth of the field returned silently wrong.

lens · Distortion
principal point moved 22.30 px · focal length 0.584 px shorterlines straight to 1e-13 px

A tilted sensor is not a distortion

Tilt a sensor 3° out of square with its lens and every point of the picture moves — up to 7.5 px on the frame drawn here — yet every straight line stays straight to 10⁻¹³ px and the cross-ratio survives to 10⁻¹⁶. The picture is an ordinary pinhole picture whose principal point has moved 22.30 px. A calibration that frees its principal point absorbs it exactly; one that holds the principal point and reaches for tangential distortion terms leaves 1.87 px, and used as a correction it bends straight rows by 4 px.

lens · Distortion
00.50011.5020123where a pinhole would put the point, in focal lengths from the centrewhere the model puts itwhere the polynomial foldsthe division model's horizonboth at k = -0.42fold 42° · horizon 1.54

A model that inverts has a horizon instead of a fold

The polynomial every calibration fits turns around at a finite radius and stops being a map from direction to picture. The division model, chosen because it inverts in closed form, never turns around — it rises for ever toward a horizon at one over the root of its own coefficient, so the whole hemisphere of directions lands inside a finite disc. Fitted to the four fisheye laws it follows every one of them more closely than the polynomial at every field from forty degrees to eighty — a hundred times more closely for the equidistant law at forty, and the stereographic law exactly.

lens · Distortion
0102030400.2000.4000.6000.800where along the edge, as a fraction of the visible lengthshare of the edge's response to the coefficient, in per cent93% outside the middle halfone edge, 82 marks, cut into tenthsmiddle two tenths: 1.4%

The response is at the ends and the information is not

A radial map bows a straight edge by an amount that grows as the square of the distance along it, so 93 per cent of an edge's response to the coefficient lies in its outer quarters. Spending the marks there is 16 per cent worse than spreading them evenly, because two clusters say nothing a shifted, tilted line could not say. What identifies the coefficient is a curvature, which needs three places — both ends and the middle, which beats an even spread by 11 per cent.

lens · Plumbline
0100200300distance from the picture's centre, pxeach edge, by how far it passes from the centreoffset 20 px20–326offset 60 px60–330offset 125 px125–348offset 180 px180–372four edges, 82 marks eachevery one spans 16× in radius

No design separates the two coefficients

Separating a squared term from a fourth-power one was supposed to need marks at radii far apart, which is a statement about where edges are placed. It is not: one straight edge already runs from 20 px to 326. Spreading ninety-six marks over three edges or sixteen changes the answer by 23 per cent, spreading the offsets makes it 19 per cent worse, and the correlation stays at −0.98 whatever is done. What a plumb-line calibration determines is one number, to 1.52 thousandths, and which number depends on the model.

lens · Plumbline
60 px160 px260 px360 pxmarks every 8 px, kept inside the frame47 / 125 / 114 / 122 marks

A known target sharpens the fit and does not separate it

Printed circles of stated size were supposed to break the −0.98 correlation between a lens's two radial coefficients, because a circle puts every mark at one radius and no straight edge can. They do not: every design of circles leaves the pair 0.979 to 0.9997 correlated, and for circles of known size the figure is exactly the cosine between r³ and r⁵. What a known target buys is precision — 3.8 times the straight edges' at the same budget — and only if its size in the picture is known to about a thousandth.

lens · Plumbline
residual × 40 · rms 1.62 px at the readings · principal point moved 7.7 pxno single viewpoint — the rays miss by a wedge's worth, varying with incidencethe glass-blind calibration at 40°

A wedge moves the centre, not the lens

A wedge of glass in front of a lens deflects every ray by a little more the further off the axis it goes, which looks like the shape a radial distortion coefficient describes. Fitted together, the two are nearly independent — correlated at 0.16 at most — and a calibration that knows nothing of the glass does not invent a lens: it reports a coefficient of about 0.002, moves its principal point by 4.5 to 14 pixels, and leaves a swirling residual that no radial model takes. The blame goes to the camera's centre, and the residual says so from twenty-two degrees off the axis.

refraction · Slab
00.50011.502020406080angle off the axis, degreespicture radius, in focal lengthsequidistantequisolidorthographicstereographicthe division model's horizon, 2 focal lengthswide: the law · dashed: the division model at −1/4apart by 2e-16

A stereographic fisheye is a division model

The division model divides the picture radius by one plus a coefficient times its square. The fits that compared it with the polynomial were not of that model: they multiplied instead, and the model they measured has neither a fold nor a horizon. Fitted as it is written, the division model follows every fisheye law more closely than the polynomial at every field from forty degrees, and the stereographic law it follows exactly — the law is the model, with a coefficient of minus a quarter. Its horizon then turns out to sit beyond the lens's own ninety degrees, and pinning it there is a trade rather than a free constraint.

lens · Distortion
distortion centretilted 50° about a horizontal axis, marks every 8 px47 / 125 / 163 / 178 marks

A tilted target pays for its tilt in perspective

A calibration target of printed circles held square to the lens fixes a lens's first radial coefficient to 4.77 thousandths from ninety-six marks. Tilt it thirty degrees, fit the tilt along with everything else, and the same ninety-six marks fix it to 2.46 — nearly twice as well. Squash the circles by the same angle without perspective and nothing is gained. What pays is the near half of each circle being drawn larger than the far half, which spreads a circle's marks across a band of distances from the lens's centre.

lens · Plumbline
02.5057.5010020406080angle off the axis, degreesmodel minus law, pixelstargets alonewith the circle, 2 pxequidistant, 24 targets to 60° at 0.5 pxshaded: no target

An image circle pins a fisheye's horizon, if its field is known

A fisheye picture stops at a circle, and for a lens covering exactly 180° that circle is the ninety-degree radius a division model calls its horizon. Handed to a calibration as one more observation, read to two pixels, it takes the error at the edge of an equidistant lens from 9.4 pixels to 2.0 — at a cost of 0.3 pixels inside the field the targets covered. Read as ninety degrees on a lens that really covers 190°, it makes the edge five times worse than no circle at all.

lens · Distortion
with decentring terms · residual × 40 · rms 0.54 px over the discno single viewpoint — the rays miss by a wedge's worth, varying with incidencedecentring 1.3e-2 and -5.4e-3

A calibration through glass reports a prism

Give a calibration that knows nothing of a 2° wedge in front of the lens the two decentring terms every standard model carries, and it takes three-quarters of the swirl the wedge leaves, moves the principal point further rather than less, and reports a lens decentred by about 0.013 — a lens that does not exist. Give it thin-prism terms instead and it takes more — nine-tenths at twenty-five degrees off the axis, almost all of it nearer — and reports what the glass is: a prism. Either way the residual that announced the glass goes quiet, out to 41° and 46° off the axis instead of 22°.

refraction · Slab
pose at scale 2correlation -0.989

A closer pose sharpens one coefficient and not the pair

Photograph a calibration target tilted four ways at several distances, and the two radial coefficients of the lens stay locked together near a correlation of −0.97. A target further off adds nothing at all. Bringing it closer sharpens the first coefficient by about a half, then stops, and pushes the pair closer together. What moves the correlation furthest is being told each pose's distance.

lens · Plumbline
the lens's ownno turnhalf a turndecentring (t₁, t₂) reported at every 15° of turn, exact readingsthe lens sits inside the loop

Turning the glass tells the window from the lens

A calibration done through a two-degree wedge of glass reports a lens decentred by about 1e-2 that does not exist, and hides the glass inside it. Calibrate twice with the glass turned between, and the glass's part turns while the lens's stays: a half turn finds a real lens decentring of 2.2e-3 to 5.2e-4 with readings to 0.4 px, where one calibration was 1.0e-2 out. Three calibrations spread evenly round the turn do better, because the loop the glass traces is not a circle. What never separates is the radial coefficient, which has no direction for a turn to carry.

refraction · Slab
0.010.030.10.313100200300radius in the picture (px)scatter of the displacement (px)the curveindependentk₁ aloneone pose, square on, 0.5 px300 px: 0.24 px

A lens's curve is known where its coefficients are not

Two radial coefficients correlated at −0.993 sound like a calibration that failed. Read as the displacement they make, the same fit knows the curve to a quarter of a pixel at the edge of the picture, ten times better than independent coefficients would. The ellipse of their errors lies almost along the line that leaves the curve unchanged, and the poses that sharpened the first coefficient most are not the ones that sharpen the curve.

lens · Plumbline
tops: through the lens (light), pinhole (dark)tilt 20°, corner -5%feet moved 13.1 px · bow 0.99 px

A lens bends a table's tilt, not its lines

A street photographed through a lens with 2% of barrel distortion has its verticals bowed by 0.38 px, too little to see, while their straight chords still meet to 0.28 px. What has moved is where they meet: a lean table fitted to them reads a 20° tilt as 18.87°, and matches the photograph to four hundredths of a pixel. The table built from the camera's true tilt misses the same photograph by 1.58 px. A lens's distortion enters a table as a different constant, and a bowed line is a separate, smaller error that no table of straight leans can take back.

wrong · Cubebyeye
bows drawn twenty times their sizenine verticals, three rooflines

A street can read its own lens, if its edges are found finely

A copyist who fits a lean table to a photograph's chords draws a 2% barrel street 1.07 px wrong and never names the lens. Reading the lens from the street's own edges, by straightening them, and taking it out first does better while the edges are found finely enough: from the nine verticals alone the lens comes back to ±0.38% of its 2% from edges found to 0.3 px, and the street is then drawn 0.51 px wrong; adding three rooflines halves that to 0.30, under the verticals' own bow. The verticals alone lose to the copyist past about two thirds of a pixel. And the misfit has to be measured where the edges were read, or noise reads as pincushion.

wrong · Cubebyeye
narrow streetstreet, verticals onlystreet with rooflinestowerlevel facadebows drawn 20× actualone lens, five scenes

A lens read from many photographs follows the best one

A camera's lens does not change between pictures, so the straight edges of several photographs can be fitted through one radial distortion together. Pooled, the lens is read as well as the photographs' informations added, which in practice is mostly the best photograph's: a level facade alone reads the corner distortion to ±0.087%, a narrow street alone to ±1.09%, and the two with a street and a tower to ±0.087%. The narrow street, drawn through the pool's lens, is drawn twelve times better than through its own. The risk is the same fact read backwards: if the lens changed for the photograph that carries the pool, the pooled lens follows it and the misfit test, at a 5% false alarm, flags it in one pool in seven.

wrong · Cubebyeye
straight in the worldmiddle sill sagging 3 cmbows drawn 20× actualone lens, one facade

A sagging sill shows in its own photograph, a changed lens only against another

A pool of photographs reads one lens mostly from its best photograph, and a test on the pooled misfit cannot see a change of lens in that photograph. Leaving each photograph out and comparing it with the rest's lens can, but only if the comparison carries both lenses' spreads: treating the rest's lens as exact accuses an innocent facade in 54% of pools, because the three photographs left to judge it read the lens three times more coarsely than it does. Done properly, a facade whose lens changed by 0.4% at the corner is caught 35% of the time and named as the culprit 40%; a second facade through the unchanged lens raises that to 87% and 75%. A sagging sill is the opposite case: no comparison finds it, and the facade's own misfit does, from 3 cm, because no lens bows one edge alone.

wrong · Cubebyeye

Named alongside it

The objects these essays reach for when they reach for this one.

Camera calibrationBrown–ConradyModel errorPrincipal pointResidualConditioningIdentifiabilityBarrel distortionfield of viewleast squareserror propagationFocal length

All concepts