A survey's residuals give its size, and their direction gives its damage
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 , then the control residuals, squared and summed, should come to 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 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.
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.
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.
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.
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.
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.
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.
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.
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.
- One square-on picture ties the two groups a third row only steadies — both name bundle adjustment, covariance, gauge freedom, least squares, residual
- A length fixes the scale where it lies, and the worst camera nowhere — both name bundle adjustment, control point, covariance, gauge freedom
- A loop's far side is a length — both name bundle adjustment, control point, covariance, gauge freedom
- A scale bar is worth its ends, not its tape — both name bundle adjustment, control point, covariance, gauge freedom
- An uncalibrated picture ties the two groups, if the height of its centre is known — both name bundle adjustment, covariance, gauge freedom, least squares
- Cameras placed from one survey are wrong together — both name control point, error propagation, gauge freedom, similarity
Named objects
A flat tag is an object no other essay names yet.
bundle adjustmentControl pointCovarianceerror propagationgauge freedomleast squaresResidualSimilarity