Concept

Focal length — where it appears

The distance from a camera's centre to its picture plane, which scaled to the display width is the viewing distance. It is the one camera parameter this site can recover from a picture with nothing but three vanishing points of mutually perpendicular directions.

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

the picture, 160 mm wide22 cm40°the eyefocal length 948 px22 cm at 160 mm wide

The point you have to stand at

A perspective picture is a projection through a centre, and scaling that centre's distance to the width the picture is actually shown at gives a distance in centimetres. Shown 160 mm wide, a 40° picture is correct from 22 cm and a 90° one from 8 cm. Nobody stands there, and that single fact explains most of what gets called distortion.

viewing · Station
horizondepicted height ÷ side0.3278corner angles90.000° — forced by the methoddepicted side ratio0.7195lens this drawing implies60° acrossdrawn exactly as the method prescribesthe free step is where the far edges go

The cube that is a box

The two-point cube every book teaches has a step it supplies no construction for. Place the two far edges symmetrically and the drawing depicts a square plan for free; place them eight points apart — a difference invisible on the page — and it depicts a box 1.4 times shallower than it is wide.

wrong · Cubebyeye
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
epipoleepipoleleft pictureright pictureepipole from 44 correspondences vs the projected eye: 1.1e-9 px2.60 m between the eyes

The image of the other eye

Two photographs of one courtyard, and in each of them a point that is the other camera. It is computed from forty-four matched marks and nothing else, and it lands on the projection of the other eye to about a billionth of a pixel.

twoviews · Epipole
025507510010203040true depth (m)depth reported from the disparity, with a 1 px reading error5.86–7.33 m13.96–26.69 m23.76–126.49 mat 40 m: +86.5 m against −16.2 munbounded past 58.5 m

Depth is a reciprocal

Two eyes measure a shift in the picture, and depth is that shift divided into a constant. So a fixed error in what is read maps to an interval in what is reported that is not centred on the answer, and at forty metres runs sixteen metres nearer and eighty-six further.

depth · Disparity
the eye's trackthe eye at x = -10.5 mevery point is drawn by the one position of the eye that is level with itplan — the eye's track and the scans it makes28 m of travel

A scroll is a camera that moves

A Chinese handscroll is not a picture with a wandering viewpoint or a picture with no viewpoint. It is the image of an eye that travels along a track and records one vertical line at a time, and that object has an exact geometry — orthographic along the roll, perspective across it.

scroll · Pushbroom
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
full frame · 39.6°APS-C · 26.6°Micro Four Thirds · 19.6°1 inch · 15.0°phone (1/1.7″) · 8.7°one 50 mm lens · the angle is a property of the rectangle behind itMicro Four Thirds: 2.00× diagonal, 2.08× wide, 1.85× tall50 mm across five formats39.6° down to 8.7°

A focal length is not an angle

Fifty millimetres means nothing until a rectangle is named behind it. The same lens is 39.6° across full frame, 26.6° across APS-C and 8.7° across a phone sensor — and the distance the resulting print is correct from depends on the ratio of the two, so two cameras matched on angle agree exactly whatever their formats.

sensor · Format
50 mm on full frame · 39.6° acrossphone3.71×94 mm correctlaptop1.28×431 mm correct27-inch monitor0.78×829 mm correcttelevision1.52×1.7 m correctcinema0.84×16.7 m correct×1 — standing at the station pointhow many times further away the reader is than the picture's own station pointworst is the phone at 3.71×

The screen sets the distance

Every viewing distance quoted for a picture on a page is conditional on an assumed figure width. Replace the assumption with an actual chain — focal length, sensor width, display width — and the same 50 mm frame is correct from 9 cm on a phone, 83 cm on a monitor and 16.7 m in a cinema. Nobody is standing at any of them.

screen · Station
horizonequal stepshalve thetaper byworst error, in metres of depthequal steps to the horizon14.72 mhalve the remaining gap228.13 mtaper by eye350.80 mcorrect from 26 cm, at 160 mm wide34° across

The measuring point, and the step the method leaves out

Laying out equal depths correctly needs a second vanishing point that most treatments never introduce — the one belonging to the diagonals. With it the construction lands on the projected divisions to eighty femtopixels. Without it, depth is placed by judgement and the drawing depicts something nobody chose.

construction · Measuring
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
123-2-10baseline (m, log scale)range past which 1 px of disparity error is unbounded (m, log scale)65 mm → 58.5 mrange = fB/δ — 58.5 m at a 65 mm baseline900 px focal length, 1 px reading

The range a pair cannot see past

A stereo rig has a distance beyond which it cannot say "no further than", and the distance is fixed before anything is built. It is the focal length times the baseline divided by the reading precision, and for a human pair of eyes it is fifty-eight and a half metres.

depth · Disparity
3 m, 50 mm1.50 m, 25 mmsubject ×1.000000 · background ×0.526 · zoom alone would give ×1 for bothnear-to-far ratio 10.00 → 19.00changing the focal length leaves it at 1.000000000000

Stepping closer is not zooming

Changing the focal length leaves the ratio between any two things in a picture exactly alone — to twelve decimal places, at every focal length there is. Moving changes it. Hold the subject's drawn size across a step from 3 m to 1.5 m and the background halves, which is the whole of the shot everybody knows and nobody derives.

sensor · Dollyzoom
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
no single viewpoint — the rays miss by 4.5 px, depth-dependentf recovered from it: 396.88 px

What survives a pane of glass

A slab of glass moves every point of a picture and moves no direction at all. So the camera recovered from a photograph taken through a display case is exactly the camera that took it — out of a picture in which nothing is where it was.

refraction · Slab
the panelhorizon — the centric point's heightthe section — the eye, the panel, the ground470 px — the viewing distancethree routes agree to 6e-14 pxsection, distance point, and a pinhole camera

Alberti draws a pavement, and chooses where the reader stands

The costruzione legittima of 1435 is exact. Run as a construction — with drawn rays and drawn intersections rather than the formula it turns out to satisfy — it agrees with a pinhole camera to six parts in a hundred trillion of a pixel. And it has one free parameter that the recipe never names, which is the distance from the eye to the panel.

construction · Alberti
02468020406080angle off the optical axis (degrees)area scale, relative to the centreplanecylinderstereographicequidistantequal-areaequirect.measured by differencing on the spherethe plane leaves the frame

Every fisheye is a different rule

The word "fisheye" names a shape of lens and not a projection. There are several, they disagree with each other by tens of per cent at the frame edge, and each is the right answer to a different question — one is a protractor, one is a counting instrument, one preserves shape. Which one a lens implements is a fact about that lens, and it is rarely printed on the barrel.

curved · Fisheye
a room 2.8 m across, eye 1.6 m up1 mthe same plan, 137× bigger137 midenticalpicturesthe picture — both scenes, drawn twice, one on top of the otherlargest disagreement 1e-13 px over 8 verticesone length has to come from outside the picture

The one thing a single view cannot give

Make the world a hundred and thirty-seven times larger and move the eye a hundred and thirty-seven times further away, and the picture does not change by a measurable amount. Every ratio in a scene is recoverable from one photograph and no size is, and that is not a caveat about the method — it is the shape of the method.

metrology · Scale
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
no picture at 300°the plane is unbounded at 180°plane — bend 0.0%cylinder — bend 6.0%stereographic — bend 3.5%equidistant — bend 4.5%equal-area — bend 5.1%equirect. — bend 5.7%300° across in every panelsame scene, same angle, six surfaces

What a 360-degree photograph actually is

The format every spherical camera writes preserves nothing — not straightness, not shape, not area — and it is the right choice anyway, for a reason that has nothing to do with looking at it. An equirectangular file is a lookup table of directions, and the picture only exists at the moment something re-projects a piece of it.

curved · Panorama
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
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
a point at 1.5 mthe pupilthe sensorwhere it focusesf/2.8, focused at 3 m5.8 px across

The centre has an area

Every theorem of perspective follows from a projection through a point, and no instrument has one. Give the pupil a radius and each world point images as a disc — whose centre is the pinhole's mark to 5.7 × 10⁻¹⁴ millimetres, at every aperture, every distance and every field angle. The geometry survives exactly; only the sharpness is spent.

sensor · Aperture
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
the picture — identical at every viewing distanceplan: the true cube, and the solid depicteddepth × 2.12, width × 1.00correct from 18.8 cm at 160 mm wideread from 40 cm — depth × 2.12

Standing in the wrong place

A picture read from twice the distance it is correct from depicts a scene twice as deep — and not one mark on the paper moves. The error is invisible in the picture, which is why it survives everywhere.

viewing · Station
cusp — R/2 = 0.800 mvertexaperture 50 cm of a mirror of radius 1.6 mR from the cusp: 1.5996 m (0.023%)

The caustic is the mirror's own ruler

Four of the five instruments in this row return a ratio and refuse a size. The bright curve a mirror throws is the exception, and the reason is that it is a length lying on the table rather than an angle in a picture. Its tip is the paraxial focus, so a ruler laid from the mirror's vertex to it returns the radius of curvature — 1.5996 m against 1.6, and exactly right on a paraboloid, where there is no aberration to bias the envelope.

mirrors · Caustic
00.50011.50-0.25000.2500.5000.750the blur a reader is prepared to call sharp, in pixels (powers of ten)near and far limits of the band, in metres (powers of ten)the focus distance2 pxone lens, one focus setting, five criteria5 bands

The sharp band is a decision

One 50 mm lens at f/2.8 focused at three metres has a sharp band half a metre deep or an unbounded one, and nothing about the optics changes between them — only how large a blur disc a reader is prepared to ignore. Every quantity usually quoted about depth of field is that acceptance restated, including the rule that a third of the band lies in front, which is true at one distance and nowhere else.

sensor · Aperture
the entrance pupilthe stopthe glassthe chief rays, from four object distances3.6e-15 mm apart

The hole a scene actually sees

The stop is not the centre of projection. Model a 50 mm lens with its stop 18 mm behind the glass and the chief rays from every object distance cross the axis at one point 28.1 mm on the other side of the lens — 10.1 mm from the stop and 1.56 times its size — to 3.6 × 10⁻¹⁵ mm. That point is the entrance pupil, and it is where a picture is a projection from.

lens · Pupil
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
0501000.2000.4000.600half the mirror's aperture (m)how wrong the fitted radius is (%)how wrong the answer ishow wrong the fit says it ismeasurement floor, 0.02°a paraboloid fitted to a sphere of radius 1.6 mhidden below 0.3 m of aperture · 0.030% of bias there

A fitted radius is wrong before it is uncertain

A sphere and a paraboloid of the same vertex radius agree to second order, so a fit over a small aperture cannot separate them. What it does instead is return a confident radius that is wrong by a stated percentage, with a residual far below any measurement floor — 0.03% of bias behind a residual of three ten-thousandths of a degree. The residual only clears a two-hundredth of a degree at six times the aperture, by which point the bias is thirty-six times larger.

mirrors · Paraboloid
-0.10000.1002.5057.5010depth reported from the stepped disparity (m)height reported for each image row (m)the floor as it is35 platesspacing 3.9 cm → 1.95 mslope 1.997

Whole pixels cut space into shells

A disparity read to whole pixels can report only the depths fB/k, so a stereo pair does not measure distance on a scale — it chooses among 113 shells between half a metre and twelve, 6.7 cm apart at two metres and 1.39 m apart at ten. A level floor comes back as 35 standing plates. And a finer step and a better reading are different purchases: at a quarter pixel with a quarter pixel of matcher error the pair prints 449 depths and can tell 149 apart.

depth · Disparity
floor: tilt 36.7°footstool: tilt 65.1°table: tilt 54.2°book: tilt 78.2°assumed camera 520 pxspread 41.4°

Four surfaces, and no one camera that draws them

Read under one assumed camera, the floor, footstool, table and book of a constructed divergent picture imply tilts of 36.7°, 65.1°, 54.2° and 78.2°, where one camera photographing four parallel surfaces gives each of them 35.0°. But the spread between the tilts is 46.8° under a 260 px lens and 6.7° under a 5,000 px one, so it measures the lens as much as the picture. The measure that owes nothing to a lens is on the page: the nearest drawing one camera could make moves the far corners by 17.6 px.

choices · Divergence
00.50011.50020406080field angle off the axis (degrees)picture radius, in focal lengthsfolds at 47.49°43.91°50.54°the radial factor reaches zeropinholefolds at 47.49°43.91° and 50.54° share one radius

A barrel model folds at a radius it sets itself

The polynomial every calibration fits to a wide lens stops increasing at a radius fixed by its own first coefficient — 47.49° of field at k₁ = −0.28 — and past it two directions land on one picture radius. The routine that undistorts pictures with it does not refuse there. It hands back wrong directions from 46.75°, by as much as 106.5°, and refuses only at 65.5°: a fifth of the field returned silently wrong.

lens · Distortion
nothing on the ramp images above its vanishing linehorizonuphilllevelcorrect from 10 cm, at 160 mm wideslope recovered 22.0000° against 22° built

The ramp has its own horizon

Every plane has a vanishing line, and a ramp's is not the ground's. Its uphill edges meet on a line above the horizon, and the angle at the eye between that meeting point and the same direction taken level is the gradient — 22.0000° recovered against 22° built, out of the picture alone, with no scale, no ruler and nothing known about the scene except that the ground is level.

construction · Inclined
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
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
0.313100510how far away the subject is, in metreshow far the pupil moves forward, in millimetres0.50 mthe whole walk with field anglea 50 mm lens, focused as one pieceequal at 0.50 m

Focusing moves the pivot past its best place

Focusing a fifty-millimetre lens to one metre carries its entrance pupil 2.63 millimetres forward of the camera body, and to half a metre 5.56 — which is more than the whole 5.53 that the pupil walks with field angle, so past a subject at 502 millimetres the focus decides where the pupil is. A panorama head aligned at infinity and used at a metre leaves 7.46 arcminutes along its seam; aligned at four metres it leaves 2.21, better than pivoting at the pupil at all.

lens · Pupil
floorsplay 1.12q = 1.000footstoolsplay 1.2q = 1.000tablesplay 1.32q = 1.000booksplay 1.38q = 1.000one habit, four splays — each strip's rows read from the page aloneone hand fits at q = 1.000

The rows count hands, not cameras

Rows drawn between two straight sides charge a camera nothing — every strip of a four-strip divergent picture reads back as a flat plane, whatever placed them, so a single viewpoint redraws the whole picture exactly. What they do fix is one number per strip, and that number survives the lens. Read the same drawing at focal lengths twenty to one apart and the lean runs from 36.4° to 86.0° while the habit stays at 1.000000000.

choices · Divergence
0.30.71.537200.11101001000distance the lens is focused at (m, log scale)how far the recovered distance can be out (% , log scale)vanishing points ±0.25 pxvanishing points ±1 px±0.25 px: 0.7 % at 1 m → 28 % at 30 m50 mm lens

A close picture carries its own distance

A 50 mm lens focused at one metre stands 2.632 mm beyond its focal length, and a picture records where the lens stood. Recover that from two vanishing points, put in the engraved focal length, and the focus distance comes back — to 0.7 per cent at 1 m, 3.7 at 5 m, and as an interval 28 per cent wide at 30 m. A single picture has given a scale. What it has given is where the lens was focused, and the subject can be anywhere in a sharp band two to fifteen times wider.

sensor · Format
horizoncorrect from 20 cm, at 160 mm wide44° across

The line every nosing is on

Nothing in a staircase points up the pitch. Every surface in it is level or vertical, and its picture has a vanishing point off the horizon all the same — belonging to the line the front edges of the treads lie on. That point is not free: it is collinear with the travel point and the vertical point, and the angle it makes says the rise-to-run the builder chose.

construction · Inclined
010203051015how far each camera is turned in, degreesper centwhat the vertical disparity addslabels merged by rectifyingof those, from the warpfocal length to merge noneeach pair rectified at its own 900 px4.0% for eyes at 1.2 m

Rectifying a pair spends what its epipolar lines lean

Counted from the two disparities alone, rectifying a verged pair looks as if it throws away at least 99.7 per cent of what the pair can tell apart. That cannot be true of a warp that loses no ray, and it is not: once the place in the picture is counted, the vertical disparity adds 4.1 per cent for eyes verged at 1.2 m, and rectifying at the same focal length gives back all but 4.0 of it.

depth · Disparity
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
0510the six seams of the room, each at the nearer of its two frames' subjectsworst disagreement along the seam (arcminutes)0.5 m0.7 m1.5 m4.0 m1.2 m0.5 mfixed head, best pivothead that tracks the focussix frames, each focused on its own subjectworst 12.9′ against 2.82′

A refocused panorama is six lenses

Refocus between the frames of a room panorama and each frame is its own camera: its pupil carried forward by its own extension, its picture made at its own principal distance. The best fixed pivot then leaves 12.9 arcminutes along the worst seam, and a head that slides the camera back as the lens extends leaves 2.82 — the lens's walk alone. The pivot's share is first order and worth a tracking head indoors. But a stitcher that reads all six frames with one focal length misregisters by up to 270 arcminutes, which is the larger mistake by ninety times.

lens · Pupil
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
123456solid: as walked · dashed: shortest on the pagepage route 4–5–3–6–2–1

A walk's order is on the floor, not on the page

A narrative panel whose copies are moments of one walk holds its order after all — in where the copies stand, because a walker moves a step between moments. Joined by the shortest route on the page, six copies seen from a standing eye come back in the order walked 68 times in 100. Undo the floor first, with the horizon the copies themselves supply and the angle of view guessed anywhere from half to twice the truth, and the same rule returns it every time the walk allows — leaving one bit, the direction, which a figure facing its way supplies.

conventions · Narrative
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
squares: real windows · dots: rebuilt2 columns out · scaled by 1.298

A turn at the landing makes the mistake a scale, and a scale is weak evidence

On a straight stair along a facade, a stereo pair's column mistake slides through a third camera's picture as one offset shared by every window. Turn the stair towards the wall at a landing and the offset stops being shared: the rebuilt facade's picture becomes the real one's scaled about the point the camera is walking towards, a different scale for every mistake, so no picture on that flight is blind. But the scale grows as the walk over the rebuilt facade's distance, and 10 cm towards the wall separates the one-column reading from the honest one by 1.8 px where 10 cm along the stair gives 9.8. Turning the camera in place adds nothing at all. What the turn does buy is tolerance: an error in how far towards the wall the camera has come costs almost nothing, for the same reason.

depth · Outlier
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 offsets a matcher sees, ×½with one slide removed, ×4misfit with the slide fitted: 1 out 0.0 px · 2 out 8.5 px · 3 out 17.9 px · honest 55 px, no slide to fitsquares: real windows, reduced1 column out · 0.4 m towards the wall

The scale names the mistake when the camera has lost its place along the wall

A third camera that knows how far it has paced towards a facade, and nothing about where along or up the wall it stands, still names a stereo pair's column mistake from one picture. Any offset at all refutes the honest reading, which predicts none from anywhere; and once the unknown place is fitted away as one uniform slide, what is left is the rebuilt facade's scale, which each mistake predicts differently. Five centimetres towards the wall names the mistake 95 times in 100 at half a pixel, ten centimetres every time — where a camera that believes it knows its place and is 20 cm out manages 77. The distance has to be paced, though: a rangefinder or the windows' known spacing would have named the mistake by themselves.

depth · Outlier
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
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
02.5057.50103040506070focal length (mm)worst error on the set (px)pupil moves 10 mmpupil moves 30 mmpupil moves 50 mmset cut at 24 mm, pieces still30 mm: 6.3 px at 70 mm

A zoom's moving pupil is a move the set must follow

A zoom changes no direction, so a forced-perspective set should not care about it. But a zoom lens moves its entrance pupil along its axis as it zooms, and the set was cut around the pupil. Five millimetres of travel costs the colonnade a pixel at 70 mm. An axial move costs a third of a sideways one, the nearest scaled column most; cutting the set for the pupil near the long end halves the worst of the range; and a dolly zoom on the set is exact if every piece follows the pupil, the far column travelling seven tenths of the camera's way.

viewing · Builtset
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
316 × 196690 × 428straight to 690fy/fx − 1 = 0.01%316 × 196117 × 73690 × 431via a 117 px thumbnailfy/fx − 1 = 0.71%316 × 19625 × 16690 × 442via a 25 px picturefy/fx − 1 = 3.28%boxes at 0.2 of their pixelseach tool rounds the height it was handed

A chain of resizes remembers its smallest picture

A picture resized several times, each tool keeping the aspect of the picture it was handed, carries every tool's rounding to the end: nothing undoes an earlier one, because the next tool rounds the aspect it was given. The final squeeze is bounded by the sum of every step's one rounding and fills it, so the smallest picture in the chain dominates, and an enlargement after a thumbnail brings the thumbnail's half pixel back magnified: 14 px of height at 690 px wide through a 25 px icon. The roundings add as a root of the count, floors add in a straight line, and a tool that keeps the source's own aspect forgets them all but its last.

pipeline · Viewport
00.2000.4000.6000.50011.502how many points were measured along each line, log₁₀how wrong the recovered focal length is (%)a pinhole — no floora lens, k₁ = -0.05the floor, 0.72%two vanishing points, three lines eachpinhole floor 3e-16 · lens floor 0.72%

A floor with a referent

Recover a focal length from two vanishing points and measure more points along each line. Through a pinhole the error falls from 0.34 per cent to 0.05 and the instrument finds no floor at all. Through a lens of k₁ = −0.05 it falls, turns, and rises to 0.70 per cent — because the noise the extra points removed had been partly masking the lens's bend. The floor is 0.72 per cent of the focal length, and doubling the distortion coefficient doubles it to 1.44. It is not noise and not conditioning; it is the model, priced.

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

Named alongside it

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

Principal pointVanishing pointHorizonStation pointCamera calibrationResidualViewing distanceinstrument limitPicture planefield of viewDemonstrationcentre of projection

All concepts