A camera placed from the marks aims true at them
Worth reading first: Two rays that do not meet · Depth is a reciprocal.
A third ray is worth what its picture is worth took a pair of eyes 0.9 m apart, a point 7 m in front of them, and a third eye walked backwards, and asked how its ray should count. Two estimators disagreed about it. The point nearest every ray in metres, the plain midpoint generalised to three rays, counts each ray’s miss equally per metre, so a distant eye, whose half-pixel reading spans more metres at the point, pulls as hard as a near one. The point that minimises reprojection error counts each ray by what its own picture says, which is roughly one over the distance squared in metres, and lets the distant eye’s ray fade as the eye goes back. The second was right, and the first was wrong in a way that grew with the distance.
All of that held every camera exactly where it was. The essay’s open question was what changes when it is not: when each ray’s uncertainty has the camera’s own uncertainty in it as well as the reading’s, and when, as is common, the distant camera is also the hardest to place. Whether ignoring the camera’s uncertainty is a small correction or the dominant term turns out to depend on how the camera was placed, more than on how far away it is.
Three ways a ray can miss
A ray from a camera misses the point it was aimed at for three independent reasons, and they behave differently with distance. The reading of the point in the picture is wrong by some fraction of a pixel; at a focal length in pixels that is an angle , and at a distance it is metres across the ray. The camera’s orientation is wrong by some angle , which turns the ray by that angle and misses by metres at the point. And the camera’s position is wrong by some distance in each direction, which moves the whole ray sideways by that distance, the same number of metres at every range.
The variance that ought to weight the ray is the sum of the three:
The two kinds of term cross at a distance . For a reading of half a pixel at 620 px and a camera placed to 5 cm, the reading alone matches the placement at 62 m; with an aim wrong by 0.05° added, the crossing is at 42 m. Nearer than that, a ray’s error is mostly the camera’s place, and it is the same number of metres whatever the range.
That reverses the conclusion of the essay before. If every ray’s error is a fixed number of metres, every ray deserves the same weight per metre, which is what the plain midpoint gives. The reprojection weight is right only beyond , where the reading and the aim dominate and the error grows with the distance. For a scene a few metres away and cameras placed by survey to a few centimetres, the midpoint is not a choice of the wrong ruler, as the midpoint is a choice of ruler argued for exact cameras; it is close to the right one.
The weighting matters less than the placement
The arithmetic says which weight is right. The trials say how much the choice is worth.
With the cameras exact, weighting by one over the distance squared gives the point to 58.5 mm and equal weights per metre give 75.4 mm, the earlier essay’s result. With every camera placed to a centimetre they are 118 and 125 mm, already close. At 2 cm the order reverses, and at 5 cm the reprojection weight gives 530 mm against 509 for the midpoint’s. The weight that sums the three variances is never worse than either: 58.5 mm with the cameras exact, 117 at a centimetre, 508 at 5 cm.
What the figure shows more plainly than any of those comparisons is the scale. Placing the cameras to 5 cm makes the point nine times worse than reading it to half a pixel does, under any weighting. The pair’s baseline is 0.9 m and the point is 7 m away, so a sideways error of a few centimetres in one eye becomes a depth error about eight times larger; the triangle the two rays make is long and narrow, and moving its short side moves its far corner a long way. No weight undoes that, because the error is not in any one ray. It is in the pair, and the weighting only decides how to share what the pair already lost.
So the first half of the open question has a clear answer. Ignoring the cameras’ uncertainty in the weight is a small correction, a few per cent of the point’s error, at every placement. Ignoring it in the error budget is not small: it is the dominant term as soon as the cameras are placed less well than a millimetre or two, which is better than most surveys of camera stations can do.
The far eye’s share
The weighting does change one thing a great deal, which is how much the far eye counts.
One over the distance squared gives the far eye 5.3 per cent of the weight, whatever the placement, since it sees only the distance. Equal weights give it a third, whatever the placement, since they see nothing. The summed variance gives it a share that moves between the two as the placement worsens: with the cameras exact it is the reprojection share, with them placed to 20 mm it is 23.9 per cent, and at 40 mm it is most of the way to a third. Dragging the slider from nothing to four centimetres moves the far eye from a minor contributor to a near-equal partner.
That is the honest form of the earlier conclusion. A distant eye’s ray is less informative than a near one’s only if the reading is what limits it. When the camera’s place limits all three rays alike, the far eye’s ray is as good as the others in metres, and discounting it throws away a third of the evidence. The essay before found the reprojection weight protects the point from a distant camera’s imprecision; here it protects the point from an imprecision the distant camera does not have.
How far back the third eye is worth standing
The same arrangement, at a fixed placement error, can be asked what the third eye is worth as it walks back.
The pair alone gives 543 mm. Under the reprojection weight the third eye’s help fades as it goes back, as the essay before found, from 526 mm with the eye at 10.5 m to 540 at 56 m, nearly nothing. Under equal weights it keeps most of its help, 523 mm at 56 m. The summed variance does best at every distance, 511 mm at 56 m, because at that distance the far eye’s reading term is beginning to matter and the full weight discounts it a little, which equal weights cannot do.
Every curve sits within a tenth of the pair’s figure. The third eye stands almost behind the pair, on nearly the same line of sight, so its ray adds little that is new about depth, which is what two rays that do not meet found the depth of a pair is limited by, and why depth is a reciprocal of disparity with a baseline in it rather than a quantity a third eye on the same line can improve. Placement error in the pair is what decides the point, and a third ray along nearly the same direction cannot measure the pair’s own sideways error. The right way to buy precision here is not a third eye behind, at any weight. It is a camera from another direction, or a better survey of the two that exist.
A camera placed from marks has no free place
All of the above treats each camera’s position as known independently of the scene, to a stated tolerance, as it would be if each station were surveyed or read from a satellite fix. Most cameras in a reconstruction are not placed that way. They are placed from the scene itself: marks of known position are read in the picture, and the camera’s position and orientation are solved for so that the marks land where they were seen. That is the resection recovering the camera performs from a picture’s own vanishing points, done with points instead of lines.
A camera placed that way has a pose whose errors are tied together. If its position comes out too far to the left, its orientation comes out turned to the right by just the amount that keeps the marks where they were read. In metres the camera can be badly placed; in the picture, at the marks, it is nearly right, because nearly right at the marks is the condition it was solved under.
The numbers are lopsided in the way the argument predicts. Twelve marks read to half a pixel place a camera 21 m away to 100 mm in position, twice the survey tolerance that made the point nine times worse above. Yet the error that pose adds to the picture of a point at the marks’ centre is 0.31 px for each pixel of reading, a third of the reading’s own error, and it adds in quadrature, so the ray’s total is only 5 per cent worse than if the camera were exact. The pose’s error stays below the reading’s out to the edge of the marks and a little beyond, and reaches about a pixel per pixel 3 m to the side, 4 m beyond and 3 m nearer the camera. Past that the camera is a poorly placed camera, its errors no longer cancelling at the point, and growing with the distance from the marks the way an extrapolation does.
The distant camera that is hardest to place
The essay before guessed that the camera which is far away is also the one hardest to place, so that its ray is both imprecise and mis-aimed, and the two pull together. For a resected camera the first half is true and the second does not follow.
At 42 m the twelve marks place the third eye only to 404 mm in position, four times worse than at 21 m: a resected camera’s position error grows as the square of its distance, because both its leverage on the marks and its ability to tell a turn from a step fall with range. That is the sense in which the far camera is the hardest to place. Yet at the marks’ centre the point comes out at 62.0 mm with the eye placed this way and 62.3 mm with it exact. Nothing is lost, to the precision of 400 trials, and weighting the far ray for its pose changes nothing either.
Away from the marks the cost appears. Three metres to the side the point is 78 mm with the eye placed against 62 mm with it exact, a quarter worse, and weighting the far ray for its pose as well as its reading takes that to 73 mm, recovering about a third of the loss. Four metres beyond the marks the point is 154 mm against 152, a small difference only because that point is so much further from the pair that the pair’s own depth error swamps it.
So the second half of the open question also has an answer, and it is the opposite of the guess. A distant camera placed from the scene’s own marks is badly placed in metres and well aimed at the marks; its rays are as good as its readings wherever the marks are, and whether to weight for its pose is a question that arises only outside them. The quantity that decides it is not the camera’s distance but the point’s distance from the marks the camera was placed by.
Why the ruler question has two answers
The two halves look contradictory and are not. A camera placed independently of the scene carries an error that is a displacement, and a displacement costs the same number of metres at every range, so it argues for equal weights per metre. A camera placed from the scene carries an error that is a displacement and a turn tied together so as to cancel at the marks, and the error it leaves is a picture-space error that grows from nothing at the marks with distance from them. The first is a property of the camera alone and the second is a property of the camera and the point together. Which one a reconstruction has depends on what fixed its cameras.
A survey that placed both the cameras and the marks, as a survey is trusted at its own accuracy found most surveys do, carries both, and the weight for each ray is then the sum of the reading, the survey’s tolerance across the ray, and the resection’s picture-space error at the point. That is one formula with three terms, and the trials here say the weighting it gives is never worse than either simpler weight, and that the gain over the better of them is a few per cent.
Weighting is not where the precision is
Every comparison above ends the same way. The choice of weight moves the point by a few per cent. The choice of how the cameras are placed moves it by a factor of nine. A survey of camera stations to 5 cm turns a 58 mm point into a 509 mm point under the best weight there is, while a far eye resected from twelve marks around the point, placed eight times worse than that in metres, costs the point nothing 400 trials can see.
That is the practical rule the measurement leaves. Where the cameras’ places come from outside the scene, the error in them is the error budget, and the most useful thing a weighting can do is admit it, by giving every ray its true variance and quoting the point’s uncertainty from it, which an uncertainty is quoted from something found is rarely done. Where the cameras’ places come from marks in the scene, the marks are where the reconstruction is good, and the cameras’ own uncertainty matters only for what lies outside them.
One point, independent errors, a linear step
Only one point is triangulated, so every error here is independent between rays. In a real reconstruction a camera’s error is shared by every point it sees, and a point’s errors are correlated with its neighbours’, which is what the bundle keeps the needles turned found shapes a whole reconstruction’s uncertainty. The resection is a single linear step from the true pose on noisy marks, which is what a converged solver returns to first order; a solver started far away could settle elsewhere. The marks are read to the same error as the point and are taken as exactly known in position, as a scale bar is worth its ends, not its tape took its bar’s ends to be. A mark surveyed to a few centimetres is itself a placement error of the first kind, carried into a camera placed in the second way.
The two eyes of the pair are taken as exact in the resection trials, so that the third eye’s pose is the only thing tested. With the pair surveyed to 5 cm as well, the point is already 543 mm out from the pair alone, and nothing the third eye does is visible beside it.
Still open: whether marks in one picture place two cameras alike
The resected camera here was placed by its own reading of the marks, with errors independent of the pair’s. When every camera is placed from the same marks, they are placed with errors that come from the same mark positions, and a surveyed mark that is wrong by a centimetre moves every camera that used it in a related way. Two cameras placed from one wrong mark are wrong together.
The measurement that settles what that costs places all three cameras from the same twelve marks, with the marks’ own positions wrong by a stated survey error, triangulates points inside and outside the marks, and asks whether a shared mark error cancels at the point, since all three rays move together, or adds, since each camera moves differently for the same mark; how that compares with the independent resections measured here; and how many marks a survey must fix, and how well, before its errors stop being the largest term in a point the cameras see from inside them.
Cameras placed from one survey are wrong together takes that measurement: a survey shared by every camera moves the point with the survey’s own frame and costs it little inside the marks, while a separate survey per camera costs five to seven times as much, almost all of it along the line of sight.
A camera’s place costs a ray a fixed number of metres at every range, so a camera placed by survey pulls the right weight back towards the plain midpoint, and decides the point by itself. A camera placed from marks around the point carries no such error there: its pose is wrong in metres and right at the marks, and only a point outside them pays for it.
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.
- The spread a point gets — both name baseline, bundle adjustment, error propagation, triangulation
- A fit weighted by the miss trusts only the surface — both name baseline, midpoint, triangulation
- A point under water has two depths — both name baseline, midpoint, triangulation
- The lamp is the second eye — both name baseline, error propagation, triangulation
- The residual does not warn — both name baseline, midpoint, triangulation
- The stick a stereo pair puts back — both name baseline, midpoint, triangulation
Named objects
A flat tag is an object no other essay names yet.
Baselinebundle adjustmenterror propagationMidpointReprojection errorTriangulation