Series

Plumbline — the series

8 essays on one idea, from the one that introduces it to the one that assumes the rest.
  1. fitted k₁ = -0.280000true -0.280000, off by 5e-15

    Fitting a lens from straightness alone

    No calibration target, no known scene, no camera. Only the knowledge that some edges in the picture were straight — and the coefficient comes back to fifteen digits. Then it comes back with a companion, and the two are correlated at −0.997.

    part 3 · lens
  2. three edges crowded on one side5.69e-3two on one side, one on the other5.66e-4three edges near the centre6.73e-3three edges placed by search9.57e-4the centre free · log scalebest: 5.66e-4

    The lines that calibrate a lens

    One straight edge through the centre of a picture says nothing about a lens's distortion, and one 180 px from the centre determines k₁ to 9.0 × 10⁻⁴ — the precision rises in proportion to the offset. But distance from the centre is not enough. Crowd three edges on one side and, the moment the distortion centre is also unknown, the coefficient is ten times worse, because a bend on one side looks like a moved centre; put one edge across the centre and it barely changes.

    part 4 · lens
  3. 0102030400.2000.4000.6000.800where along the edge, as a fraction of the visible lengthshare of the edge's response to the coefficient, in per cent93% outside the middle halfone edge, 82 marks, cut into tenthsmiddle two tenths: 1.4%

    The response is at the ends and the information is not

    A radial map bows a straight edge by an amount that grows as the square of the distance along it, so 93 per cent of an edge's response to the coefficient lies in its outer quarters. Spending the marks there is 16 per cent worse than spreading them evenly, because two clusters say nothing a shifted, tilted line could not say. What identifies the coefficient is a curvature, which needs three places — both ends and the middle, which beats an even spread by 11 per cent.

    part 5 · lens
  4. 0100200300distance from the picture's centre, pxeach edge, by how far it passes from the centreoffset 20 px20–326offset 60 px60–330offset 125 px125–348offset 180 px180–372four edges, 82 marks eachevery one spans 16× in radius

    No design separates the two coefficients

    Separating a squared term from a fourth-power one was supposed to need marks at radii far apart, which is a statement about where edges are placed. It is not: one straight edge already runs from 20 px to 326. Spreading ninety-six marks over three edges or sixteen changes the answer by 23 per cent, spreading the offsets makes it 19 per cent worse, and the correlation stays at −0.98 whatever is done. What a plumb-line calibration determines is one number, to 1.52 thousandths, and which number depends on the model.

    part 6 · lens
  5. 60 px160 px260 px360 pxmarks every 8 px, kept inside the frame47 / 125 / 114 / 122 marks

    A known target sharpens the fit and does not separate it

    Printed circles of stated size were supposed to break the −0.98 correlation between a lens's two radial coefficients, because a circle puts every mark at one radius and no straight edge can. They do not: every design of circles leaves the pair 0.979 to 0.9997 correlated, and for circles of known size the figure is exactly the cosine between r³ and r⁵. What a known target buys is precision — 3.8 times the straight edges' at the same budget — and only if its size in the picture is known to about a thousandth.

    part 7 · lens
  6. distortion centretilted 50° about a horizontal axis, marks every 8 px47 / 125 / 163 / 178 marks

    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 thirty degrees, fit the tilt along with everything else, and the same ninety-six marks fix it to 2.46 — nearly twice as well. 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.

    part 8 · lens
  7. pose at scale 2correlation -0.989

    A closer pose sharpens one coefficient and not the pair

    Photograph a calibration target tilted four ways at several distances, and the two radial coefficients of the lens stay locked together near a correlation of −0.97. A target further off adds nothing at all. Bringing it closer sharpens the first coefficient by about a half, then stops, and pushes the pair closer together. What moves the correlation furthest is being told each pose's distance.

    part 9 · lens
  8. 0.010.030.10.313100200300radius in the picture (px)scatter of the displacement (px)the curveindependentk₁ aloneone pose, square on, 0.5 px300 px: 0.24 px

    A lens's curve is known where its coefficients are not

    Two radial coefficients correlated at −0.993 sound like a calibration that failed. Read as the displacement they make, the same fit knows the curve to a quarter of a pixel at the edge of the picture, ten times better than independent coefficients would. The ellipse of their errors lies almost along the line that leaves the curve unchanged, and the poses that sharpened the first coefficient most are not the ones that sharpen the curve.

    part 10 · lens

All series