Concept

Shift lens — where it appears

A lens displaced across the picture plane, cropping the image rectangle without tilting it. Verticals stay parallel because a shift is a translation of the frame rather than a rotation, and it moves the principal point away from the centre of the print.

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

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
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
near edge: 0.98far edge: 0.76turned 15°, corrected to 16:9, source at panel resolutiondark: more panel per source pixel

Keystone correction spends the panel unevenly

Turn a projector fifteen degrees and keystone correction throws away 18 per cent of its panel — the number a specification quotes. It is the smaller half of the price. What remains is spread unevenly: the near edge of the corrected picture gets a panel pixel for every source pixel, the far edge three-quarters of one, so the far edge carries 58 per cent of the source's detail. A tipped projector keeps more than a turned one, and a lens shift that places the same picture loses nothing at all.

screen · Keystone
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
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
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

Named alongside it

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

Principal pointFocal lengthHorizonVanishing pointIdentifiabilityStation pointPicture planeAbsolute conicCircular pointsCrop factorDepth divisionForeshortening

All concepts