Many pictures at once

A survey's residuals give its size, and their direction gives its damage

Left to choose a survey's weight from its own residuals, an adjustment reads a random 20 mm survey as 19.0 mm — the textbook answer, found without being told. For forty systematic surveys it reads the size of the error the pictures can see, and that size is unrelated to the weight each one needs. The twelve residuals, pushed back through a held adjustment, predict the damage instead — to within 1.4 per cent with exact marks, and in rank order at 0.99 from a single adjustment with marks read to a tenth of a pixel.

Worth reading first: Seven numbers no picture can name · The track and the scene together.

A survey is trusted at its own accuracy, unless its error has a shape turned the weight a survey gets in an adjustment into a dial and swept it. Four surveyed control points went into a six-picture courtyard, each coordinate entered with a stated standard deviation, and the true shape error was read off at every setting. A survey whose errors are random gave its smallest shape error when stated at exactly its own accuracy, as the textbook says it should. A survey whose errors had a fixed pattern did not: twelve surveys, every one 10 mm out at every point, were best trusted anywhere from holding them outright to a loose 10 mm, and nothing about the size of their error said which.

That measurement had something no surveyor has, which is the truth. The shape error was read against the courtyard as it really is. In practice the adjustment is run once, against the survey as it was delivered, and the only evidence of how good the survey was is what the adjustment does with it. After the solve, each control point sits some distance from where the survey put it. Those twelve differences, the control residuals, are the pictures’ statement of where they disagree with the survey. They are what a surveyor actually holds.

This essay asks what they can be made to say. The question has two halves, because a residual vector has two things in it: a size and a direction. The size turns out to answer the textbook’s question and not the one the earlier essay left open. The direction answers the open one, and it does so exactly when the answer starts to matter.

The weight an adjustment would choose for itself

There is a standard way to let an adjustment set a weight from its own output, and it is old enough to be in the surveying textbooks under the name variance-component estimation. The reasoning goes like this. If the survey’s coordinates really have the stated standard deviation σ\sigma, then the control residuals, squared and summed, should come to σ2\sigma^2 times the number of survey rows the adjustment had left over — the survey’s share of the redundancy. If they come to more, the survey was stated too tightly; if less, too loosely. Restate σ\sigma as the square root of the ratio and solve again, and the fixed point is the weight the adjustment would choose for the survey given nothing but the pictures, the survey and itself.

The redundancy is the subtle part, and here it can be counted exactly. Twelve control coordinates enter as twelve rows. Seven numbers of any reconstruction are numbers no picture can name — a position, a turn and a scale — and those seven can be set from the survey without any contradiction, so they spend seven of its twelve rows. What is left over depends on the dial. With the survey stated loosely, the pictures carry the shape alone and the survey’s share of the redundancy is the remaining five: in this courtyard it is 5.00 at a stated 1 m, 4.62 at 10 mm and 3.90 at 5 mm. Stated tightly, the survey takes over the shape and leaves its redundancy to the pictures; at 0.1 mm the survey’s share is 0.01.

So the fixed point is well defined, and it can be read per adjustment. That matters, because a surveyor has one adjustment and not two hundred, and how far the self-chosen weight wanders from one set of marks to the next is half the answer.

A random survey's residuals choose its own accuracy: 1 mm read as 0.6, 5 mm read as 4.7, 20 mm read as 19.0Two hundred adjustments of the six-picture courtyard for each of three random surveys, marks read to 1 px. In each one, the stated accuracy at which the control residuals' sum of squares over their redundancy equals the stated variance — the weight the adjustment would give the survey from its own output. The bar runs from the tenth to the ninetieth percentile of the two hundred, the dot is the median and the tick is the survey's true accuracy: 1 mm true, median 0.62 mm, 0.10 to 2.02 mm, 78 of 200 with no crossing on the sweep; 5 mm true, median 4.74 mm, 2.18 to 7.18 mm, 4 of 200 with no crossing on the sweep; 20 mm true, median 18.96 mm, 11.87 to 27.63 mm.0.10.3131030the accuracy the adjustment's own residuals choose (mm)survey really 1 mmsurvey really 5 mmsurvey really 20 mmmarks read to 1 px · 200 adjustments a surveybar: 10th–90th percentile · tick: the truth
Fig. 1 Three random surveys, two hundred adjustments each, marks read to a pixel. For each adjustment, the stated accuracy at which the residuals’ sum of squares over their redundancy equals the stated variance. The bar spans the tenth to ninetieth percentile, the dot is the median and the tick is the truth.

For a random survey the method works, and it works without being told anything. A 20 mm survey is read as 18.96 mm at the median, a 5 mm survey as 4.74 mm, and the middle eighty per cent of single adjustments lie within about a factor of two either side — 11.87 to 27.63 mm for the 20 mm survey. That is the textbook’s weight — the one the dial showed to be best for a random survey — recovered from the adjustment’s own output.

The 1 mm survey is the instructive failure. Its median is 0.62 mm, and seventy-eight of its two hundred adjustments have no fixed point on the sweep at all. The reason is that the residuals do not see the survey on its own. They see the survey’s error plus the pictures’ own error at the four control points, and with marks read to a pixel the pictures put each control point a few tenths of a millimetre from where its rays meet. A survey better than that is below the floor the pictures can resolve, and the residuals cannot tell it from a perfect one. Where the adjustment stops found the same floor under the reprojection error.

A random survey's residuals choose its own accuracy: 1 mm read as 0.9, 5 mm read as 4.7, 20 mm read as 19.2Two hundred adjustments of the six-picture courtyard for each of three random surveys, marks read to 0.1 px. In each one, the stated accuracy at which the control residuals' sum of squares over their redundancy equals the stated variance — the weight the adjustment would give the survey from its own output. The bar runs from the tenth to the ninetieth percentile of the two hundred, the dot is the median and the tick is the survey's true accuracy: 1 mm true, median 0.93 mm, 0.54 to 1.39 mm; 5 mm true, median 4.72 mm, 3.02 to 6.90 mm; 20 mm true, median 19.24 mm, 12.80 to 27.47 mm.0.10.3131030the accuracy the adjustment's own residuals choose (mm)survey really 1 mmsurvey really 5 mmsurvey really 20 mmmarks read to 0.1 px · 200 adjustments a surveybar: 10th–90th percentile · tick: the truth
Fig. 2 The same three surveys with the marks read to a tenth of a pixel. The pictures’ floor drops below the best survey, and all three are read at their own accuracy.

Read the marks ten times more finely and the floor drops well below the best survey. The 1 mm survey is then read as 0.93 mm, its middle eighty per cent between 0.54 and 1.39, and every adjustment finds a fixed point. The two coarser surveys barely move, at 4.72 and 19.24 mm, because they were already well above the floor.

This is a practical result in its own right, and the earlier measurement says how much it is worth. With fine marks, a 20 mm survey stated at a tenth of a millimetre made the courtyard’s shape thirteen times worse than the pictures alone. The self-chosen weight never goes near that setting. Whatever its errors are, a survey cannot be badly over-trusted by an adjustment that sets the weight from its own residuals, because over-trusting makes the residuals large against the stated accuracy, and that is exactly what the fixed point refuses.

What the residuals of a systematic survey measure

The open question was about the other kind of survey, where every point is out in a fixed direction and the error is the same every time the survey is used. Here the measurement draws forty such surveys rather than twelve. Each one puts all four control points exactly 10 mm out, in directions chosen once and then kept, so every survey has the same size of error and only the marks change from one adjustment to the next.

Of a survey’s twelve error numbers, seven can be absorbed by moving, turning and scaling the reconstruction; those make no contradiction with the pictures and leave no residual. The other five are the part of the error that no similarity can absorb — a change in the distances between control points, or in the angles they make — and that is all the pictures can contradict. Call it the visible part. For forty surveys of identical size it ranges from 2.9 to 8.3 mm a coordinate, because how much of a fixed 10 mm error happens to lie along a similarity depends on its directions. A random survey of the same size has a visible part of 5.8 mm a coordinate on average, which is exactly its per-coordinate standard deviation; for a random survey the visible part is a fair sample of the whole.

Forty systematic surveys: the weight the residuals choose is the size of the error the pictures can see (rank correlation 0.95)Forty surveys, each putting its four control points 10 mm out in its own fixed directions, marks read to 1 px. Across, the part of each survey's error that no similarity can absorb — the five of its twelve numbers the pictures can contradict — as a size per coordinate, 2.9 to 8.3 mm. Up, the median over 200 adjustments of the accuracy the adjustment's own residuals choose for it. The points lie along the diagonal, rank correlation 0.95: the residuals report that size and nothing else.2357235710the part of the survey error the pictures can contradict (mm a coordinate)accuracy its residuals choose (mm)chosen = visible40 surveys, 10 mm a point · marks read to 1 pxrank correlation 0.95
Fig. 3 Forty systematic surveys, each 10 mm out at every point. Across, the size of the part of each survey’s error that no similarity can absorb; up, the median accuracy the adjustment’s residuals choose for it. The diagonal is where the two are equal.

The self-chosen weight is that visible size. At a pixel the two agree to a rank correlation of 0.95, and at a tenth of a pixel to 1.00. That is the whole of what variance-component estimation can learn from a systematic survey, and it is the right answer to the question the method asks: how large is the disagreement between the survey and the pictures? A survey whose error is mostly a similarity is reported as good, because as far as the pictures are concerned it is.

The earlier essay’s question was different. It asked not how large a survey’s error is but how much the error would do to the scene, and those turn out to be different things.

What the residuals can see does not say what the error will do: rank correlation 0.32The same forty surveys. Across, the size of the error the pictures can contradict, which is what the residuals report; up, how far that error bends the courtyard's shape when the survey is held. The two are nearly unrelated, rank correlation 0.32, while the bend orders the surveys by the weight that works best for them at 0.90. Two surveys whose visible errors are within 6 % of each other, 7.87 and 7.67 mm, bend the scene by 1.11 and 4.47 mm.024468the part of the survey error the pictures can contradict (mm a coordinate)bend when the survey is held (mm)same size, ×4.0 the bend40 surveys, 10 mm a pointvisible size against bend: 0.32
Fig. 4 The same forty surveys. Across, the size of the error the pictures can contradict — what the residuals report. Up, how far that error bends the courtyard’s shape when the survey is held. The two marked surveys have visible errors within 6 per cent of each other.

The visible size and the bend are close to unrelated: rank correlation 0.32. Two surveys whose visible errors are 7.87 and 7.67 mm a coordinate bend the courtyard by 1.11 and 4.47 mm when held — four times as much for the same size of disagreement. And it is the bend, not the size, that sets the weight a survey deserves. Across these forty, the bend orders the surveys by their best weight at a rank correlation of 0.90, which is the relation the earlier essay found among twelve and could only describe as loose.

Why the size cannot set the weight

The measurement does not isolate why the two come apart, but the likeliest reading is that the five visible numbers are not alike. Each is a different way of deforming the four control points against each other, and the pictures tie those deformations to the rest of the scene with very different strength.

A deformation that moves one control point along a direction its own rays measure poorly — along its line of sight from the arc of cameras, roughly — can be held by the adjustment at little cost to anything else. The point slides; its own marks misfit by a little; the cameras and the other points stay where the pictures put them. A deformation of the same size that changes a distance the pictures measure well cannot be absorbed by one point. The cameras have to move to accommodate it, and once they move, every point they see moves too. On that reading the first kind leaves a residual and no bend, and the second leaves a residual and a bend. A sum of squares adds the two kinds together and keeps no record of which is which.

So the self-chosen weight is unrelated to the best one.

Chosen by its own residuals, a systematic survey's weight is unrelated to the weight it needs: rank correlation 0.17The same forty surveys, marks read to 1 px. Across, the median accuracy the adjustment's residuals choose; up, the stated accuracy that gives the smallest shape error, read on a sweep from 0.1 mm to 1 m. The residuals choose 1.4 to 8.5 mm; the best weights run from 0.1 to 15 mm, and the rank correlation between the two is 0.17. Points sharing a best weight are spread a few pixels apart so that each one shows.12357100.10.31310accuracy the survey's own residuals choose (mm)accuracy that works best (mm)chosen = best40 surveys, 10 mm a point · marks read to 1 pxrank correlation 0.17
Fig. 5 The forty surveys, marks read to a pixel. Across, the median weight the residuals choose; up, the stated accuracy that gives the smallest shape error, on a sweep from 0.1 mm to 1 m.

The residuals choose between 1.4 and 8.5 mm. The best weights run from 0.1 mm — hold the survey — to 15 mm, and the rank correlation between what the residuals choose and what works best is 0.17. Variance-component estimation, applied to a systematic survey, answers its own question correctly and the surveyor’s question not at all. It is the same lesson an uncertainty is quoted from something drew about the pictures’ own error: a number that does not say what it is measured against says less than it seems to. A survey’s estimated accuracy is measured against the pictures’ disagreement with it, and the disagreement is not the damage.

The direction knows what the size does not

A sum of squares throws away the direction, and the direction is where the distinction lives. The twelve residuals are not just a size. They are a specific deformation of the four control points, the very one the pictures object to, and it can be pushed back through the adjustment to ask what it would do.

The step is a linear one, and it is the same solve as the rest of the measurement. Treat the residual vector as though it were the survey’s error, hold the survey at it, and read off the bend. With exact marks this is not an approximation. The residuals of a loosely weighted adjustment are precisely the visible part of the survey’s error, and the visible part is the only part that bends anything, because the other seven numbers are a similarity and a similarity has no shape. Pushing the residuals back through therefore has to reproduce the bend the true error causes.

The residuals' direction carries the bend exactly; one adjustment's reading at 1 px is swamped by the pictures' own errorThe forty surveys. For each, the twelve control residuals of a loosely weighted adjustment are treated as if they were the survey's error and pushed through the adjustment with the survey held; up is the bend that predicts, across the bend the true error causes. With exact marks (filled) the prediction is the bend to within 1.4 %, because the residuals are exactly the part of the error that bends anything. From one adjustment with marks read to 1 px (open) the residuals also carry the pictures' own error at the control points, and the prediction orders the surveys at rank correlation 0.28.024601234bend the survey's true error causes when held (mm)bend predicted from the residuals (mm)filled: exact marks · open: one adjustment, marks read to 1 pxrank correlation 0.28
Fig. 6 For each of the forty surveys, the bend predicted by pushing a loosely weighted adjustment’s control residuals back through the adjustment with the survey held, against the bend the true error causes. Filled: exact marks. Open: one adjustment with marks read to a pixel.

It does, to within 1.4 per cent on every one of the forty, and the 1.4 per cent is the difference between the linear solve and the held limit it approximates, not a property of the surveys. With exact marks, a surveyor who has the residuals has the bend.

With marks read to a pixel the prediction is much worse, and the reason is the floor from the first figure. The residuals of a real adjustment carry the pictures’ error at the control points as well as the survey’s, and the pictures’ part has a direction too, which the adjustment pushes back through faithfully. A perfect survey with marks read to a pixel has residuals that predict a bend of 0.73 mm at the median and 1.85 mm at the ninetieth percentile — a bend caused by nothing but the reading error, and the same size as the bends being predicted. From a single adjustment at a pixel, the open points scatter, and they order the forty surveys by their true bend at a rank correlation of only 0.28.

The pictures’ share of the residuals shrinks as the marks are read more finely, so the question is how finely.

One adjustment's residuals order forty surveys by their bend at 0.56 with marks read to a pixel and 0.99 at a tenthFor the forty surveys, the rank correlation between the bend predicted from a single adjustment's residuals and the bend the true error causes, averaged over twenty adjustments, as the marks are read from 2 px to 0.05 px; beside each point, the median error of a single prediction. 2 px: 0.35, 85 %; 1 px: 0.56, 53 %; 0.5 px: 0.82, 28 %; 0.2 px: 0.96, 12 %; 0.1 px: 0.99, 6 %; 0.05 px: 1.00, 3 %. The residuals' noise is the pictures' own error at the four control points, and it shrinks with the marks.210.50.20.10.0500.5001how finely the marks are read (px)rank correlation, predicted bend with true±85%±53%±28%±12%±6%±3%40 surveys · 20 adjustments eachlabel: median error of one prediction
Fig. 7 How well a single adjustment’s residuals order the forty surveys by the bend they cause, averaged over twenty adjustments, as the marks are read from two pixels to a twentieth. Beside each point, the median error of one prediction.

The answer has a sharp shape. At two pixels a single adjustment orders the surveys at 0.35 and its prediction is out by 85 per cent at the median. At a pixel it is 0.56 and 53 per cent; at half a pixel 0.82 and 28 per cent. At a fifth of a pixel it is 0.96 and 12 per cent, at a tenth 0.99 and 6 per cent, and at a twentieth 1.00 and 3 per cent. The figure at the head of this essay is the tenth-of-a-pixel case: the filled and open points nearly coincide, and the residuals of one adjustment draw the forty surveys’ damage almost exactly.

The forecast arrives when it is needed

That shape matters because of where the earlier essay found the stakes. With marks read to a pixel the dial matters modestly: the pictures leave so much shape error of their own that holding a systematic survey costs 7.5 per cent on average. With marks read finely, holding a bad survey can be ruinous, because the pictures leave little error and the survey’s bend is suddenly the largest thing in the reconstruction. The residuals’ direction is noisy in exactly the regime where nothing is at stake, and clean in exactly the regime where something is.

Forty systematic surveys, marks read to 0.1 px: the residuals' own weight costs at most 1.7 %, a loose one 1.8 %, holding 822 %For each of the forty surveys, the shape error under three ways of weighting it, above the error at the weight that turned out best, on a logarithmic scale; one dot a survey, the bar its worst. residuals choose: mean 0.11 %, worst 1.7 %; stated at 1 m: mean 0.11 %, worst 1.8 %; held outright: mean 262.31 %, worst 822.1 %. Excesses under a hundredth of a per cent are drawn at that floor.0.01%0.1%1%10%100%1000%shape error above what the best weight givesresiduals choosestated at 1 mheld outright40 surveys, 10 mm a point · marks read to 0.1 pxtick: each rule's worst
Fig. 8 For each of the forty systematic surveys, marks read to a tenth of a pixel, the shape error under three ways of weighting the survey, above the error at the weight that turned out best. One dot a survey; the tick is each rule’s worst.

At a tenth of a pixel, holding a systematic survey outright costs 262 per cent above the best weight on average and 822 per cent at worst — the courtyard’s shape nine times worse than it need be. Stating the survey loosely, at a metre, costs 0.11 per cent on average and 1.8 at worst. The weight the residuals choose for themselves costs the same 0.11 per cent, and 1.7 at worst. At a pixel the three rules are closer together: 1.15 per cent on average for the self-chosen weight, 1.70 for the loose one and 7.5 for holding, with worsts of 3.7, 3.6 and 34 per cent.

So the self-chosen weight is as safe as the loose default and never better than it by much. That confirms the practical conclusion the earlier essay reached, now with the adjustment’s own output rather than a rule of thumb: for a systematic survey the dial is nearly flat on the loose side, and the only setting that can do real damage is the one that holds the survey hard.

What the residuals’ direction adds is a forecast of that damage. A great deal of practice holds control outright — it is the simplest thing to do, and for a good survey it is close to harmless. A surveyor who first runs the adjustment loosely and pushes the twelve residuals back through it learns, before holding anything, how far holding would bend the scene. With marks read to a tenth of a pixel, that forecast ranks forty surveys of identical size by their damage almost perfectly, and it is in millimetres of shape rather than in a statistic of residuals.

Three statements, and the reading precision each needs

The residuals’ size estimates a survey’s accuracy, and for a random survey that is the right weight. The adjustment’s own fixed point reads 5 and 20 mm surveys within a few per cent of the truth at the median, at any reading precision measured. It cannot see a survey finer than the pictures’ own error at the control points, and it says so by finding no fixed point.

For a systematic survey the size is the visible part of the error, and the visible part does not say what the error will do. Forty surveys of the same size have visible parts from 2.9 to 8.3 mm and bends from under a millimetre to over four, with the two related at 0.32. A weight set from the size is unrelated to the weight that works best. It is, however, never far from it, because the cost curve is flat on the loose side.

The residuals’ direction carries the damage, exactly with exact marks and usefully from a single adjustment once the marks are read to a fifth of a pixel or finer. That is the regime in which holding a systematic survey goes from costing a few per cent to costing several times the pictures’ own error.

What this measurement assumes

One scene and four control points. The courtyard, the six-picture arc and the four surveyed points are the earlier essays’. With four points the visible part has five numbers; with n points it has 3n − 7, and the residuals then carry more of the survey and more of the pictures’ noise at once.

Linear about the truth. Every solve reuses the Jacobian of the true courtyard. The eighth held number is the full nonlinear version of the held case, and the linear solve agrees with it to within a few per cent at 10 mm of survey error; the shifts here are millimetres in a scene metres across.

Random marks. Every mark’s reading error is independent, so the pictures’ share of the residuals has the covariance the adjustment assumes. A systematic error in the marks — a slightly wrong lens model, the case a wall’s twist test found goes wrong when its error is assumed rather than measured — would put a direction into the pictures’ share that the forecast would read as survey.

A survey that is wrong in one fixed pattern. Each of the forty is a single deformation, the same in every adjustment. A real survey’s error is part systematic and part random, and the random part adds to the residuals’ size in the way the first figure shows, without adding to the damage the direction forecasts.

Still open: whether the forecast survives more control points

Four points give the survey five visible numbers, and the courtyard ties them to the rest of the scene strongly enough that the pictures’ noise at the control points fades by a fifth of a pixel. More control changes both sides. The visible part grows to 3n − 7 numbers, so the residuals hold more of the survey’s error and a fuller picture of its pattern; but each added point brings its own share of the pictures’ noise, and a point at the edge of the scene, seen by few cameras at a narrow angle, brings a large one. The spread a point gets measured how unevenly a scene’s points are pinned by the same arc of cameras, and a control point is one of those points.

The measurement that follows repeats the forecast with eight and twelve control points, spread across the courtyard and bunched at one end, and asks whether the reading precision at which a single adjustment’s forecast ranks surveys correctly moves finer or coarser as control is added. If it moves coarser, then more control makes a survey’s damage more forecastable, and the practical instruction is to survey many points and run the adjustment loose before holding any. If it moves finer, because the badly seen points’ noise dominates, then the forecast is a tool for a small, well-seen control network, and the rule for a large one is simply never to hold it. Either way the answer is a statement about where control should go, which is a question closing a loop and a scale chain each answered for a different kind of measurement.

A survey’s residuals are the pictures’ disagreement with it. Their size is how large the disagreement is, which is the right weight for a random survey and an unrelated one for a systematic survey. Their direction is what the disagreement would do to the scene if the survey were believed, and with marks read finely it can be read off one adjustment before anything is held.

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.

bundle adjustmentControl pointCovarianceerror propagationgauge freedomleast squaresResidualSimilarity