Concept

Principal point — where it appears

Where the optical axis meets the picture, which is near the centre of the frame and is not required to be at it. Assuming it is the frame's centre is what a shift, a crop or a tile of a picture makes wrong, and it costs a per cent or two of a recovered focal length.

Named by 62 essays across 11 fields — each of them below, with the objects they name alongside it.

principal pointk₁ = -0.320, k₂ = 0.110 — barrel distortioncentre line 0e+0 px of sag, outermost 17.8 px

Straight lines that are not

Everybody says the edges of a wide-angle frame bow. Nothing is special about the edge. A radial map moves every point along its own radius, so the only line it leaves straight is one through the principal point, and the bend of every other is decided by how far it passes from that one place.

lens · Distortion
x/z, y/z — the pinholeM·p, then divide by wworst disagreement 4.0e-14 px over 8 verticescorrect from 21 cm, at 160 mm wide42° across · near 0.1 m, far 1000 m

The divide is postponed, not avoided

A renderer does not divide by depth. It multiplies by a four-by-four matrix that carries the depth in a fourth coordinate and divides later, and the postponement is not an optimisation — it is what makes clipping and texture interpolation possible at all. The matrix and this site's pinhole put every point on the same pixel to five parts in a hundred trillion.

pipeline · Homogeneous
00.50011.502-0.400-0.20000.200k₁departure of the cross-ratio from the world's value (%)pinhole1.29%the pinhole's own error, on the same four points2e-16 — the control

A lens destroys the invariant

The cross-ratio is the one thing a projection preserves, and nearly everything checkable about a photograph is checked with it. A lens returns it one and a third per cent out where the pinhole is exact to fifteen digits — and the height error that follows tracks a quantity nobody would guess.

lens · Distortion
recovered principal pointused to drawrecoveredgapfocal length853.90853.904e-15principal x345.0345.02e-12angle44.0°44.0°—correct from 20 cm, at 160 mm wide44° across

Recovering the camera from the picture it drew

Draw a box from a known camera, forget the camera, and get it back from the twelve drawn edges alone. Agreement to one part in 10¹⁵ is a statement about the geometry, because the only thing that crossed between the two halves was a list of line segments.

foundations · Recovery
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.

lens · Plumbline
level — the top is cut off0.00° of spreadtilted 13°4.55° of spreadshifted 95 px0.00° of spreada shift moves every point by exactly the shift95.0 px, and no direction at all

The principal point is not the centre

Every textbook that computes a focal length from two vanishing points supplies the middle of the frame as the principal point. On a shifted or cropped picture that is wrong, and it costs one and a half per cent of the answer at a fifth of a frame's shift.

lens · Shift
one pixel is an areacentrescornersprincipal point moves0.707 pxfocal length changes by4.5e-13 pxan edge-versus-centre viewport1.303 pxa half-pixel convention is a principal-point error; an off-by-one viewport is a focal-length error8 vertices, all shifted by the same 0.7071 pxspread across marks 0.0e+0 px

A pixel is not a point

Where the sample sits inside a pixel is a convention, and getting it wrong shifts every mark by half a pixel in each axis. What that costs can be measured by recovering the camera from the picture — the answer is a principal point exactly 0.707 px from the truth with the focal length untouched, and the other half-pixel mistake does precisely the reverse.

pipeline · Viewport
horizoncentre of the picture0.58° of lean, invisiblethe horizontals are unaffected

The third point put where it looks right

Three-point perspective is taught as two vanishing points plus a third placed by judgement. The third is not free: two points and the centre of the picture fix it exactly. It survives being placed by eye because in the layout a book draws it belongs thousands of pixels off the paper, where 400 px of error costs less than a degree — and in a photograph taken looking up at a tower the same 400 px costs ten.

wrong · Pointcount
centric pointdistance point, 12 px off the sheet →430 pxcorrect from 10 cm at 160 mm wide47° across

The distance point is the viewing distance, drawn

There is exactly one place in the whole classical apparatus where the distance from the eye to the picture appears as a length on the page, and it is the offset from the centric point to the distance point. Everything this site exists to compute was drawn in the fifteenth century, on the horizon, and nobody said what it was.

construction · Alberti
the far field — where the stitch was fitted2.2 m — 3.2 px out24 m — 0.3 px outthe sky registers to 1e-13 pxthe foreground does not — up to 3.2 px

The eye is a place, not a point

Rotate a camera about the wrong point and the sky still stitches perfectly while the foreground slides. The misregistration falls as one over the distance, exactly — which is what says the fault is the pivot and not the lens.

lens · Pupil
pixels 2.00 : 1recovered focal length219.9 pxthe camera's actual one436.4 pxwhat the recovery returnsspread across three estimates 0.0e+0worst bundle residual 9.1e-13 pxboth are what a wrong picture would trippixel aspect 2.00 unmodelledfocal length 49.6% short, every diagnostic clean

The pixel that is not square

A camera with two focal lengths is a real thing — anamorphic cinema optics, non-square photosites, a stretched video format. Hand the round trip of camera recovery a picture from one and it returns a focal length 49.6% out, a principal point far from the truth, three independent estimates agreeing to 1e-16, and bundle residuals at the noise floor. Every alarm available stays silent.

sensor · Pixelaspect
0.6× the page48 mm×8.3 at 4000.8× the page64 mm×6.3 at 4001.0× the page80 mm×5.0 at 4001.4× the page112 mm×3.6 at 4002.0× the page160 mm×2.5 at 4003.0× the page240 mm×1.7 at 4004.5× the page360 mm×1.1 at 4007.0× the page560 mm×0.7 at 400distance the picture is correct from, shown 160 mm widea rule about the paperwhich is a rule about the reader

Both vanishing points on the paper

Putting the two vanishing points on the sheet is presented as a composition rule. It is a statement about the reader: with the two points one page-width apart the picture is a 90° view, correct from 80 mm, and a reader holding it at arm's length is shown a room five times as deep as the one drawn. The layout that is honest at arm's length puts both points four and a half pages off the sheet.

wrong · Station
centre of visioncorrect from 17 cm, at 160 mm wide50° across

Which way the drawn circle leans

Two rules are given for the direction a drawn circle's short axis runs in: along the axis of the cylinder, and pointing at the centre of vision. On the optical axis both are exactly right. At the edge of an ordinary frame the first is out by three and a half degrees and the second by seventy-nine. The statement neither of them is comes out of differencing the projection, and it matches the drawn ellipse to a hundredth of a degree.

wrong · Conic
the eyenear 0.90 mfar 4.20 mfocal 740 pxprincipal 345, 210

Four numbers and a window

A projection matrix is built from six numbers and one of them is not a number at all. Four sides carry the focal length and the principal point; the near and far planes move nothing a reader can see; and the bottom row, (0, 0, 1, 0), is the only place the depth divides — set it to (0, 0, 0, 1) and the same machine draws a parallel projection.

pipeline · Frustum
vertical difference up to 30.8 px, drawn 8× overbaseline 63 mmconvergence 2.0 m

Turning the cameras inwards

A stereo pair made by rotating two cameras toward a common point puts the same world point at different heights in the two pictures — up to thirty pixels here, on a frame of four hundred. Two eyes level with each other see every point at the same height, so a pair with vertical difference is a pair of pictures of no scene at all.

screen · Stereodisplay
00.50011.5000.5001the lens's radial coefficient, −k₁the worst transversal's distance from a correct perspective, in pxa reader's ruler, 0.2 pxk₁ = −0.40a photographed pavement, against its lens5.7 px of bow at the threshold

The lens a pavement can hide

A photographed pavement reads as a correct drawing up to a radial coefficient of about four tenths — a lens strong enough to bow a straight edge across the page by nearly six pixels and to print as twenty per cent distortion at the frame's corner. The reason is that a pavement sits near the principal point, which is the one part of the frame a radial map barely touches.

lens · Taughtratio
the framethe line: where the centre goesat 1.33: focal 854 px

A box leaves a line of cameras

Let pixels be any width and one picture of a box has three equations for four unknowns, so it does not read one wrong camera but a whole line of right ones. The principal point sweeps across the frame as the width is assumed. Every member keeps all three right angles exactly, and the line has ends, because a squeezed triangle can stop being acute.

sensor · Pixelaspect
correct from 20 cm, at 160 mm wideverticals converge 3.59° · horizon 213 px off centre

The plane is a choice

A projection has a centre and a surface, and they move independently. Keep the eye and turn the picture plane and every point of any scene lands where one 3×3 matrix says, to 2.5e-13 px. Move the eye instead and the matrix fitted to four points is exact at those four and out by 32.0 px everywhere else. The first is a homography of the picture; the second is parallax, and nothing about the picture can undo it.

construction · Planechoice
worst 1e-13 px outcorrect from 17 cm, at 160 mm wide3 × 3 tiles

A tile is an off-centre frustum

Rendering a picture in tiles is exact, and the way to do it is one line of arithmetic: a tile's sides are the whole frustum's sides read at the tile's own pixel bounds. Aiming the camera at each tile instead is defensible at every step and is a different picture, out by about a tenth of a tile whatever the tile size.

pipeline · Tiling
one diagonal's pointthe other: far along itdark: a diagonal's pointa fourth equation

A square closes the line of cameras

A box's three right angles leave a line of cameras, and a square on one of its faces closes it, because the square's diagonals are a fourth right angle the box did not already contain. From exact marks the whole camera comes back. From ordinary marks a 1.33 squeeze is read to two per cent, with a small bias, and a rectangle taken for a square reads as a squeeze of almost its own ratio.

sensor · Pixelaspect
corrected from the picture — 0e+0° between the verticalscorrect from 20 cm, at 160 mm wideagrees with a level camera at the same eye to 3e-13 px

Straightening does not move the eye

Correct a photograph's converging verticals and what comes out agrees with a level camera at the same point — one the correction was never shown — to 3e-13 px, with the verticals parallel to 0e+0°. The cross-ratio of four points along a ground line reads 1.3333 before and after, so the corrected picture measures exactly what the original measured, from exactly where the original was taken and nowhere else.

construction · Keystone
principal point moved 22.30 px · focal length 0.584 px shorterlines straight to 1e-13 px

A tilted sensor is not a distortion

Tilt a sensor 3° out of square with its lens and every point of the picture moves — up to 7.5 px on the frame drawn here — yet every straight line stays straight to 10⁻¹³ px and the cross-ratio survives to 10⁻¹⁶. The picture is an ordinary pinhole picture whose principal point has moved 22.30 px. A calibration that frees its principal point absorbs it exactly; one that holds the principal point and reaches for tangential distortion terms leaves 1.87 px, and used as a correction it bends straight rows by 4 px.

lens · Distortion
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.

lens · Plumbline
34363840-0.50000.5001distance the lens is focused at (m, log scale)horizontal angle of view (degrees)38.99 at 3 m37.76 at 1 m35.90 at 0.5 m39.60° at infinity35.90° at 0.5 m

Focusing is a zoom

A 50 mm lens focused at half a metre is not a 50 mm camera. It stands 55.56 mm from the sensor, its picture is a pinhole picture at that distance, and it covers 35.9° where the same lens at infinity covers 39.6°. Recover the camera from the picture and it reports 55.56 mm. Read the picture with the engraved 50 mm instead and a right angle comes back as 96.0°.

sensor · Format
x axis, 54.7° off1.58°y axis, 63.5° off3.39°z axis, 46.9° off1.45°the frame's best rotation1.14°the recovered camera's turn3.37°wedge 2° · focal 1.33% short · principal point 16.6 pxframe mispredicted by 14.7 px

A wedge of glass turns the camera behind it

A pane with parallel faces moves every point and no direction, so the camera recovered through a window is the camera that took the picture. Tilt one face 2° and every direction turns, by 1.04° on the axis and 1.67° forty degrees off it. The best rotation of the frame, 1.14°, still leaves 0.94 px, and no homography does much better, so the picture is no longer a projection from the camera's centre. The camera recovered from three vanishing points through the same glass is turned 3.37° — three times as far — because vanishing points lie where the glass bends most.

refraction · Slab
0.25°0.5°1°2°5°10°20°45°90°0.1110angle of the span from the horizon's direction (log scale)worst texel along a 120 px span (px, log scale)80 px below the horizon160 px below the horizonparallel to the horizon: 0 pxfloor · eye 1.5 m · 60° field

Along a line of constant depth the page is affine

Stepping a texture by a constant amount per pixel is wrong across a receding floor and exactly right along any line of it that stays at one depth — and on every plane those lines run parallel to its own vanishing line. Turn a 120 px span 1° away from that direction and it is 0.79 px out; roll the camera a hundredth of a degree and a floor drawn to 30 m is out by 0.69 px on its worst scanline.

pipeline · Perspcorrect
horizonprincipal pointv_zorthocentre: 812.7691 px · vᵀωu = 0: 812.7691 pxconjugacy residual 5.9e-10 in focal-length unitscorrect from 19 cm, at 160 mm wide46° across

One conic calibrates the camera

A focal length is usually recovered from two perpendicular vanishing points by an orthocentre construction with a square root in it. There is a second derivation with no construction and no square root — two vanishing points of perpendicular directions must be conjugate with respect to one conic in the picture — and the two agree to the last bit. They are not two methods. The conic is what a calibrated camera is.

foundations · Absoluteconic
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.

lens · Plumbline
left, rectifiedright, rectifiedrows agree to 1.1e-13 px · points to 3.1e-14 mturned 0° about the baseline

Rectification is a family, not an operation

Turn both pictures of a pair so their epipolar lines become shared rows. A turn about the line between the eyes and a focal length are left free, and every choice puts all 44 matches on common rows to a tenth of a trillionth of a pixel and every point back where it was. What the choices disagree about is the pixels — one stretches its pictures unevenly by 1.77, another by 4.86.

twoviews · Epipolar
principal pointoutward nearer than 5 m · still at 5 m · inward beyond5 points on the held plane do not move

A dolly zoom is a step and a zoom, and they meet at one depth

Step 1.5 m toward a subject 5 m away while shortening the lens to hold its size. Every mark moves along the line from the centre of the picture, to a ten-trillionth of a degree — outward if nearer than the subject, inward toward a limit if further, and not at all on the subject's own plane. The step and the zoom each move everything one way; the dolly zoom is where they cancel.

sensor · Dollyzoom
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.

lens · Plumbline
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.

lens · Plumbline
correct from 16 cm, at 160 mm wide4 divisions per run · worst 5.7e-13 px

Three-point, laid out with a straightedge

Recovering a camera from a drawing is the familiar direction. The other direction — stand somewhere, measure a room, and lay the picture out — had never been taken in three-point, because the third axis needs a measuring point on a line nobody draws. With it, every corner lands where the camera puts it to three parts in ten million million of a pixel, and nothing anywhere is judged.

construction · Threepoint
epipolethe held subject, aftersubject slides 38.5 px · epipole 130 px asidetrack 10° off the axis

A dolly zoom off the axis keeps a line, not a plane

Step toward a subject along a track that is not quite the line of sight, and zoom to hold its size, and the plane that stood still in the classic shot stops standing still. The step now spreads from a point beside the centre while the zoom still shrinks toward the centre, and the two cancel only along one row of the picture, one depth per column. The subject itself slides by f·d·sin ψ over its distance — a pixel once the track is a quarter of a degree out — and turning to follow it holds the subject at the price of bending the rest of its plane, while shifting the frame instead holds the whole plane exactly.

sensor · Dollyzoom
xupzthe plane of x and upthe groundthe plane of x and zthe orthocentrefocal 707.4 pxthree sides, three planes

A drawing has three horizons

The triangle three vanishing points form is not a scaffold. Each of its sides is the vanishing line of one of the three coordinate planes — the floor's horizon and two walls' — and its orthocentre is the centre of the picture. So the horizon a perspective drawing is built on is one side of a triangle, and it is special only because the ground is where things stand.

construction · Threepoint
a wall at 10 m0 px−0.25 m0.25 px+0.17 m0.5 px+0.64 m0.75 px−0.64 m7 m8 m9 m10 m11 m12 m13 m14 mf = 900 px, B = 65 mm, whole pixelsshift 0.150 px puts a shell on the wall

A rectification's free shift is free only near the pair

Sliding a rectified pair's principal points apart adds a constant to every disparity, and a constant changes nothing about where points are — on paper. A whole-pixel reading is not paper. The same slide moves every depth the reading can report, and for a wall ten metres away the choice between the best shift and the worst is 1.71 metres. Near the pair it is millimetres. A matcher with half a pixel of its own error erases the choice, and pays more than the worst shift did.

depth · Disparity
vanishing point 1vanishing point 2where the camera wasassumed centre 50% alongfocal 1129.9 px · 0.283 : 1

The arc every eye stands on

Four drawn corners known to be a rectangle fix the horizon of their plane and nothing else. The eye that drew them has to see the two vanishing points at a right angle, so it lies on the circle those points are a diameter of — and every point of that arc reconstructs a genuine rectangle, with right angles to five parts in ten million million of a degree, and a different proportion.

construction · Rectangle
with decentring terms · residual × 40 · rms 0.54 px over the discno single viewpoint — the rays miss by a wedge's worth, varying with incidencedecentring 1.3e-2 and -5.4e-3

A calibration through glass reports a prism

Give a calibration that knows nothing of a 2° wedge in front of the lens the two decentring terms every standard model carries, and it takes three-quarters of the swirl the wedge leaves, moves the principal point further rather than less, and reports a lens decentred by about 0.013 — a lens that does not exist. Give it thin-prism terms instead and it takes more — nine-tenths at twenty-five degrees off the axis, almost all of it nearer — and reports what the glass is: a prism. Either way the residual that announced the glass goes quiet, out to 41° and 46° off the axis instead of 22°.

refraction · Slab
correct from 17 cm, at 160 mm widereadout 33 ms · arrows ×6

A rolling frame on a bend is right at its centre

Read a camera car's frame row by row as it rounds a bend and every still point moves — except the bend's centre, at every height, and the horizon row, at every depth. Each mark's displacement is its streak scaled by its row time, so the rolling frame is undistorted wherever the global one is sharp. And the usual repair makes it worse: a gyroscope that undoes the turn row by row puts 0.73 px back into the centre and is a net loss everywhere nearer than twice the bend's radius.

sensor · Exposure
00.2500.5000.750120406080assumed centre of the picture, % of the way between the vanishing pointsreconstructed proportion of the rectanglethe rectangle that was there, 0.667 : 115.7× across the arcevery one a true rectangle

The proportion is the assumption

Read the proportions of a rectangle out of a photograph of it and the answer is a function of where the centre of the picture is assumed to be. Sweeping that assumption across the horizon takes one drawn quadrilateral from one part in fourteen to slightly wider than square, every reconstruction a genuine rectangle, and only a fiftieth of the sweep within five per cent of the truth.

construction · Rectangle
the lens's ownno turnhalf a turndecentring (t₁, t₂) reported at every 15° of turn, exact readingsthe lens sits inside the loop

Turning the glass tells the window from the lens

A calibration done through a two-degree wedge of glass reports a lens decentred by about 1e-2 that does not exist, and hides the glass inside it. Calibrate twice with the glass turned between, and the glass's part turns while the lens's stays: a half turn finds a real lens decentring of 2.2e-3 to 5.2e-4 with readings to 0.4 px, where one calibration was 1.0e-2 out. Three calibrations spread evenly round the turn do better, because the loop the glass traces is not a circle. What never separates is the radial coefficient, which has no direction for a turn to carry.

refraction · Slab
12 m+39.0525 m+12.3350 m+0.00100 m-6.17150 m-8.22readout 33 ms, 10 m/s; leans in thousandths of a px per row, drawn ×20upright at the centre

A rolling frame on a bend is a coarse curvature gauge

Read row by row on a bend, a frame leans every vertical by an amount proportional to one over its range less one over the bend's radius, so posts at several ranges lie on a straight line that crosses zero at the radius — exactly, to a thousandth of a metre. Off the axis the zero moves to R·cos of the bearing, the circle on which a camera on a bend is sharp. As a gauge it is coarse: one frame's eight posts read a 50 m bend as 45 m (35–74) with tops placed to half a pixel, and sixteen frames as 51 m (47–55). The slower the sensor reads, the better it measures the road.

sensor · Exposure
02.5e+35e+37.5e+31e+4200400600800one corner, slid along the picture (px)focal length the quadrilateral implies (px)admitted to 886 pxrefused past 903 px

The quadrilateral no rectangle casts

The relation that reads a camera out of a drawn rectangle has a minus sign in it, and the minus sign is a refusal: two vanishing points on the same side of the assumed centre give the square root of a positive number, and no camera makes that quadrilateral out of a rectangle. Watching the refusal arrive shows what it is worth — one corner has to travel most of the picture's width before it fires.

construction · Rectangle
the original gridthe grid at 0.5the dots are where each pixel's index standsshift -0.250 new px

Halving a picture moves its centre by a quarter of a pixel

Multiply a principal point by the scale of a resize and it comes out wrong by (s − 1)/2 of a new pixel, at any point and for every reduction. At a pyramid's fourth level that is nearly half a pixel, turning a recovered pose by half a degree. The picture, asked, reports the true map.

pipeline · Viewport
02505007501e+305001e+31.5e+3column of the picture, px (the frame runs from 0 to 690)focal length the two points imply there, pxtrue: 854 pxmiddle column: 788 pxthe frameturned 30°, a 44° lensslid 100 px: -7.7%

A level picture shows its rise on its horizon, and hides its slide

A shift lens moves the principal point off the middle of the frame, and the textbook focal length from two vanishing points pays for assuming it did not. On a level camera the payment is optional. The principal point lies on the horizon, so a rise is read straight off the picture and costs nothing; a slide along the horizon is read by nothing at all, because two vanishing points fix only a semicircle of possible cameras. What a sideways crop costs then depends on how the building is turned: a tenth of the frame trimmed off the side is 23 per cent of the focal length on a facade seen eleven degrees off square and under one per cent at forty-five.

lens · Shift
-0.50000.5001e+32e+33e+3the buffer's width (device pixels)displacement at the frame's edge (px)16:9 windows at 1.25×bound ±0.694 px

A rounded viewport has two focal lengths

Compute the aspect ratio from a window's requested size and draw into a buffer of whole device pixels, and the picture has two focal lengths that differ by up to one part in three hundred. It looks like a defect that should grow worse on small screens and better on large ones. At the frame's edge it does neither, because the error is a bounded displacement of a fraction of a pixel on any window at all.

pipeline · Viewport
00.50011.50201234column along the horizon, thousands of px (the frame is 0 to 0.69)focal length each pair implies there, thousands of pxcrossing: 854 pxmiddle column: 579 pxthe framelarge arc: the building · small: the second objectturned 33° apart

A second rectangle fixes the column a level picture hides

Two vanishing points of a building put a level camera on a semicircle and leave it free to slide along it; a second rectangular object turned against the first puts it on a second semicircle, and the two cross once, at the camera. On a facade seen twelve degrees off square and slid a hundred pixels, a second object twenty degrees further already reads the focal length to 1.3 per cent where the building alone, even with its principal point known, manages 2.9 — and where the frame's middle column is wrong by a third. The reading does not care where the column was slid, and it is best when the second object stands at forty-five degrees to the camera, whose semicircle is flat over the true column.

lens · Shift
6008001e+30100200300400500600column along the horizon, px (the frame is 0 to 690)focal length, pxthe camerafilled: a 1 m circle · open: two rectangles 20° apartarc: the building alone · circle 8 m off

A circle on the ground names the column and the focal length at once

The picture of a circle lying on the ground meets the horizon in two complex points, and for a level camera they are exactly the principal point's column plus or minus i times the focal length. So one circle does what two rectangles turned apart do, with no turn to choose: a manhole cover 1 m across, 8 m off, marked at 24 points to half a pixel, reads the column to 14 px and the focal length to 1.5 per cent, as two rectangles twenty degrees apart do — wherever it lies across the picture. It pays for distance as the square: the same cover at 24 m is out by 128 px. And the building beside it is worth its horizon and nothing more.

lens · Shift
two groups alone±5.05 mma third row of marks instead±2.31 mmthe extra picture, lens known±1.30 mmits focal length unknown±1.30 mmits centre's column unknown±1.30 mmits centre's height unknown±4.83 mmfocal length and centre unknown±4.83 mmthe twist's reported standard deviationthe extra picture 10° off square, 8 m off

An uncalibrated picture ties the two groups, if the height of its centre is known

One picture taken square to a wall ties a survey's two oblique groups and removes their twist, and the question was whether it still does when it comes from a phone whose lens the adjustment must find. Its focal length costs nothing; so does the column of its principal point. The height of its principal point costs everything: with it free, a picture ten degrees off square reports the twist to ±4.83 millimetres instead of ±1.30, because to a level picture its own centre's height and the wall's twist are one number, correlated 0.96. A tape on the wall does not help. A second picture through the same lens, or the same phone used for the whole survey, gives the tie back exactly; so does a centre known beforehand to ten pixels.

manyviews · Spread
the horizonthe centre, 318focal 622.396 pxtrue 622.396 px

Perpendicular is a pairing

On a horizon, the vanishing point of a direction and the vanishing point of the direction at right angles to it are joined by a map that is its own inverse. Such a map has two degrees of freedom rather than three, so two pairs determine it — and its two imaginary fixed points are the focal length and the centre of the picture, handed back from two rectangles on one floor with nothing assumed.

foundations · Involution
the picturehorizonprincipal pointread as levelthe camerasolid: the circle's arc · dashed: the verticals' circlepitched 20° down

A circle reads a tilted camera's column, and its tilt has to come from the verticals

The picture of a circle on the ground meets the horizon at c ± i·f for a level camera. For a camera tilted down it meets it at c ± i·f/cos(tilt): the column is still exact, and the imaginary part is the eye's distance from the horizon line rather than from the picture. Every eye on an arc of that radius about the horizon fits the circle — and fits the building's right angle too, which is one of the circle's own. A handheld tilt of five degrees costs a level reading 0.4 per cent; looking 45° down at a manhole cover it costs 41. The building's upright edges, meeting far below, cut the arc once and give the camera back, and from then on the circle is the better half: looking steeply down it names the column to 1.7 px where three vanishing points manage 11.

lens · Shift
024how well each levelled camera is known to be level, degrees (log scale)the twist's reported standard deviation, mm0.050.10.250.512one camera of one groupone camera in each groupall six camerasa phone picture 10° off squaredashed: the groups alone · dotted: a calibrated picture 10° off squarelevelled against the wall's verticals

One camera known to be level ties the groups; a level phone picture does not read its centre

A phone picture held level puts its centre on its horizon, so it seemed that being level would give back the number an unknown lens takes away. Near square it barely does: the horizon is where the wall's rows of marks meet, thousands of pixels out of the frame, and even an exactly level picture 10° off square reads its centre to ±61 px. But being level does something the question did not ask of it. The wall's twist is the two survey groups pitching against each other, and one survey camera that knows its own pitch against the wall's verticals to a tenth of a degree holds its group still: the twist is reported to ±1.37 mm, as well as a calibrated square-on picture manages. Two such cameras, one in each group, also cancel the false twist a wall out of plumb would otherwise put in.

manyviews · Spread
the hingepitched 20°height 1.60 mside view, the ground as a linek = 1.703 m, every eye the same picture

Two circles leave the eye on a circle

A picture of the ground holds five numbers, and a camera has six. Any number of circles at any distances draw identically from every eye on one circle in the side view, so a second circle cannot give the pitch. It gives the circle. A tape measure cuts it, and which length to tape depends on the pitch.

lens · Shift
epipolethe held subject, aftersubject slides 38.5 pxtrack climbing 10°

A climbing dolly zoom stands its still points upright

On a track that rises towards the subject, the still points of a dolly zoom stand on the vertical through the centre, one per depth, and on any track that leaves the axis they stand on the line from the centre to the epipole. The horizon cannot give a climb away, because a step moves nothing at infinity. The ground can: a climbing shot holds a farther row of it than the subject's, and past 22.5° none.

sensor · Dollyzoom
direct0.708 pxdirect, logical shot0.000 pxcomposited0.708 pxcomposited, naive0.915 pxcomposited, logical shot0.000 pxnaive throughout, logical shot0.471 pxworst over every windowpale: breaks the bound

A display's scales cancel, if they are true maps

Between a renderer's buffer and a screenshot there may be two more resamples: a compositor reducing a whole-number scale to the panel, and a screenshot read back at the window's size. Each rounds to whole pixels, and under the true map the roundings telescope: only the last size and the renderer's assumed aspect matter, so the one-rounding bound survives, and a screenshot at the window's size shows the square camera exactly. A naive step breaks the bound in six per cent of windows and moves every centre.

pipeline · Viewport
the camera's principal point1280×720 logical, device scale 1.5crop rounding: 0.50, 0.00 px

A crop moves the frame and not the camera

A crop of a screenshot scales nothing. It moves the frame's corner and leaves the renderer's principal point where it was, so the cropped picture is exactly the picture of an off-centre camera and nothing in it can say otherwise. What the crop adds is the rounding of its edges to whole screen pixels, which moves the principal point by at most half a pixel each way, in a pattern that repeats with the crop's position and never grows. Converting the crop's corner with the map that is right for a pixel's centre adds half the scale's excess on top, a whole pixel on a display at 2 or 3.

pipeline · Viewport
window, 1280 × 720 logical, at 1.5117 × 73 pxfx 346.3 pxfy 348.4 pxcrop 211 × 131 → 117 wideheight 72.57 → 73

A thumbnail gives its camera a pixel it cannot see

A crop resized to a stated width has its height rounded, so its two focal lengths are scaled by two different ratios of whole numbers. They disagree by at most one rounding of the target's height, 1/(2h): 0.8% at 100 px wide, 0.1% at 800, and across ten thousand crop sizes the worst fills the bound. In the target's own pixels that is half a pixel times the crop's focal length in heights, six pixels for a narrow crop, while no corner of the picture moves more than half a pixel. A box and a square in the same thumbnail read the squeeze ten to forty times too coarsely to notice.

pipeline · Viewport
0102030409.501010.5depth each row reports (m)row of the wallthe wall, 10 mno shear, each rowsheared, each rowfit, no shearfit, sheared65 mm pair, 900 px, 40 rowsfit 9.979 m against 9.75 m

A sheared rectification reads every wall at once

One constant shift of a rectified pair's principal points can put one depth exactly on a whole-pixel shell and no more. A shift that grows from row to row does what no constant can: shear one picture against the other so the shift climbs by one pixel over a wall's rows, subtract each row's share after the reading, and the rows' average lands on the wall's own disparity to within 1/(2n) of a pixel, at every depth at once — 2.1 cm at ten metres from forty rows, where the shells are 1.72 m apart. Only a shear can do it: a rotation or a difference of vertical scale breaks the shared rows. The price is one slant that the shear leaves undithered, and the gain belongs to a precise matcher; by 0.4 px of matcher error the matcher has dithered the wall itself.

twoviews · Epipolar
horizoncorrect from 12 cm, at 160 mm wide67° across

The horizon has a pole

Every other duality in this collection is a matrix somebody picked. A calibrated camera fixes one nobody picked, and under it the horizon of a plane and the vanishing point of that plane's normal are pole and polar — to 2.7 × 10⁻¹² pixels. Run backwards, those two marks give the focal length with no known length, no right angle and no square anywhere in the scene.

foundations · Duality
horizonthe middle of what is leftthe principal pointcorrect from 22 cm, at 160 mm widecrop 20% · centres 81 px apart

The centre of the picture is not the centre of the paper

A crop translates the image rectangle, so the picture's optical centre leaves the middle of the sheet and the focal length does not move — 81.3 pixels apart at a fifth of the picture, with the horizon at 62.5 per cent of the print. A reader who takes the paper's middle for the picture's stands 2.36 cm out of position, which is 4.9 degrees of the wrong direction.

construction · Crop
a plan, looking down: the object on the left, the frame, the hook on the rightthe hookthe frame, edge-on160 cmplan at 0.25 px per mm · a hook 160 cm behind a 56 cm framecorrect from 46 cm at 160 mm wide

The hook is the centre, and the eye is not

Dürer's string frame projects from a ring of iron driven into a wall, so its centre of projection has a position anybody can measure with a tape. A hook 120 centimetres behind a frame 56 centimetres wide makes a drawing correct from 34.3 centimetres shown 160 millimetres across, with its principal point 161 px off the middle of the sheet. The gridded veil projects from a head instead, and 30 millimetres of head moves its marks by 13.27 millimetres.

construction · Instrumentdrawing
the photographv1v2v3orthocentre = principal pointcorrect from 4 cm, at 30 mm wideself-polar to 3.1e-13 px · orthocentre 1.4e-13 px

The triangle a camera cannot move

Three mutually perpendicular directions give three vanishing points, and that triangle is self-polar with respect to the image of the absolute conic — to 3.1e-13 px, with no length and no angle anywhere in the statement. Turn one direction two degrees out of square and the polars miss their sides by 65.8 px. The statistic this collection has been printing as evidence for the same claim, meanwhile, is an identity that cannot fail.

foundations · Poleandpolar

Named alongside it

The objects these essays reach for when they reach for this one.

Focal lengthVanishing pointCamera calibrationHorizonResidualDemonstrationConditioningHomographyRadial distortionStation pointCamera matrixIdentifiability

All concepts