A lens read from many photographs follows the best one
Worth reading first: The cube that is a box · Straight lines that are not.
A street can read its own lens, if its edges are found finely took a photograph of a street through a lens with 2% barrel distortion at the frame’s corner, and read the lens from the street itself. Every edge straight in the world must be straight once the lens is taken out, so the radial coefficient that best straightens the street’s verticals and rooflines is the lens, the plumb-line method that fitting a lens from straightness alone had set out. Read finely enough, that lens let the street be drawn through it better than the copyist’s table of chords; read coarsely, or from edges that were short and near the middle, it did worse.
The essay ended on a fact about cameras that a single photograph does not use. A photographer who shoots a street, then the next street, then a doorway, has several pictures through one lens, each with a few straight edges of its own. Pooled, those edges might pin the lens where no single photograph can, and a street with its rooflines cropped could borrow its lens from a picture that has them. The questions were how the lens’s spread falls with the number of pictures; whether a photograph with only weak edges near its centre is then drawn as well through the pooled lens as one with strong edges through its own; and whether pooling hides a lens that changed between pictures, a zoom or a refocus, inside a single smooth misfit.
The answers are one fact about information, read three times.
Five photographs, one lens
The lens is the earlier one, a single radial coefficient giving 2% barrel at the frame’s corner. Five scenes are photographed through it, each with its own tilt.
The narrow street is the photograph that cannot read its lens: five verticals within four metres of the middle of a street 25 metres away, tilted 12 degrees, short edges near the centre where the lens does least. The street with nine verticals, and the same street with three rooflines along its facade, are the earlier essay’s. A tower’s five verticals fill the frame’s height at a 30-degree tilt. A level facade, square on, gives five long horizontal edges right across the frame.
Every edge is read as points along it, each moved across the edge by a reading error of 0.3 pixels. For a trial lens every point is moved back through it, every edge is fitted with its own straight line, and the misfit is measured in the photograph’s own pixels, the precaution the earlier essay found necessary because a misfit measured after the lens is taken out drifts toward pincushion. Pooling changes only what is summed: the edges of every photograph in the pool, each with its own line, all through one coefficient.
What each photograph reads alone
Alone, the narrow street reads the corner distortion with a spread of ±1.09%, more than half the distortion it is trying to measure. The street’s verticals read it to ±0.32% and with the rooflines to ±0.16%, the earlier essay’s numbers. The tower reads it to ±0.36%. The level facade reads it to ±0.087%, twelve times more finely than the narrow street.
The order is the order of where the edges run. Radial distortion grows as the cube of the distance from the middle, so an edge’s bow, the departure from its chord that the method reads, grows with how far out the edge lies and with its length squared. The facade’s horizontals cross the whole frame at a range of heights, so each is long and its ends are far out; the narrow street’s verticals are short and close to the middle. The lines that calibrate a lens made the same point about where to put a calibration’s lines, and the response is at the ends, the information is not why it is the long lines near the edge that carry it.
What an edge is worth
The order can be put as arithmetic, to first order. A one-term lens moves a point outward from the middle of the frame by the coefficient times the cube of its distance. A straight edge that runs past the middle at a perpendicular distance , with a length , is moved more at its ends than at its middle, and the difference is the bow the method reads: its sagitta, the gap between the edge’s middle and its chord, is the coefficient times times the square of half the length, in units of the focal length. The bow is linear in the coefficient, so the information an edge carries about it is the square of that sensitivity, times the number of points read along it, over the reading variance.
That makes an edge’s worth its offset from the middle times the square of its length, squared. An edge through the middle of the frame is worth nothing however long it is, because a radial displacement along a line through the centre stays on the line; a lens bends a table’s tilt, not its lines met the same blindness in the verticals near the middle of the street. An edge near the frame’s edge is worth the fourth power of its length. The facade’s horizontals are long and run well above and below the middle, and five of them outweigh everything else here. The narrow street’s verticals are short and close to the vertical through the middle, and its five together carry less than one of the facade’s.
None of that depends on what the photograph is of. It depends only on where the photograph puts its straight edges, which is a matter of how the photographer framed the scene. A street shot looking straight down its middle, with its kerbs converging on the frame’s centre, reads its lens badly whatever it holds, because its longest edges point at the centre and are worth nothing; the same street shot across, with its building line running the width of the frame above the middle, reads it well. A table of leans converges on the wrong point found that a lens moves the vanishing point a street’s verticals agree on; it is the edges that do not pass near that point, the ones running across the frame, that measure the lens.
Information adds, so the best photograph dominates
Pooling the narrow street with the street’s verticals brings the spread from ±1.09% to ±0.39%; adding the tower and the facade, to ±0.087%; eight photographs, a second shot of each of four scenes added to the four, to ±0.058%. The dotted line is the prediction from information alone: each photograph’s information about the lens is one over its own spread squared, independent photographs’ informations add, and the pool’s spread is one over the root of the sum. It predicts ±0.30%, ±0.081% and ±0.054%, and the measurement, sixty readings of each pool, lies on it within its own sampling noise.
The first answer, then, is not the square-root law a reader might expect. The spread does not fall as one over the root of the number of photographs; it falls as one over the root of their summed information, and the informations differ by a factor of a hundred and fifty between the narrow street and the facade. A pool of four with a facade in it reads the lens as well as the facade alone, to two significant figures, because the facade carries 87% of the pool’s information. The narrow street adds almost nothing to the pool, and the next section is about what it gains from it.
The weak photograph, drawn through the pool’s lens
The reason to read the lens at all is to take it out of a photograph before the lean table is ruled, which the earlier essays did for a street drawn by a copyist. The narrow street is the photograph that needs help.
Through the lens its own edges give, the narrow street is drawn with a worst error at a top of 0.21 to 0.26 pixels, root-mean-square over sixty readings, about the same whichever pool it sits in, since its own reading does not change. Through the lens a pool of two gives, 0.081 pixels; a pool of four, 0.018; a pool of eight, 0.012. The pool of four draws the narrow street twelve times better than the street can draw itself.
So the second answer is yes, and more than yes: the weak photograph, drawn through the pool’s lens, is drawn better than the strong photographs are drawn through their own, because the pool reads the lens more finely than any one of them. The earlier essay found a street whose own edges were found coarsely did worse through its read lens than the copyist did with no lens at all. A street in a pool has no such risk, provided the pool holds one photograph with long edges far from the middle. The practical form is short: when a camera’s photographs include one of a level facade, a row of window sills, a horizon, read the lens from that one and take it out of all of them.
A lens that changed
The fact that makes pooling powerful is that the lens is the same in every photograph. A zoom lens moved between shots, or a lens refocused from near to far, changes its distortion, and then the pool is fitting one lens to two.
The pool has a test of its own. Fitted separately, each photograph’s edges leave a misfit of the reading error alone; fitted through one lens, they leave that plus whatever a single lens cannot reconcile. The difference, over the reading variance, has a known distribution when the lens really is one: a on one fewer degree of freedom than there are photographs, seven for eight. The test flags a pool when it passes the 5% point of that distribution, 14.0.
With no change it flags 2% of pools, near its stated false-alarm rate. When the last four photographs’ lens changed by 0.1% at the corner it flags 8%, by 0.2% it flags 20%, by 0.4% it flags 80%, by 0.6% it flags 97%. Meanwhile the pooled lens sits between the two, at −1.79% for lenses of −2% and −1.6%, and draws every photograph slightly wrong in opposite directions. A change of a few tenths of a per cent at the corner, which is the size of change a zoom moved by a small step or a refocus makes, is invisible to the test in most pools and is absorbed into one smooth misfit. A change of half a per cent is caught.
The test’s power follows the same information arithmetic. A change is visible when the two groups of photographs each read their lens more finely than the change; the eight photographs here split into two groups of four, each with a facade, and each group reads its lens to about ±0.09%, so a change of 0.4%, four of those spreads, is usually caught.
When the best photograph is the one that changed
That arithmetic has a consequence that is easy to miss, and it is the essay’s real answer to the third question.
Take the pool of four and let the lens change only for the facade, the photograph that carries 87% of the pool’s information. The pooled lens follows the facade almost entirely: −1.81% when the facade’s lens is −1.8% and the other three’s −2%, −1.63% when it is −1.6%. The test flags 7% of pools at a change of 0.2% and 15% at 0.4%, barely above its own false alarms. The other three photographs read the lens too coarsely to disagree with the facade by more than their own noise, so the pool goes wherever the facade goes and the test, which compares the pool with its parts, finds the parts consistent with it.
So a pool does hide a changed lens, and it hides it in exactly one place: the photograph that dominates the pool’s information. A change anywhere else drags the pooled lens a little and the dominant photograph objects; a change in the dominant photograph drags it all the way and nothing objects. The narrow street drawn through that pooled lens is then wrong by 0.079 pixels, still better than the 0.21 its own lens gives it, so even here the weak photograph is better served by the pool. What is wrong is the lens the pool reports, which is the dominant photograph’s and not the camera’s at the other photographs’ moment.
The defence is in the camera’s own record rather than in the pictures. A pool should hold photographs taken at one zoom setting and one focus distance, which a photograph’s metadata usually records, and when it cannot, it should hold more than one photograph with strong edges, so that no single picture carries most of the information.
The pool that was modelled
One radial coefficient. The lens is a one-term barrel throughout, as in the earlier essays; a lens curve is known where its coefficients are not found that a two-term lens read from edges is known as a curve rather than as numbers, and a pool with two coefficients would share its curve, not its coefficients, between photographs.
The principal point and focal length are known and the same in every photograph. A zoom changes the focal length too; a test that let each photograph keep its own focal length would see the zoom more easily, since focal length moves the edges in ways a distortion does not, and no design separates the two coefficients is the reminder that what can be told apart depends on the model.
Edges are straight in the world and read without bias. A facade whose sills are not quite level, or a tower whose edges taper, bows its edges for reasons that are not the lens, and a pool dominated by that photograph inherits the bow as distortion, the trap straight lines that are not set out.
Sixty readings a pool. The spreads quoted carry about a tenth of their own value as sampling error, which is why the pool of two lies a little off the information line; the shares the test flags carry about five percentage points.
Still open: whether a pool can name its dominant photograph’s fault
The dominant photograph is the pool’s strength and its blind spot, and the test on the pooled misfit cannot see past it. But each photograph’s own misfit is still there to read: the earlier essay found that a photograph whose edges straighten to their reading error has read its lens consistently, and one whose edges stay curved at the best lens has a fault the model does not describe.
The measurement that settles what that is worth leaves one photograph out of the pool at a time, fits the lens from the rest, and asks whether the photograph left out straightens through the others’ lens to its own reading error; whether that leave-one-out check finds a changed lens in the dominant photograph, which the pooled test misses, and at what change; and whether it also finds a photograph whose edges are not straight in the world, a facade with a sagging sill, which a pool would otherwise read as distortion and impose on every other picture.
A sagging sill shows in its own photograph, a changed lens only against another takes that measurement and corrects its first step: a photograph left out must be compared with the rest by both lenses’ spreads, or an innocent facade is accused half the time; done so, a changed facade is caught only as finely as the weak photographs read the lens, unless a second strong photograph referees, while a sagging sill is found by the facade’s own misfit and by no comparison.
A camera’s photographs share one lens, and its straight edges pooled across them read the lens as well as their informations added: mostly as well as the best photograph, a level facade with long edges far from the middle. A narrow street that reads its own lens to ±1.09% at the corner is drawn through the pool’s lens twelve times better than through its own. A lens that changed between photographs is flagged by the pooled misfit once the change is several times the pool’s spread, except in the photograph that dominates the pool, where the pooled lens follows it and nothing objects.
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.
- A wedge moves the centre, not the lens — both name camera calibration, identifiability, least squares, model error, radial distortion
- A calibration through glass reports a prism — both name camera calibration, identifiability, model error, radial distortion
- An image circle pins a fisheye's horizon, if its field is known — both name camera calibration, least squares, model error, radial distortion
- The wedge recovered with the camera — both name camera calibration, identifiability, least squares, model error
- Turning the glass tells the window from the lens — both name camera calibration, identifiability, model error, radial distortion
- A body that bounces leaves a second swelling in the rows, and one pass reads both — both name identifiability, least squares, model error
Named objects
A flat tag is an object no other essay names yet.
Camera calibrationIdentifiabilityleast squaresModel errorPlumb line methodRadial distortion