The rectangle behind the lens

A vibrating camera writes its frequency down every post

A camera on an engine pitches as a sine while its rows are read, so a ruled post comes out bunched and spread in bands. The bands are the vibration's rate written down the frame: one post read to 0.3 px gives a 120 Hz shake back to a third of a hertz and its 0.3° amplitude to 2%, once a whole cycle crosses the post. The asymmetry of 1/(1 − k) stretches the bands more than it squeezes them, yet a post's own length is drawn exactly, and a short object at one place averages its true height over frames. Past 2.9/ν radians the readout is outrun and a ruling is drawn three times.

Worth reading first: Every row is a different camera · A frame is an interval.

A pitch draws the last rows tallest measured what a steady pitch does to a frame whose rows are read one after another. The picture moves down the frame while the readout sweeps down it, the readout has to catch up with what it reads, and a span is drawn 1/(1−k)1/(1-k) times its height, where kk is the picture’s speed as a share of the readout’s. That is the lean of a turning frame turned through a right angle, with one difference the lean does not have: moving with the readout stretches more than moving against it squeezes.

A camera bolted to an engine, a drone’s arm or a car’s dashboard does not pitch steadily. It vibrates, often at several times the frame rate, so kk changes sign several times while one frame is read. The essay ended on three questions. Does a ruled post carry the vibration down its rows as a waveform, so that one frame reads the vibration’s frequency and amplitude? Does the asymmetry of 1/(1−k)1/(1-k) leave a net stretch over a cycle, so that a camera that goes nowhere draws posts taller on average? And at what amplitude does the fastest instant reach k=1k = 1 and fold a ruling back on itself?

The answers are yes, no and 2.9/ν2.9/\nu radians, and the second is the one worth slowing down for, because the frame and the world disagree about it.

A pitch that changes sign while the rows are read

The camera is the earlier one: a 55° lens on a frame of 690 by 400 px, read from top to bottom in 33.3 ms, so its focal length is 663 px and the readout sweeps 12,000 rows a second. It now pitches as a sine about its own centre, a(t)=Asin⁡(2πνt+φ)a(t) = A\sin(2\pi\nu t + \varphi). At 120 Hz that is four whole cycles while one frame is read. Posts stand at 3, 6, 12 and 40 m, ruled at even heights, and every ruling is drawn where the frame actually draws it: at each row whose read time is the time at which the camera, wherever it had pitched to, imaged the ruling on that row. Every such row is found, not just the first, so a fold is counted rather than assumed away.

A camera vibrating 0.6° at 120 Hz draws every post's rulings bunched and spread in the same bandsA frame 690 by 400 px read top to bottom over 33.3 ms by a camera with a 55° lens that pitches as a sine of 0.60° at 120 Hz, 4.0 cycles while the rows are read. Four ruled posts at 3, 6, 12, 40 m; short dark ticks are where the rolling frame draws each ruling and long pale ones where a global shutter would. A pitch moves every depth alike, so the four posts are bunched and spread in the same horizontal bands. The strip at the right is k, the picture's speed down the frame at the centre column as a share of the readout's, at the moment each row is read, peaking at 0.44; where it leans right the rows are stretched, where it leans left squeezed.3 m6 m12 m40 mk by row0.60° at 120 Hz, k up to 0.44bunched and spread, every depth alike
Fig. 1 A frame read while the camera pitches 0.6° at 120 Hz, four ruled posts at 3, 6, 12 and 40 m, rolling rulings dark and global ones pale, and the picture’s speed as a share of the readout’s beside each row. The slider raises the amplitude past the fold.

Because a pitch about the lens moves every depth alike, all four posts are bunched and spread in the same horizontal bands. A band where the picture is moving down, with the readout, is stretched; a band where it is moving up is squeezed. The strip beside the frame is kk for each row at the moment that row was read, and it is a cosine: the derivative of the angle, scaled by (T/H) f(T/H)\,f, where TT is the readout time and HH the frame’s height in rows. Its peak at the centre row is

k0=TH f 2πνA,k_0 = \frac{T}{H}\,f\,2\pi\nu A,

which is 0.218 at 0.3° and 120 Hz. This is the steady pitch’s rate made periodic. Nothing about the geometry changes except that it is now a function of the row.

The bands are the rate, sharpened

Read along one tall post, row by row, the local stretch traces the vibration as a wave down the frame.

Along one post the stretch is the vibration's rate, written down the rows and sharpened at its peaksThe local stretch along a post 6 m away spanning 94% of the frame, for a camera pitching as a sine of 0.3° at 120 Hz while the 400 rows are read over 33.3 ms. Measured off the frame (solid), the stretch swings 4.0 times between +28.6% and −18.6%: the rate of the vibration, k up to 0.218, at the moment each row was read. The closed form 1/(1 − k) at the same instant (dotted) is within 0.29 points everywhere. The symmetric rule 1 + k (dashed) misses both peaks the same way: the stretched bands are stretched further and the squeezed bands squeezed less.-20020100200300row of the frame, from the top (read first)local stretch (%)measured1/(1 − k)1 + k0.3° at 120 Hz, one post 6 m away+28.6% to −18.6%
Fig. 2 The local stretch along a post 6 m away spanning 94% of the frame, for a pitch of 0.3° at 120 Hz: measured off the frame, against 1/(1 − k) and 1 + k at each row’s read time.

The stretch swings four times between +28.6% and −18.6%. Evaluated at each row’s own read time, 1/(1−k)1/(1-k) follows the measured stretch to within 0.29 percentage points everywhere, and the residue is the factor 1+y2/f21 + y^2/f^2, which speeds up the rows far from the centre a little. The symmetric rule 1+k1 + k, which is what the frame’s lean would obey, misses both peaks in the same direction: it draws the stretched bands too short and the squeezed bands too squeezed.

So the first question’s answer is yes, and the wave is not a sine. It is the sine of the rate passed through 1/(1−k)1/(1-k), which sharpens the stretched crests and flattens the squeezed troughs. At 0.3° the crest is 28.6% and the trough 18.6%; on a plain sine they would be equal. A post on a vibrating camera does not look like a spring evenly compressed and released. It looks like a spring with long loose coils and short tight ones.

The frame has a second thing to say about the vibration that the stretch does not show directly: where along the post each ruling sits, which is the stretch summed. A ruling read at time tt has been carried f (1+y2/f2) a(t)f\,(1 + y^2/f^2)\,a(t) rows from where a global shutter would draw it. Its displacement is the angle itself, written at the ruling’s read time, and that is what can be fitted.

One post gives the vibration back

Suppose a frame is all there is. A reader knows the lens and the readout time, sees a ruled post, and does not know how tall the post is, where it stands or how the camera shook. The rulings are evenly spaced on the post, so their global rows are a straight line in the ruling’s index, with a place and a slope that are unknown. To that the vibration adds its displacement. For a trial frequency the model is fitted by solving for the place, the slope and the sine’s two components, its sine and cosine parts, and the frequency is the one whose fit leaves the least misfit.

One post's rulings, read to 0.3 px, give the vibration back as 120.1 Hz and 0.293°The rulings of one post 6 m away, every 10 px over 94% of the frame, drawn while the camera pitches 0.3° at 120 Hz, each found to 0.3 px. At each trial frequency from 2 Hz to 600 Hz the post's place and size and the sine's sine and cosine parts are fitted to the rulings' drawn rows, and the misfit is plotted. It has one deep minimum, at 120.1 Hz with an amplitude of 0.293° and a misfit of 0.27 px, the reading noise. Away from it the misfit sits between 2.34 and 2.48 px, the vibration left unexplained. From 4 to 8 Hz there is no curve: every fit there needs a vibration fast enough to outrun the readout, and a frame with each ruling drawn once rules that out.0120200400600trial frequency (Hz)rms misfit of the rulings (px)120.1 Hzreading noise38 rulings, each to 0.3 pxtrue 120 Hz, 0.3°
Fig. 3 The misfit of one post’s rulings, read to 0.3 px, against the trial frequency, for a camera pitching 0.3° at 120 Hz. One minimum, at the vibration; a gap where every fit would need a vibration that folds the frame.

The misfit has one deep minimum. With every ruling found to 0.3 px, it sits at 120.1 Hz with an amplitude of 0.293° and a misfit of 0.27 px, the reading noise. Everywhere else the misfit is the vibration left unexplained, 2.3 to 2.5 px.

One detail of the fit matters enough to state, because it was wrong the first time. A ruling’s read time is its drawn row, so it is tempting to evaluate the sine at the rows the frame shows. Then the data are inside the regressors, and at a low trial frequency the sine is nearly the row itself, so a large enough amplitude absorbs the whole post: a noise-free 120 Hz post fitted at 7 Hz to 0.09 px. The model has to be implicit instead. The drawn row of a ruling is its global row plus the displacement at the drawn row’s own time, and that is solved for the model’s rows, never the measured ones. Between 4 and 8 Hz even the implicit fit can only explain the rulings with a vibration fast enough to outrun the readout, and a frame in which every ruling is drawn once rules that out, which is the gap in the curve.

A cycle has to cross the post

How well one post reads the vibration depends on how much of the vibration crosses it.

A post reads a vibration well once a whole cycle crosses it, and the frequency far better than the amplitudeForty frames at each frequency, the camera pitching 0.3°, one post's 38 rulings over 31.3 ms of readout found to 0.3 px, and the frequency read by a scan from 2 Hz to 600 Hz. Left of the dashed line (32 Hz) less than one cycle crosses the post: at 20 Hz the frequency is read to 12% and the amplitude to 28%, because a part of a sine with a free phase trades against the post's own place and size. Past it both errors fall by an order of magnitude: at 40 Hz 1.1% and 1.9%, at 120 Hz 0.29% and 1.9%. From there the frequency is read to about the same number of hertz, 0.34 Hz at 120 Hz and 0.35 Hz at 320 Hz, so its share keeps falling (solid). The amplitude stays near 2% (dashed) up to 320 Hz, set by how far each ruling moves, 3.5 px, against how well it is found, and rises to 4.0% at 400 Hz, where the same 0.3° already moves the picture at 0.73 of the readout's speed, close to the fold.0.10.31310300100200300400the vibration's frequency (Hz)rms error of the reading (%)one cycle on the postfrequencyamplitude0.3°, 38 rulings at 0.3 px, to 400 Hz120 Hz: 0.29% and 1.9%
Fig. 4 The rms error of the frequency and the amplitude read from one post’s 38 rulings at 0.3 px, forty frames at each frequency, the camera pitching 0.3°, with the frequency at which one cycle crosses the post marked.

Below about 32 Hz less than one cycle crosses the post’s 31 ms of readout. Then the frequency is read to 12% and the amplitude to 28% at 20 Hz, because a fragment of a sine with a free phase trades against the post’s own place and size. This is the earlier essay’s result arriving from the other side. A steady pitch drew the post uniformly taller, which a reader cannot tell from a taller post, and only the bend in the spacing of the rulings belonged to the pitch alone. A part-cycle is a steady pitch with a bend in it, and the bend is all it gives.

Once a whole cycle crosses the post, both errors fall by an order of magnitude: at 40 Hz the frequency is read to 1.1% and the amplitude to 1.9%, at 120 Hz to 0.29% and 1.9%. From there on the frequency is read to about the same number of hertz, 0.34 at 120 Hz and 0.35 at 320 Hz, so its share keeps falling as the frequency rises, as a frequency read over a fixed window must. The amplitude does not improve, staying near 2% up to 320 Hz. It is set by how far each ruling moves, 3.5 px at 0.3°, against how well each is found, and more cycles do not move a ruling further. At 400 Hz the same 0.3° already moves the picture at 0.73 of the readout’s speed, close to the fold, and the amplitude’s error doubles.

Two things the reading needs are not in the frame. It needs the readout time, because the frame records cycles per readout and not cycles per second. The readout time is a property of the sensor and is often shorter than the frame period, so a reader who takes the frame rate for it reads the wrong frequency by their ratio. And it needs the vibration to be one sine. A scroll camera rings with its suspension found a damped oscillation in a pushbroom’s rows and read its frequency and damping back from one line of posts; the rolling frame is, like the pushbroom of a scroll is a camera that moves, a camera whose rows are moments, turned to a faster clock, and like the scroll it reads only the motion it is given a model for.

The asymmetry leaves the world alone

The second question was whether the asymmetry of 1/(1−k)1/(1-k) leaves a net stretch. The crest is 28.6% and the trough 18.6%, so it seems it must. It does and it does not, depending on what is averaged.

Averaged over the frame's rows a vibrating camera stretches the picture; averaged over the post it stretches nothingA post spanning three whole cycles of a 120 Hz pitch, at amplitudes from 0.1° to 1.2°. The local stretch averaged over the frame's rows (solid) climbs as 1/√(1 − k₀²) (dotted), +2.5% at 0.3° and +33.8% at 0.9°, a little above the centre-row form at large amplitude because rows far from the centre move faster. The post's own length (dashed) is drawn within 0.09% of its height at every amplitude. Half the frame's rows lie in stretched bands at every amplitude; only 43% of the post's length does at 0.3° and 29% at 0.9°, which is ½ − k₀/π.0501000.2500.5000.7501amplitude of the vibration (°), at 120 Hzmean stretch (%)over the frame's rows1/√(1 − k₀²)over the post's lengththree whole cycles at 120 Hz0.9°: rows +33.8%, post −0.09%
Fig. 5 For a post spanning three whole cycles of a 120 Hz pitch, the local stretch averaged over the frame’s rows and over the post’s own length, against the amplitude, with the centre row’s closed form.

Averaged over the frame’s rows, each drawn row counted once, the stretch is 1/1−k021/\sqrt{1 - k_0^2}: +2.5% at 0.3° and +33.8% at 0.9°, a little above the closed form at large amplitude because rows far from the centre move faster. That average is what a viewer sees. Half the frame’s rows lie in stretched bands at every amplitude, and those bands are stretched further than the others are squeezed.

Averaged over the post’s own length, each world row counted once, there is no stretch at all: the post is drawn within 0.09% of its height at every amplitude from 0.1° to 1.2°. The reason is a line of arithmetic. A post’s drawn length is its global length plus the displacement at its bottom ruling less the displacement at its top one, and over whole cycles the angle has come back to where it was, so the two displacements are equal. The stretched bands are long and the squeezed bands short, and they hold different amounts of the world. Only 12−k0/π\tfrac12 - k_0/\pi of the post lies in stretched bands: 43% at 0.3°, 29% at 0.9°. The readout spends a drawn row on less than a world row exactly where it stretches, and the two factors cancel.

So the frame looks taller than the world it shows and is not. A viewer comparing bands sees the stretch win. A reader measuring a post across whole cycles sees nothing. The steady pitch had no such cancellation, because its angle never came back.

One place, read at every point of the cycle

A whole post spanning whole cycles is the friendly case. The unfriendly one is a short object, a sign or a face, sitting at one place in the frame. Its drawn height depends on the vibration’s phase when the readout reaches it.

A span at one place is drawn anywhere from 0.70 to 1.77 times its height, and exactly its height on averageA short span at the centre of a post 6 m away, in frames read while the camera pitches 0.6° at 120 Hz (k up to 0.436), the vibration starting at each of 144 points spread evenly over its cycle. Any one frame draws it between 1/(1 + k₀) = 0.696 and 1/(1 − k₀) = 1.773 of its height (solid). Averaged over the phases, which an engine not synchronised to the camera makes equally likely, it is drawn at 1.0001 of its height (dashed). The frame's own rows, averaged, are stretched by +11.5% (dotted): stretched bands are stretched more than squeezed bands are squeezed, but the readout spends less of the world in them.11.500100200300phase of the vibration when the frame starts (°)drawn height over true heightone framemean over phasesmean over rows0.6° at 120 Hz, one span, 144 startsmean 1.0001
Fig. 6 A short span at the centre of a post 6 m away, in frames read while the camera pitches 0.6° at 120 Hz and the vibration starts at each of 144 points spread evenly over its cycle: its drawn height in each, its mean over the phases, and the mean stretch over the frame’s rows.

At 0.6° and 120 Hz the peak rate is k0=0.436k_0 = 0.436, and any one frame draws the span anywhere from 1/(1+k0)=0.6961/(1 + k_0) = 0.696 to 1/(1−k0)=1.7731/(1 - k_0) = 1.773 times its height. Averaged over phases that are equally likely when the frame starts, it is drawn at 1.0001 times its height. The frame’s rows, averaged, are stretched by 11.5%.

The cancellation has the same cause as before, seen from the object instead of the frame. A short span at a fixed place is read at a time that depends on the phase, and the phase at which it is read is not uniform. Solving for the read time shows that phases are reached in proportion to 1−k1 - k: the readout lingers near the phases that squeeze and hurries through the phases that stretch, because when the picture is moving with the readout the readout catches it later. Weighting 1/(1−k)1/(1-k) by 1−k1 - k leaves one. A vibrating camera draws a fixed object at its true height on average over frames, though in no particular frame.

The average needs the vibration not to be locked to the frame rate. A shake at an exact multiple of the frame rate puts every frame at the same phase, and then the error is the same in every frame and averaging removes nothing. The 120 Hz used here is four times 30 frames a second, which is the locked case; it is a reasonable engine harmonic for a camera running at 30 frames a second, and that is precisely when averaging frames fails. An engine’s speed wanders, and a wandering phase is what makes the average honest.

The readout outrun

The third question asked where the fastest instant reaches k=1k = 1. At the centre row that is where k0=1k_0 = 1, so the amplitude is H/(Tf 2πν)H/(T f\, 2\pi\nu), which with this lens and readout is 2.9/ν2.9/\nu radians: 1.38° at 120 Hz, under a degree above about 170 Hz.

The readout is outrun at an amplitude that falls as one over the frequency, a little before any ruling shows itFor frames that start at phase zero, the amplitude of pitch at which the fastest row covered by a frame-tall post first moves as fast as the readout (solid), against the frequency: 2.74° at 60 Hz, 1.35° at 120 Hz, 0.52° at 300 Hz. It sits at or just under the centre row's H/(T·f·2πν) (dashed), which is 2.9/ν radians with this lens and readout, because a peak of the rate that lands away from the centre moves a little faster. The dots are where a ruling of a post ruled every 2 px is first drawn three times: the band that folds starts with no width and has to grow wide enough to hold a ruling, so at 45 Hz and 90 Hz the dots come up to 11% later.01234100200300the vibration's frequency (Hz)amplitude at the fold (°)fastest row reaches k = 1centre rowdots: a ruling first drawn three times120 Hz: 1.35°
Fig. 7 For frames that start at phase zero, the amplitude at which the fastest row covered by a frame-tall post first moves as fast as the readout, against the frequency, with the centre row’s form and the amplitude at which a ruling ruled every 2 px is first drawn three times.

For a real frame the fold comes where the peak of the rate meets a row, and a peak away from the centre moves a little faster by 1+y2/f21 + y^2/f^2. So the fold amplitude for frames starting at phase zero sits at or just under the centre row’s: 2.74° at 60 Hz, 1.35° at 120 Hz, 0.52° at 300 Hz. Every ruling of a post past that amplitude is still drawn somewhere, but the rows that fold draw some rulings three times. The first copy is drawn as the readout reaches it, the picture then carries the ruling down past the readout, and it is drawn again as the picture swings back and a third time as the readout overtakes it.

Rulings are a coarse detector of this. The band of world rows that folds starts with no width at the fold and grows as the amplitude rises past it, so a ruling has to fall inside before it is drawn three times. With rulings every 2 px the first triple copy comes up to 11% later in amplitude than the readout is first outrun, at 45 and 90 Hz, where the fastest rows sit between rulings.

Past the fold, a camera vibrating 1.8° at 120 Hz draws 12 rulings more than onceA frame 690 by 400 px read top to bottom over 33.3 ms by a camera with a 55° lens that pitches as a sine of 1.80° at 120 Hz, 4.0 cycles while the rows are read. Four ruled posts at 3, 6, 12, 40 m; short dark ticks are where the rolling frame draws each ruling and long pale ones where a global shutter would. A pitch moves every depth alike, so the four posts are bunched and spread in the same horizontal bands. The strip at the right is k, the picture's speed down the frame at the centre column as a share of the readout's, at the moment each row is read, peaking at 1.31; where it leans right the rows are stretched, where it leans left squeezed. Past k = 1 the readout is outrun and 12 rulings are drawn three times each.3 m6 m12 m40 mk by row1.80° at 120 Hz, k up to 1.3112 rulings drawn three times
Fig. 8 The same frame at 1.8° and 120 Hz, the readout outrun four times over: the rulings drawn three times each are marked in the second colour.

At 1.8° and 120 Hz the peak rate is 1.31 of the readout’s, and twelve rulings across the four posts, ruled every 6 px, are drawn three times. The fold happens only in the stretching direction, as the steady pitch already showed: against the readout the squeeze bottoms out at 1/(1+k0)1/(1 + k_0), which is still more than a half until k0k_0 passes one, and no amplitude makes the squeezed bands fold.

How large these numbers are

The amplitudes here are small by everyday standards. A 0.3° shake moves the picture 3.5 px, and a hand-held camera wanders by more than that. What makes them large is the frequency: a hand moves at a few hertz and an engine mount at a hundred or more, and kk grows as the product. A camera that vibrates at 0.3° and 120 Hz is moving its picture at a fifth of the readout’s speed at the peaks, which a frame is an interval would also see as blur, a streak in each row whose length rises and falls with the rate from band to band, if each row’s exposure were long against a cycle. Rolling-shutter wobble and vibration blur come from the same motion, and which shows depends on whether the exposure is short against a cycle; the blur is the streak half of the disc and the streak, drawn here one band at a time.

The steady pitch drew every height a few per cent wrong and nobody could see it, because nothing in the frame says how tall anything should be. The vibration is the opposite case. Its bands are visible against any regular structure, a fence, a facade’s window rows or a ruled post, so the motion announces itself. Yet a whole post’s height is right, and an object at one place is right on average. The vibration is easy to see and, over whole cycles or over unlocked frames, harmless to the measurement. A steady pitch is invisible and biased.

What this rests on

A pitch about the lens centre. A camera on a mount also translates as it pitches, and a translation moves near things more than far ones, as a frame’s shear knows travel only over depth found. At a few tenths of a degree on a mount a few centimetres long, the translation’s share is small beyond a few metres, and it would show as bands whose depth differs between near and far posts.

One sine. An engine has harmonics and a mount has its own resonance, so a real shake is a sum. The scan above fits one frequency; a sum of two needs two, and whether one post’s 38 rulings can hold eight numbers is not measured here.

Rows read top to bottom in a fixed readout time. A sensor that reads bottom to top reverses which band is read first and nothing else, and frames read up and down showed what a sensor that alternates can do with that reversal.

Every ruling found to 0.3 px. Edges in a real frame are found to that or better when they are sharp; a long exposure smears each ruling by the motion during it, and the reading then needs the exposure’s own blur in its model.

Still open: whether a frame can be unwobbled by its own reading

Every row of a vibrating frame is a different camera, as every row is a different camera put it, and a pitch about the lens moves every depth alike. So once the vibration is known, each row can be turned back by the angle it was read at, as a turning frame was straightened, with no depth needed. Here the vibration is not known; it is read off one post, to a third of a hertz and 2% of its amplitude.

The measurement that settles what that reading is worth reads the vibration from one post, turns every row back by the angle the reading gives, and asks three things: how far the corrected rulings of the other posts then lie from a global shutter’s, against the 3.5 px they were moved; whether a second frame, whose phase follows from the first through the frame period, halves the residual or merely repeats it; and at what amplitude a correction read from a frame that has folded fails outright, since the rulings drawn three times are rows no single angle can return.

A vibrating frame is turned back by its own reading takes that measurement: four other posts come back to within 0.09 px of a still camera’s rows, a second frame pins the frequency three times as finely, and the correction holds right up to the fold and fails exactly there.

A camera that vibrates while its rows are read draws a ruled post bunched and spread in bands, and the bands are the rate of the vibration written down the frame through 1/(1 − k). One post read to 0.3 px gives a 120 Hz, 0.3° shake back to a third of a hertz and 2%, once a whole cycle crosses it. The frame’s rows average a stretch of 1/1−k021/\sqrt{1 - k_0^2}, but a post’s own length over whole cycles is drawn exactly, and a short object at one place averages its true height over unlocked frames. Past 2.9/ν radians the readout is outrun and rulings are drawn three times.

What links here

Computed from the collection, not written here: the essays that point at this one.

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.

Identifiabilityinstrument limitMoving viewpointSamplingSensor