The real instrument

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 sixty degrees, fit the tilt along with everything else, and the same ninety-six marks fix it to 1.70 — nearly three times better. 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.

Worth reading first: Fitting a lens from straightness alone · Straight lines that are not.

A known target sharpens the fit and does not separate it replaced the straight edges this sequence had calibrated a lens with by printed circles of stated size, centred on the picture. A circle of known size reads the whole of the lens’s radial displacement at its radius, not only the bow a straight edge shows, and four circles reaching into the corners of the frame fixed the first radial coefficient far better than edges at the same number of marks: 4.77 thousandths with the target’s size in the picture fitted, 2.09 with it known. What they did not do was separate the two radial coefficients, whose correlation stayed between −0.979 and −0.9997 for every design of circles.

That target was held square to the lens. The essay ended by asking about the way targets are actually held, which is at an angle and usually in a hand. A circle photographed at an angle is an ellipse by perspective alone, and the lens then bends the ellipse, so the fit must recover the tilt and the distortion together. Two extra unknowns, the earlier essay reasoned, ought to cost precision. But a tilted target also does something a square one cannot: its near side is magnified more than its far side, so a single circle spans a range of radii rather than sitting at one — which was the straight edge’s advantage.

The question it posed had a sharp form: does the precision at the best tilt beat the square target’s 4.77 thousandths? It does, by nearly a factor of three, and the reason is exactly the one proposed.

What the lens draws

The target is the same four concentric circles, at 60, 160, 260 and 360 pixels, photographed through the same barrel lens with its first coefficient at −0.28. Now it is tilted about a horizontal axis through its centre, its lower half toward the camera.

Tilted 50°, the four printed circles become ellipses whose near halves are drawn larger, and fix the first coefficient to 1.95e-3 against 4.77e-3 square onThe same target of four concentric circles at 60, 160, 260, 360 px, photographed through the same barrel lens, tilted 50° about a horizontal axis so its lower half comes toward the camera. Perspective draws each circle as an ellipse whose near side is larger than its far side, so its marks stand at a range of distances from the distortion centre — 35 to 60 px for the 60 px circle, 79 to 165 px for the 160 px circle, 112 to 274 px for the 260 px circle, 136 to 310 px for the 360 px circle — where square on each circle's marks stood at nearly one distance. 47, 125, 163, 226 marks fall inside the frame. With 24 of them spent on each circle and the tilt, the size, the centre and both coefficients fitted, the first coefficient comes back to 1.95e-3.distortion centretilted 50° about a horizontal axis, marks every 8 px47 / 125 / 163 / 226 marks
Fig. 1 The four-circle target tilted 50°, as the barrel lens draws it. Each circle is an ellipse whose near half is larger than its far half, so its marks stand at a range of distances from the distortion centre: 35–60 px for the 60 px circle, 136–310 px for the 360 px one. With 24 marks a circle, the first coefficient comes back to 1.95e-3 against 4.77e-3 square on.

Tilted fifty degrees, every circle has become an ellipse, squashed top to bottom by the cosine of the tilt, and every ellipse is lopsided: its lower half, nearer the camera, is drawn larger than its upper half. The outer circles, which square on the frame cut to arcs in the corners, now fit more nearly whole because the squash brings their tops and bottoms inside.

The consequence the figure’s caption lists is the one that matters. Square on, the marks of the inner circle sat at one distance from the lens’s distortion centre, 60 pixels, and the other circles likewise each at one distance. Tilted, the innermost circle’s marks stand anywhere from 35 to 60 pixels from the centre, and the outermost’s from 136 to 310. A radial distortion is a function of distance from the centre, and a set of marks that samples many distances is informative about the shape of that function in a way that marks at a handful of distances cannot be.

The precision, tilt by tilt

The measurement is the one the earlier essays used throughout: the inverse of the Fisher information for the lens’s parameters, from marks each read across the drawn edge to half a pixel, at a fixed budget of ninety-six marks. The unknowns are the two radial coefficients, the distortion centre, the target’s size in the picture, and now its tilt.

Tilting the target to 60° fixes the first coefficient 2.8 times better than holding it square — and the gain is all perspectiveThe precision of the first radial coefficient from 96 marks on the four circles, read to half a pixel, with the size, the centre and the second coefficient fitted, against the target's tilt. Square on it is 4.77 thousandths. Tilted, with the tilt fitted as well, it improves steadily to 1.70 at 60°; with the tilt given rather than fitted, to 1.43. The upper curve is the same tilt with the perspective removed, so the target is only squashed by the cosine of the tilt: it is 5.12, 5.15, 5.19, 5.19… thousandths, never better than square on. What pays is not the circles turning into ellipses but the near half of each being drawn larger than the far half.02460204060tilt of the target about a horizontal axis (°)precision of the first coefficient (thousandths, one sigma)square on, 4.77‰squashed, no perspectivetilted, tilt fittedtilted, tilt known96 marks, half a pixel, size, centre and k₂ freebest 1.70‰ at 60°
Fig. 2 The precision of the first coefficient from 96 marks against the target’s tilt, with size, centre and second coefficient fitted. Square on, 4.77 thousandths. Tilted with the tilt fitted, 1.70 at 60°; with the tilt given, 1.43. The same tilt without perspective — the target only squashed — stays at 5.1 to 6.5, never better than square on.

The fitted-tilt curve falls steadily from 4.77 thousandths square on to 1.70 at sixty degrees, and rises slightly beyond, to 1.74 at seventy. At its best the tilted target is 2.8 times more precise than the square one, from exactly the same number of marks. The two extra unknowns cost something — with the tilt given rather than fitted the precision at sixty degrees would be 1.43 — but what the tilt buys is far larger than what fitting it costs.

The third curve is the control that says where the gain comes from. It keeps the tilt but removes the perspective, so each circle is squashed by the cosine of the tilt into a symmetric ellipse with no near side and no far side. That target is no better than the square one at any angle: 5.1 to 6.5 thousandths, slightly worse than 4.77. So the gain is not the circles becoming ellipses, and not the outer circles fitting better in the frame, since both of those happen in the squashed control too. It is the perspective — the one thing the control lacks.

A band of radii, not a radius

The figure below lays out, circle by circle, the range of distances from the distortion centre that each circle’s marks occupy, square on and at three tilts.

Square on, each circle's marks stand at one distance from the centre; tilted, each spans a band of distancesFor the target square on and tilted 20, 40, 60°, the range of distances from the distortion centre over which each of the four circles' marks stand, in the frame. Square on, every circle's marks sit at one distance, the outer two cut to arcs by the frame — 59.7 px, 153.7 px, 232.9 px, 288.0 px, each spread by under 0.00 px. Tilted 60°, the innermost spans 27–60 px and the outermost 102–310. A radial distortion is a function of distance from the centre, and a mark set that samples many distances is what a straight edge offered and a square circle could not.tilted 0°tilted 20°tilted 40°tilted 60°0100200300distance of a circle's marks from the distortion centre (px); one bar per circle, 60 to 360 px downwardmarks inside the frame onlya band per circle, not a radius
Fig. 3 For the target square on and tilted 20°, 40° and 60°, the range of distances from the distortion centre each circle’s marks occupy in the frame. Square on, every circle’s marks sit at one distance, 59.7, 153.7, 233 and 288 px. Tilted 60°, the innermost spans 27–60 px and the outermost 102–310.

Square on, each bar is a point: every circle, whole or clipped, puts its marks at one distance from the centre. At twenty degrees the bars have become short bands; at sixty, the innermost circle spans 27 to 60 pixels and the outermost 102 to 310. The four bands overlap and together cover nearly the whole range from the centre to the corners.

This is the straight edge’s virtue, and the lines that calibrate a lens measured it when it found that one straight edge runs from near the centre to the edge of the frame and samples every radius on the way. What a straight edge lacked was a known shape: it reports only its bow, the part of the displacement that bends it, and not the displacement itself — straight lines that are not is the picture of that bow, and the bow is all an edge can ever say. A circle of known size reports the displacement, but square on it reports it at one radius. The tilted circle does both — it reports the displacement, because its shape is known, and it reports it across a band of radii, because perspective has drawn it lopsided.

The squashed control fails for a reason visible in the same terms. A symmetric ellipse also spans a band of distances from its centre, from its semi-minor to its semi-major axis; but the band is the same on both sides, and the squash is a linear change of the target’s shape which the fit’s magnification and tilt absorb. Perspective is not linear: it enlarges one half and shrinks the other by amounts that depend on each point’s depth, and no combination of size and tilt can mimic a radial distortion’s dependence on distance from the centre with it.

Only a target that fills the frame gains

If the gain comes from the near half being drawn larger, it should depend on how large the target is against its distance — how much depth the tilt gives it. For a camera, that is how much of the frame the target fills.

The tilt pays most when the target fills the frame: 2.8× for circles to the corners, 1.6× at best for circles inside itThe gain in the first coefficient's precision over holding each design square on, against the tilt, at 96 marks with the tilt, size, centre and second coefficient fitted. four to the corners, 60–360: at best 2.80×, at 60°; three to the corners, 100–340: at best 2.78×, at 60°; four inside, 40–180: at best 1.42×, at 30°; three inside, 60–180: at best 1.57×, at 30°. Perspective draws a tilted circle's near half larger by a share set by how wide the circle is against the distance to it, which for a camera is how much of the frame it fills; a small target barely has a near side, and the tilt then buys little and eventually costs, as the foreshortened circle crowds its marks together.01230204060tilt of the target (°)precision gained over the same target square on (×)four to the corners, 60–360three to the corners, 100–340four inside, 40–180three inside, 60–18096 marks per designdashed: no gain
Fig. 4 The gain in the first coefficient’s precision over each design square on, against tilt, at 96 marks. Four circles to the corners gain 2.80× at 60°; three to the corners, 2.78×; four circles inside the frame, 1.42× at 30°; three inside, 1.57× at 30°, and less beyond.

The two designs that reach the corners — circles out to 340 or 360 pixels — gain 2.8 times at sixty degrees. The two that stay inside the frame’s short side, out to 180 pixels, gain at most 1.4 to 1.6 times, at thirty degrees, and less as the tilt grows, falling below their square-on precision by seventy degrees — 0.84 and 0.94 of it. A small target has little depth to give: tilting it barely enlarges one half against the other, and the tilt’s foreshortening then crowds the marks together without spreading them across radii.

So the usual advice to fill the frame with the target turns out to have two reasons rather than one. The earlier essay found the first: circles reaching the corners sample the radii where the lens moves marks most. This is the second: only a target large in the frame has a near side worth tilting.

The two coefficients stay inseparable

Every essay in this sequence since fitting a lens from straightness alone has run into the same wall: the two radial coefficients are nearly perfectly correlated, so the second is known only badly and the first is known well only if the second is held fixed. The tilt spreads the marks across radii; it might have been expected to break the correlation as well.

Tilting sharpens the first coefficient and does not separate it from the second: the correlation stays between -0.993 and -0.976The correlation between the first and second radial coefficients as fitted from the four circles at 96 marks, against the tilt. Square on it is -0.9929; across every tilt measured it lies between -0.9929 and -0.9761. The tilt spreads each circle's marks over a band of distances, which is what fixes the first coefficient better; but the two coefficients are the functions r³ and r⁵, and over any band of radii inside one frame those two look almost alike. The tilt changes where the marks are; it cannot change what the two functions are.-1-0.990-0.980-0.970-0.9600204060tilt of the target (°)correlation of the two radial coefficientsfour circles, 96 marks−1 would be inseparable
Fig. 5 The correlation between the two radial coefficients fitted from the four circles at 96 marks, against tilt. Square on it is −0.9929; across every tilt it lies between −0.9929 and −0.9761.

It does not. Square on, the correlation is −0.9929; across every tilt it lies between −0.993 and −0.976. The tilt moves it by less than two hundredths. No design separates the two coefficients identified why: the coefficients multiply the cube and the fifth power of the radius, and over any band of radii inside one frame those two functions are nearly proportional. Spreading the marks across the band sharpens the combination the marks can see; it cannot make the two functions look different where they do not.

That makes the result’s shape precise. A tilted target is a better instrument for the first coefficient, with the second fitted alongside. It is not a better instrument for telling the two apart, and nothing about where a single target’s marks fall in a single frame will be.

What fitting the tilt costs

The earlier essay’s expectation was that two extra nuisances would cost precision, and the cost can be measured directly: the ratio of the first coefficient’s precision with the tilt fitted to its precision with the tilt given.

Fitting the tilt costs the first coefficient at most 35 per cent, and the tilt itself comes back to a tenth of a degree or betterHow much worse the first coefficient is fixed when the target's tilt is fitted than when it is given, against the tilt, at 96 marks: 1.012× at 5°, 1.021× at 10°, 1.010× at 15°, 1.001× at 20°, 1.025× at 30°, 1.114× at 40°, 1.235× at 50°, 1.193× at 60°, 1.229× at 65°, 1.287× at 70°, 1.349× at 75°. The fitted tilt is known to 0.122°, 0.099°, 0.058°, 0.042°…, and its correlation with the first coefficient stays between -0.67 and 0.20. A tilt and a radial stretch move a circle's marks in different patterns — the tilt squashes one direction and enlarges one half, the stretch acts the same way round the whole circle — so the tilt is cheap to fit, and a hand-held target's angle need not be measured.11.101.201.30204060tilt of the target (°)fitted tilt's cost to k₁ (× the known-tilt precision)±0.120°±0.099°±0.062°±0.049°±0.042°labels: how well the tilt itself is fitted1 would be free
Fig. 6 How much worse the first coefficient is fixed with the tilt fitted than given: 1.01× at 5°, 1.00× at 20°, 1.11× at 40°, 1.19× at 60°, 1.35× at 75°. The fitted tilt itself is known to 0.12° at 5° and 0.05° at 60°; its correlation with the first coefficient stays between −0.67 and 0.20.

Below thirty degrees the cost is under three per cent. At sixty degrees it is nineteen per cent, and at seventy-five, thirty-five. The fitted tilt itself comes back to a tenth of a degree at small tilts and to five hundredths at sixty. A tilt and a radial stretch move a circle’s marks in different patterns: the tilt squashes one direction and enlarges one half, while the stretch acts the same way all the way round, so the fit can tell them apart and pays little for having to.

That answers the earlier essay’s worry and settles the practical question it raised. A calibration target held at an angle in the hand does not need its angle measured; the angle comes back from the same marks, nearly for free. And holding it at an angle is not only a matter of covering the frame from several directions. It is information: at the same number of marks, a target tilted to sixty degrees fixes the first coefficient nearly three times better than the same target held square.

Better than knowing the size

The earlier essay’s most practical finding was about the target’s size in the picture. Circles whose drawn size is known — because the target’s distance and the lens’s focal length are known some other way — fixed the first coefficient to 2.09 thousandths, against 4.77 with the size fitted; and half of that advantage was gone once the size was known only to a tenth of a per cent, a precision no tape measure offers. The size, it concluded, is worth knowing and nearly impossible to know well enough.

The tilt is an easier purchase. A target tilted sixty degrees with its size fitted fixes the first coefficient to 1.70 thousandths, better than the square target with its size known exactly. No measurement of distance is needed, only an angle the fit recovers for itself. And the two advantages compound: tilted sixty degrees with the size also known, the same ninety-six marks give 0.68 thousandths, three times better than the square target’s best and seven times better than its usual.

That reorders the advice a calibration manual might give. Measuring the target’s distance precisely is hard and buys a factor of two. Tilting the target is free and buys nearly three. A calibration that must choose where to spend its effort should tilt first.

Why a tilted target is not a tilted sensor

One confusion is worth heading off, because the words are alike. A tilted sensor is not a distortion found that a sensor tipped inside the camera leaves a picture that is still an exact projection — a pinhole with its principal point moved — and that a distortion fit which treats the tilt as a lens defect finds one that is not there. That is a tilt of the picture surface. The tilt here is of the object photographed, and it changes nothing about the camera at all: the lens, the sensor and the pinhole are exactly as they were. What changes is which distances from the distortion centre the target’s marks land at.

The difference matters for the fit. A sensor’s tilt is a parameter of the camera and belongs in the model of every picture the camera takes; a target’s tilt is a parameter of one photograph and is fitted afresh for each. Both come back from the marks, and they must not be confused with each other or with the distortion, whose defining property — a lens destroys the invariant that a pinhole keeps — is what every mark on the target is ultimately measuring.

Why perspective is the part that pays

It helps to state the mechanism once in the plainest terms. A lens’s radial distortion moves each point along the line from the distortion centre by an amount that depends on its distance from the centre. To measure that dependence, marks are needed at many distances whose true positions are known. A straight edge gives many distances and no known positions, only straightness — and the response is at the ends, the information is not found how little of that a straight edge’s far ends add on their own. A circle square to the lens gives known positions and one distance. A circle tilted in perspective gives known positions at many distances, because its near half is drawn larger than its far half by an amount set by the depth each point lies at — a depth the fit recovers as the tilt.

The calibration by straightness this sequence began with worked by looking past perspective, since a pinhole keeps a straight line straight however it is tilted. Here perspective is the thing that makes the calibration work. The same property that makes a tilted circle a lopsided ellipse — that nearer things are drawn larger — is what spreads its marks across the lens’s radii. A target with no perspective, an orthographic projection of the same tilt, has no near side and teaches the fit nothing new.

What was assumed

One target, one picture. Every precision here is from a single photograph of a single target. Real calibrations combine many photographs at many poses, and the information adds; whether it adds in the directions that matter is the question below.

The tilt is about a horizontal axis through the target’s centre, and the target is centred on the distortion centre. A target held off-centre, or tilted about another axis, puts its near side elsewhere in the frame and spans a different band of radii. The mechanism is the same; the numbers are for this arrangement.

Marks are read across each drawn edge to half a pixel. A tilted target’s far half is drawn smaller and its edges are foreshortened, and in a real photograph they are read less precisely than the near half’s. The figures assume every mark is equally good, which flatters the steepest tilts.

Still open: whether several poses break the correlation

One tilted target fixes the first coefficient well and leaves the two coefficients as inseparable as ever, because in one frame the cube and the fifth power of the radius are nearly proportional over any band of radii the marks can reach. Calibration practice photographs the target many times, at different tilts about different axes and at different distances, and pools the marks.

Pooling adds information, but only in the directions each pose supplies, and every pose supplies the same nearly proportional pair of functions. What might differ between poses is the target’s size in the picture: the same printed circle photographed from twice as far lands at half the radius, so a set of poses at different distances samples the lens’s radii in a way no single target can, with the circles’ true sizes linking them. The measurement that settles it pools the Fisher information of the four-circle target over a set of poses — tilted either way about both axes, and at two distances — and asks whether the correlation between the two coefficients finally moves away from minus one, or whether every pose, at every distance, still sees the same two functions over the same frame.

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.

Brown–ConradyCamera calibrationConditioningCovarianceEllipseForeshorteningFree parameterRadial distortion