The second projection

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.

Worth reading first: A projector is a camera run backwards · A wide field on a small screen.

A projector is a camera run backwards turned a projector fifteen degrees from square and watched it throw a trapezium. Keystone correction cannot add light outside the trapezium, so it shrinks the picture until an upright rectangle fits inside, and the panel pixels that land outside that rectangle are thrown away: a sixth of the panel at fifteen degrees. That essay measured the loss where it is paid, on the panel, and found it grows fast with the angle.

It also noted, in passing, two things correction cannot buy back. One was focus, which is optics. The other was geometry: the far edge of the trapezium is further from the projector than the near edge, so each panel pixel lands larger there, and the corrected picture — a uniform rectangle on the wall — is drawn from panel pixels of varying size. The essay put the difference at about a third and left it there.

That difference is the larger half of what keystone correction costs, and it is worth measuring properly, because the number a specification quotes — the share of the panel used — describes an average, and a picture is judged at its worst.

A density across the corrected picture

The corrected picture is an upright 16:9 rectangle on the wall, filled with a source image at the panel’s own resolution, 1920 by 1080. At every point of it, some number of panel pixels carries each source pixel. The figure shades that number across the picture for a projector turned fifteen degrees, taking the worse direction at each point, since a picture is only as sharp as its coarsest axis.

Keystone-corrected at 15°, the picture is sampled at 0.98 panel pixels per source pixel at its near edge and 0.76 at its far edgeA projector turned 15° from square, its picture keystone-corrected to an upright 16:9 rectangle on the wall and filled with a source image at the panel's own resolution, 1920 by 1080. Each cell is shaded by how many panel pixels carry one source pixel there, in the worse direction: from 0.985 at the edge nearest the projector, where the panel's pixels land small and crowd, to 0.760 at the far edge, where they land large and spread. The correction uses 82.2% of the panel, and it does not spread what it uses evenly: the far edge is drawn with 76 per cent of the source's linear resolution. near edge: 0.98far edge: 0.76turned 15°, corrected to 16:9, source at panel resolutiondark: more panel per source pixel
Fig. 1 A projector turned 15°, its picture keystone-corrected to an upright 16:9 rectangle and filled with a source image at panel resolution. Each cell is shaded by panel pixels per source pixel in the worse direction: 0.98 at the edge nearest the projector, 0.76 at the far edge. The correction uses 82.2% of the panel.

At the edge of the picture nearest the projector the panel’s pixels land small, and each source pixel gets 0.98 of a panel pixel in its worse direction: very nearly one to one. At the far edge the panel’s pixels land large and spread, and each source pixel gets 0.76 of one. The shading runs smoothly between. The correction uses 82.2 per cent of the panel, and it does not spread what it uses evenly.

The reason is the homography itself. Straightening does not move the eye described a keystone correction as a projective map — exact, reversible, and unable to invent information — and a projective map between a tilted plane and an upright one stretches one end more than the other, by the ratio of the two ends’ distances from the centre of projection. Here the centre is the projector’s lens and the tilted plane is the panel as the wall sees it. The map from the corrected picture back onto the panel compresses the far side, where the wall was further away, into fewer panel pixels than the near side.

From near edge to far

The profile across the picture shows the gradient directly, at three angles.

Across the corrected picture the density falls from near edge to far — 0.99 to 0.76 at 15° — where a lens shift would hold it at oneThe worst density in each column of the keystone-corrected picture, from the edge nearest the turned projector to the far edge, for turns of 5, 15, 30°. At 5°: 0.997 to 0.915. At 15°: 0.986 to 0.758. At 30°: 0.932 to 0.549. The level line is a projector placing the same picture with a lens shift, its panel square to the wall: every source pixel is one panel pixel across the whole picture, at every placement the shift can reach.0.4000.6000.800100.2000.4000.6000.8001across the corrected picture, from the edge nearest the projector (share of its width)panel pixels per source pixel, worst directiona lens shift: one everywhereturned 5°turned 15°turned 30°worst direction in each columnnear edge to far edge
Fig. 2 The worst density in each column of the corrected picture, from the edge nearest the projector to the far edge. Turned 5°: 0.997 to 0.915. Turned 15°: 0.986 to 0.758. Turned 30°: 0.932 to 0.549. A lens shift holds it at one everywhere.

At five degrees the density falls from 0.997 at the near edge to 0.915 at the far: a gentle slope, hardly worth remarking. At fifteen it falls from 0.986 to 0.758. At thirty it falls from 0.932 to 0.549, so the far edge of the corrected picture is drawn with a little over half the source’s linear resolution while the near edge is drawn with nearly all of it.

The near edge stays close to one at every angle, and that is the important detail. Keystone correction shrinks the picture until it fits the trapezium’s narrow end, and it is the narrow end — the near one, where the projector is closest — that decides how large the picture can be. So the near edge is drawn at nearly full resolution, and all the loss is concentrated toward the far edge, where the trapezium was wide and the picture had to be pulled in to stay rectangular.

Three prices, and the one that matters

The figure below sets the usual price of keystone correction beside two others, against the projector’s angle.

At 15° keystone correction uses 82 per cent of the panel and leaves the far edge 58 per cent of the source's detailThree prices of keystone correction against the projector's turn. The share of panel pixels used, which is what the correction is usually quoted by: 100.0%, 94.1%, 88.2%, 82.2%, 76.2%, 70.1%, 63.8%, 57.5% at 0, 5, 10, 15, 20, 25, 30, 35°. The linear resolution at the far edge, panel pixels per source pixel in the worst direction there: 100.0%, 91.5%, 83.5%, 75.9%, 68.6%, 61.7%, 55.0%, 48.6%. And its square, the share of the source's detail per area the far edge can carry: 100.0%, 83.8%, 69.7%, 57.6%, 47.1%, 38.1%, 30.3%, 23.6%. The panel is spent unevenly, so the worst place in the picture is worse than the average spend suggests: at 15°, 82 per cent of the panel, and 58 per cent of the detail where it is thinnest.00.2500.5000.75010102030how far the projector is turned, degreesshare of the panel's resolutionpanel pixels usedfar edge, linearfar edge, per area16:9 panel, throw ratio 1.5the spend is uneven
Fig. 3 Three prices of keystone correction against the turn. Panel pixels used: 94.1, 82.2 and 63.8% at 5, 15 and 30°. The far edge’s linear resolution: 91.5, 75.9 and 55.0%. Its square, the detail per area the far edge carries: 83.8, 57.6 and 30.3%.

The share of panel pixels used — the price quoted on the specification — is 94 per cent at five degrees, 82 at fifteen, 64 at thirty. The far edge’s linear resolution is lower at every angle: 92, 76 and 55 per cent. And the detail per area the far edge can carry, the square of its linear resolution, is lower again: 84, 58 and 30 per cent.

The gap between the first and third curves is the whole of the argument. At fifteen degrees the correction spends 82 per cent of the panel, which sounds like a modest loss; where the picture is thinnest, it delivers 58 per cent of the source’s detail. The average and the worst differ because the spend is uneven: the near edge gets more panel than it needs to reproduce the source, the far edge less, and panel pixels spent on the near edge cannot be moved to the far one. A source image with fine detail near its far edge — text, a line of a spreadsheet, a face — loses more than two-fifths of it to a fifteen-degree turn that the specification describes as costing under a fifth.

Tipped costs less than turned

The earlier essay measured a projector turned about the vertical. Projectors are more often tipped — mounted on a ceiling or a table and aimed up or down at the screen — and on a wide panel the difference matters.

Tipped rather than turned, a wide panel keeps more: 83 per cent of its linear resolution at the far edge at 15°, against 76 turnedThe far edge's linear resolution after keystone correction, for a 16:9 projector turned about the vertical (yaw) and tipped about the horizontal (pitch) by the same angles: turned, 91.5%, 83.5%, 75.9%, 68.6%, 61.7% at 5, 10, 15, 20, 25°; tipped, 94.4%, 88.7%, 82.9%, 77.1%, 71.2%. The shares of the panel used: turned 94.1%, 88.2%, 82.2%, 76.2%, 70.1%; tipped 96.5%, 92.5%, 88.0%, 83.2%, 78.1%. A trapezium's taper runs across the dimension the tilt is about, and on a wide panel a vertical keystone tapers the short side, so the same angle costs less.0.4000.6000.8001510152025how far the projector is turned or tipped, degreesfar edge's linear resolutionturned (yaw)tipped (pitch)16:9 panel, throw ratio 1.5the short side tapers less
Fig. 4 The far edge’s linear resolution for a 16:9 projector turned (yaw) and tipped (pitch) by the same angles. Turned: 91.5, 75.9 and 61.7% at 5, 15 and 25°. Tipped: 94.4, 82.9 and 71.2%. Panel used, turned: 94.1, 82.2, 70.1; tipped: 96.5, 88.0, 78.1.

Tipped fifteen degrees, the same projector keeps 83 per cent of its linear resolution at the far edge and uses 88 per cent of its panel, against 76 and 82 when turned by the same angle. The trapezium’s taper runs across the dimension the tilt is about: a turn tapers the picture’s height from one side to the other, a tip tapers its width from top to bottom. The corrected rectangle has to fit inside the taper, and on a panel sixteen units wide by nine high, trimming the short side to keep a rectangle costs less of the panel than trimming the long side.

That favours the common installation. A projector on a table aimed up at a screen, or hung from a ceiling and aimed down, pays less for its keystone than one placed off to the side at the same angle. The ordering reverses for a portrait panel, and would vanish for a square one.

A lens shift places the picture for nothing

Keystone correction is one of two ways to put a projector’s picture somewhere its lens is not pointing. The other is a lens shift: the lens is moved across the panel, or the panel across the lens, so the picture lands off the projector’s axis while the panel stays square to the wall.

A lens shift places the picture 15° off the projector's line with a shift of 0.80 half-widths, and loses nothing; keystone correction loses 24 per cent of the far edge's linear resolutionThe lens shift that puts the picture's centre a stated angle off the projector's line with the panel kept square to the wall: 2 × throw ratio × tan of the angle, in half-widths of the picture — 0.00, 0.26, 0.53, 0.80, 1.09, 1.40, 1.73 at 0, 5, 10, 15, 20, 25, 30° for a throw ratio of 1.5. The whole panel lands as an upright rectangle and every source pixel is one panel pixel. Turning the projector instead and keystone-correcting leaves the far edge 100%, 92%, 84%, 76%, 69%, 62%, 55% of the linear resolution at the same angles. A shift costs a lens whose image circle covers the offset; a turn costs pixels, unevenly.00.50011.500102030where the picture's centre is, degrees off the projector's linelens shift needed, in half-widths of the picturethrow ratio 1.5, panel square to the walla shift loses nothing
Fig. 5 The lens shift that puts the picture’s centre a stated angle off the projector’s line with the panel square to the wall, in half-widths of the picture at a throw ratio of 1.5: 0.26 at 5°, 0.80 at 15°, 1.73 at 30°. Every source pixel is one panel pixel. Keystone correction at the same angles leaves the far edge 92, 76 and 55% of its linear resolution.

With the panel square to the wall, the whole panel lands as an upright rectangle — there is no trapezium to correct — and every source pixel is exactly one panel pixel, across the whole picture. To place the picture’s centre fifteen degrees off the projector’s line needs a shift of 0.80 of the picture’s half-width at a throw ratio of 1.5; thirty degrees needs 1.73. The centre of the picture is not the centre of the paper is the same principle for a camera: a shifted lens moves the picture without turning the picture plane, so parallel lines stay parallel and nothing is resampled.

The shift has a price of its own, but it is paid in glass, not pixels: the lens must cover an image circle large enough for the shifted panel, and a large shift needs a large circle. What it never costs is resolution. Between a lens that can shift the picture where it is needed and a keystone correction that resamples it there, the shift delivers the whole panel evenly and the correction delivers, at fifteen degrees, three-quarters of it at the far edge.

What the earlier measurement showed

The earlier essay’s figure is the trapezium this whole argument lives inside.

What keystone correction actually costsA projector turned 15° from square throws its rectangular panel as a quadrilateral. Correction cannot add light outside it, so it shrinks the picture until it fits — and 18.7% of the projector's pixels are thrown away. The fraction is measured on the panel rather than on the wall, because turning the projector makes the wall picture larger while making the panel usage smaller.15° of yaw, 6° of pitch, 1.50 throw ratio81.3% of the panel reaches the corrected rectangleouter: the thrown quadrilateral · inner: what correction can keep18.7% of the panel discarded
Fig. 6 The earlier measurement: a projector turned 15° and tipped 6° throws its panel as a quadrilateral, keystone correction fits the largest upright rectangle of the right aspect inside it, and the panel pixels outside that rectangle are thrown away — measured on the panel, where the price is paid.

The inscribed rectangle is the corrected picture, and the quadrilateral around it is the panel as it lands on the wall. Everything in the density figures is a statement about how the panel’s grid, drawn inside that quadrilateral, is carved up by the rectangle: small, dense cells at the near side, where the quadrilateral is narrow and the rectangle nearly fills it; large, sparse cells at the far side, where the quadrilateral flares and the rectangle pulls away from its edges. A projector in the viewer’s eye found that on a flat wall a projector’s picture is a homography from every seat, so a keystone correction can cancel the whole chain; it cancels the shape exactly and leaves the density exactly as uneven as the figure draws it.

Where the viewer sits changes nothing

A keystone-corrected picture is an upright rectangle on a flat wall, and so, as a projector in the viewer’s eye found, every viewer in the room sees it as a correct flat picture from wherever they sit. The density gradient does not depend on the viewer either. It is a property of how the panel was mapped onto the wall, fixed at the moment of projection, and a viewer at the far side of the room sees the same softened far edge as one at the near side — larger or smaller on their retina, sharper or softer by their own distance, but carrying exactly the source detail the panel delivered there and no more.

What does change with the seat is which edge is nearer. A viewer sitting near the far edge of the picture — the edge the projector was turned away from — sees that edge largest, at the smallest distance, and is the viewer most likely to notice its loss. A projector placed to one side of a room, turned toward a screen at the front, softens the side of the picture nearest the far wall, and the audience seated along that wall is closest to the softest part. The geometry is indifferent to who is looking; the eyes that notice are not.

The loss per degree

The three price curves fall at different rates, and the rates say which measure a designer should budget with.

The share of the panel used falls by almost exactly six points for every five degrees of turn: 94.1, 88.2, 82.2, 76.2, 70.1, 63.8 and 57.5 per cent from five degrees to thirty-five. The far edge’s linear resolution falls a little faster at first and a little slower later — 91.5, 83.5, 75.9, 68.6, 61.7, 55.0 and 48.6 — about a point and a half a degree throughout. Its square, the detail per area, falls fastest: 83.8, 69.7, 57.6, 47.1, 38.1, 30.3 and 23.6. By thirty-five degrees the panel is still more than half used and the far edge carries less than a quarter of the source’s detail.

So a designer who budgets keystone correction by the panel used underestimates the loss at the worst place in the picture by a factor that grows with the angle: at five degrees the two measures differ by ten points, at fifteen by twenty-five, at thirty-five by thirty-four. The linear resolution is the one to budget with for text, where legibility is set by how many pixels span a stroke’s width; the per-area detail for images, where what matters is how much of the source’s texture survives.

The lens shift’s own cost grows with the angle too, but in glass rather than pixels: 2 × throw ratio × tan of the angle, in half-widths of the picture, so a longer-throw lens — placed further back for the same picture size — needs proportionally more shift to reach the same angle, and a larger image circle to allow it.

The same fact, from the camera’s side

The unevenness is not peculiar to projectors. It is what every rectification of an oblique view does, and it has been met before from the other direction.

Flattening a facade rectifies a photograph of a wall taken at an angle, recovering its true shape, and it cannot recover the resolution the oblique view failed to record: the far end of a rectified facade is genuinely softer, because the camera’s pixels spread across more wall there. A keystone-corrected projector is the same map run the other way. The camera’s pixels sample the wall unevenly and rectification cannot even them out; the projector’s pixels paint the wall unevenly and correction cannot even them out either. The render is distorted on purpose found a headset’s pre-warp spending its render’s pixels unevenly by a radial map; a keystone correction does it by a projective one, and the question in both cases is where the scarce pixels end up.

A panel pixel has a footprint

The density measured here counts panel pixels as if each were a point, and one more consequence follows from their being areas. A pixel is not a point found that where a sample sits inside a pixel is a convention with a measurable cost; a projector’s pixel raises the companion question, how large a patch it lights. A panel pixel landing on the wall at the far edge of a keystone-corrected picture lights a larger patch than one at the near edge — larger by the same ratio the density figure draws, about a third at fifteen degrees. The corrected picture’s far edge is therefore not only sampled more coarsely; each sample is also blurred over more wall.

The two effects compound in the direction a viewer notices. A coarser grid of larger patches at the far edge makes both fine detail and sharp edges softer there, and neither the scaler nor the correction can undo it, since both are set by where the panel’s light lands. What the correction controls is only which source pixels are sent to which panel pixels; the light’s own geometry is fixed by the turn.

What was assumed

The source is at the panel’s resolution. A source image smaller than the panel is upsampled everywhere, and a density below one at the far edge then means the source’s own pixels are enlarged there rather than lost. A source larger than the panel is downsampled everywhere, and the far edge loses proportionally more of it.

The resampling is ideal. Every figure here counts panel pixels per source pixel; how well a projector’s scaler interpolates between them is a further loss, largest where the density departs furthest from one — which is the far edge.

The corrected picture is centred in the trapezium. A correction that places its rectangle elsewhere — against the near edge, say, to keep the picture as large as possible — moves the gradient but cannot remove it, since the rectangle’s two ends are still at different distances from the lens.

Still open: whether a correction that spends the panel evenly exists

The unevenness comes from filling an upright rectangle on the wall with a uniform grid of source pixels. Nothing requires the source grid to be uniform. A correction could distribute the source’s pixels across the rectangle in proportion to the panel pixels available at each place — denser where the panel is dense, sparser where it is sparse — and then no panel pixel would be spent on detail the source does not have at that place, and none would be missing where it does.

The measurement that settles what that buys takes a turned projector, finds the distribution of source samples across the corrected rectangle that makes the panel-to-source density equal everywhere, and asks two things: what that density is — whether it approaches the share of the panel used, 82 per cent at fifteen degrees, as it must if the panel is spent evenly — and what it costs the source, which is now itself sampled unevenly, more finely at the near edge than the far. If the even spend is worth having, it is because a source can be rendered to match: a projector that knows its own angle could ask the renderer for more detail where it will reach the wall and less where it will not, which is exactly what a headset’s foveated renderer does for a lens.

Shares its objects with

Essays that name at least two of the same things, and that neither author linked.

Named objects

A flat tag is an object no other essay names yet.

HomographyJacobianKeystoneRectificationResolutionSampling gridShift lens