Concept

Aspect ratio — where it appears

The proportion of a rectangle's width to its height, whether of a sensor, a frame, a panel or a single pixel. It enters a camera's arithmetic twice, once as the shape of the frame and once as the shape of a pixel, and an unmodelled pixel aspect is absorbed into a confident wrong focal length.

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

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
the picturethe same plane, rectifieddoor — 0.5068 widths (true 0.5068)sill — 0.3026 widths (true 0.3026)diagonal — 1.1766 widths (true 1.1766)worst error 4e-16 relativethe probes were not used to build the map

Flattening a façade out of the photograph

Four corners of a rectangle whose proportions are known are enough to undo the projection of one plane. After that the plane can be measured with a ruler — lengths, angles, areas, all of it — in units of the rectangle's own width, and lengths the map was never given come back to fifteen digits.

metrology · Rectify
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
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
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
010200.8000.90011.101.20the assumed aspect, as a multiple of the true onethe error — degrees for the angle, per cent for the lengththe angle, in degreesa length into the pictureone wrong assumption, three quantitiesshape and size are different facts

An angle on the ground

An angle needs no length at all — it is scale-free, so the one thing a single view cannot give is not the thing an angle wants. What it wants instead is the plane's shape, and the difference is measurable — assume the reference rectangle's aspect a quarter wrong and the angle moves 11.5°, a length running into the picture is out by exactly that quarter, and a length along the reference's own direction does not move at all.

metrology · Rectify
0102030401234the marking error, in pixelsthe error of the answer, in per centupper curve: the closure wrong · lower: the closure exactfloor 6.0%

The floor a better camera cannot reach

Sweep the marking error from four pixels down to a hundredth and the measurement's error falls thirty-fold and then stops — at 6.0 per cent, which is exactly the six per cent the reference's assumed shape was wrong by. With the closure exact the same sweep keeps falling to 0.06 per cent. The crossing is at half a pixel, and it can be computed before the photograph is taken, which makes it a decision about equipment rather than a discovery about it.

metrology · Uncertainty
-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
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
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

Named alongside it

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

Focal lengthPrincipal pointAnisotropyCamera calibrationQuantisationResidualDegeneracyBiasCamera matrixDemonstrationHomographyIdentifiability

All concepts