The rectangle behind the lens

A pitch draws the last rows tallest

A camera that pitches or bounces while its rows are read moves the picture along the readout, and a vertical post comes out taller or shorter rather than leaning. A pitch stretches every depth alike and a rise stretches near things more, as a turn and a travel leaned them. Two things are new. The stretch is 1/(1 − k), not 1 + k, so moving with the readout costs more than moving against it. And along one post a pitch stretches the rows read last the most, 2.35% at the top and 3.10% at the bottom, where a rise stretches every row alike, so one ruled post tells them apart.

Worth reading first: Every row is a different camera · A scroll is a camera that moves.

A frame’s shear knows travel only over depth measured what a rolling-shutter frame records of a camera that turns and travels sideways while its rows are read from top to bottom. Every vertical post leans, because its lower rows were read later, after the picture had moved on. The lean is TH(fω(1+x2/f2)+fv/Z)\tfrac{T}{H}\big(f\omega(1 + x^2/f^2) + fv/Z\big): a turn leans every depth alike and a travel leans near things more. So two posts cannot say how much of the motion was turn and how much travel. A facade can, because a turn leans the frame’s edges more than its middle, but the two signals are 99.8% alike.

All of that motion runs across the rows. A camera on a vehicle also pitches and bounces, and those move the picture up and down the frame, the direction the readout itself runs. The essay ended by asking what that does. Its guess was that a post would be drawn shorter or longer rather than leaning, and that the same division would apply: a pitch acting on every depth alike, a bounce on near things more. It also asked whether the stretch could separate pitch from bounce the way the lean separated turn from travel, and whether it was larger or smaller than the lean for the same motion.

The guess holds, and two things come with it that the lean did not have. A stretch along the readout is not symmetric in its direction. And along a single post a pitch leaves a signature that a bounce cannot imitate, because the readout itself lags.

A post drawn taller

The camera is the earlier one: a 55° lens, a frame of 690 by 400 px, read from top to bottom in 33.3 ms. Instead of turning and travelling, it pitches up at a stated rate, so the picture moves down the frame, and rises at a stated speed, which also moves the picture down, near things faster. Every height below is measured off the frame. Each end of a span is drawn at the row whose read time is the time the camera was where it had to be to draw it there, found by bisection on that time.

Read row by row while the camera pitches and rises, a post 3 m away is drawn 4.4% taller and a far one 2.5%A frame 690 by 400 px read top to bottom over 33.3 ms by a camera with a 55° lens that pitches up at 0.4 rad/s and rises at 1 m/s. Four ruled posts at 3, 6, 12, 60 m; the short ticks are where the rolling frame draws each ruling and the long pale ones where a global shutter would. The picture moves down the frame as the readout does, so every post is drawn taller than it is: 4.4% at 3 m, 3.4% at 6 m, 2.9% at 12 m, 2.5% at 60 m. A pitch moves every depth alike and a rise moves near things more. The slider changes how fast the camera rises.3 m+4.4%6 m+3.4%12 m+2.9%60 m+2.5%pitching 0.4 rad/s, rising 1 m/sdrawn taller, not leaning
Fig. 1 A frame read over 33.3 ms while the camera pitches up at 0.4 rad/s and rises at 1 m/s. Four ruled posts at 3, 6, 12 and 60 m: short ticks are where the rolling frame draws each ruling, pale long ones where a global shutter would. Every post is drawn taller than it is, 4.4% at 3 m, 3.4% at 6 m, 2.9% at 12 m and 2.5% at 60 m. The slider changes how fast the camera rises.

The posts do not lean. They stand vertical and are drawn taller than a global shutter would draw them. The near post at 3 m is 4.4% taller, the one at 6 m 3.4%, and the far one at 60 m 2.5%. The rulings on each post are spread apart, and the spreading is not quite even along the post, which is the part this essay ends up turning on.

The reason for the stretch is the one the lean had, turned through a right angle. The readout sweeps down the frame at H/T rows a second, 12,000 here. The picture is also moving down, at some speed s. A feature lower in the frame is read later, by which time the picture has carried it further down, so the readout reaches it later still. The readout has to catch up with what it is reading, and a span that a still camera would draw over n rows takes n/(1 − k) rows, where k = s·T/H is the picture’s speed as a share of the readout’s.

Pitch where the line starts, rise how steeply it climbs

The picture’s speed has the lean’s form with the axes exchanged: fω(1+y2/f2)f\omega(1 + y^2/f^2) for a pitch, at row y from the middle of the frame, and f·v/Z for a rise of v metres a second, at depth Z. A pitch moves every depth alike. A rise moves near things more.

The stretch is a straight line in one over the depth: the pitch is where it starts, the rise how steeply it climbsHow much taller than it is a post at the frame's centre is drawn, against one over its depth from 2 m to 100 m, for a camera pitching at 0.4 rad/s, rising at 1 m/s, or both, the frame read over 33.3 ms. A pitch stretches every depth alike, 2.30% near and 2.30% far; a rise stretches a post in proportion to one over its depth, 2.84% at 2 m and 0.055% at 100 m; both together add, 5.29% at 2 m. It is the lean of a turning and travelling camera turned through a right angle, and like the lean it gives the rise only over a depth.02400.1000.2000.3000.4000.500one over the post's depth (1/m)drawn taller than it is (%)pitching 0.4 rad/srising 1 m/sbotha post at the frame's centrestart: pitch · slope: rise
Fig. 2 How much taller a post at the frame’s centre is drawn, against one over its depth from 2 m to 100 m, for a camera pitching at 0.4 rad/s, rising at 1 m/s, or both. A pitch stretches every depth by 2.30%. A rise stretches a post in proportion to one over its depth, 2.84% at 2 m and 0.055% at 100 m. Together they add, 5.29% at 2 m.

Plotted against one over the depth, the stretch of a post at the frame’s centre is a straight line. A pitch of 0.4 rad/s draws every post 2.30% taller, near and far. A rise of 1 m/s draws a post at 2 m 2.84% taller and one at 100 m 0.055% taller, in proportion to one over the depth. Together they add, to 5.29% at 2 m. The line’s height where it meets the axis is the pitch, and its slope is the rise over a depth.

That is exactly the lean’s structure, and it carries the lean’s limitation. The frame knows a rise only as its ratio to a depth. Twice the rise past posts twice as far draws the same frame, so the stretch can be turned into a speed only when the depths are known.

With the readout and against it

Here the two motions part company. A lean is symmetric. A turn to the left leans posts one way and an equal turn to the right leans them by the same amount the other way. A stretch is not.

Moving with the readout stretches more than moving against it squeezesA short span at the frame's centre on a post 6 m away, for a camera rising or sinking at up to 14 m/s, against k, the speed at which the picture moves down the frame as a share of the speed at which the readout sweeps down it. Measured off the frame (solid, dots) the drawn height is 1/(1 − k) of the true one, to four figures: 1.1479 at k = 0.129 and 0.8858 at k = -0.129, where 1 + k (dashed), the lean's symmetric rule, gives 1.1289 and 0.8711. With the readout the frame has to catch up with what it reads; against it, the two meet sooner.0.90011.10-0.10000.100the picture's speed down the frame, as a share of the readout'sdrawn height over true heightmeasured, 1/(1 − k)1 + ka span 6 m away, the camera rising or sinkingk 0.13: 1.148 against 1.129
Fig. 3 A short span at the frame’s centre on a post 6 m away, the camera rising or sinking at up to 14 m/s, against k, the picture’s speed down the frame as a share of the readout’s. Measured (solid, dots), the drawn height is 1/(1 − k) of the true one: 1.1479 at k = 0.129 and 0.8858 at k = −0.129, where 1 + k (dashed) gives 1.1289 and 0.8711.

For a short span at the frame’s centre the measured height matches 1/(1 − k) to four figures over the whole range tried. At k = 0.129, the picture moving with the readout at an eighth of its speed, the span is drawn 1.1479 times its height. At k = −0.129, moving against it, 0.8858 times. The symmetric rule 1 + k, which is all the lean needs, gives 1.1289 and 0.8711. The stretch exceeds it and the squeeze falls short of it.

The asymmetry has a plain cause. Moving with the readout, the frame chases what it reads, and the chase lengthens the closer the two speeds are. Moving against it, the two meet sooner, and no speed in that direction draws a span at less than half its height until k reaches −1. With the readout, nothing caps the stretch, and at k = 1 the picture is moving as fast as the readout and a feature stays under the reading line for the whole frame. Reaching k = 1 with this lens and readout needs a pitch rate of about 18 rad/s, which a camera on a vibrating mount reaches at the fastest instant of a swing of under a degree at a couple of hundred cycles a second. That is where a rolling frame folds a line back on itself, and the fold always happens in the stretching direction.

For the motions a vehicle actually makes, k is a few hundredths and the difference between 1/(1 − k) and 1 + k is a few hundredths of a per cent. The asymmetry matters for vibration, not for driving.

One post tells a pitch from a rise

The lean separated a turn from a travel by depth, or by how it grew toward a facade’s edges. The stretch can do both, and has a third way the lean did not. It shows along a single post.

Along one post a pitch stretches the rows read last the most; a rise stretches them all alikeThe local stretch along a post 6 m away spanning most of the frame's height, from the top row, read first, to the bottom, read last, for a camera pitching at 0.4 rad/s (solid) and for one rising at 1.2 m/s (dashed). The rise stretches every part by 1.12%. The pitch stretches the top by 2.35%, the part just above the middle least, 2.19%, and the bottom most, 3.10%: the later a row is read, the longer the gradient in the picture's speed has had to act. The first order including that term (dotted) is within 0.12 points. Matched in mean, the two patterns are only 88% alike, so one ruled post tells a pitch from a rise.11.5022.503100200300row of the frame, from the top (read first) to the bottomlocal stretch (%)pitching 0.4 rad/srising 1.2 m/sfirst orderone post 6 m away, top to bottom88% alike
Fig. 4 The local stretch along a post 6 m away spanning most of the frame, from the top row, read first, to the bottom, read last. A rise of 1.2 m/s (dashed) stretches every part by 1.12%. A pitch of 0.4 rad/s (solid) stretches the top by 2.35%, a part just above the middle least, 2.19%, and the bottom most, 3.10%. The first order including the read-time term (dotted) is within 0.12 points. Matched in mean, the two are 88% alike.

A rise stretches a post evenly along its whole length, 1.12% for every part at 1.2 m/s and 6 m. The picture’s speed under a rise is f·v/Z, which is the same at every row of one post. A pitch does not. Its speed, fω(1+y2/f2)f\omega(1 + y^2/f^2), is least at the frame’s middle row and grows toward the top and bottom, and that alone would stretch both ends of a post a little more than its middle. The measurement shows something else as well. The top of the post is stretched 2.35%, a point just above the middle least, 2.19%, and the bottom most, 3.10%. The bottom, read last, is stretched a third again as much as the top, read first.

The extra comes from the readout’s lag acting on the gradient of the speed. A row read at time t has been moving for t, and if the speed differs between neighbouring rows, their separation changes by t times the difference. For a pitch the speed’s gradient is 2ωy/f, which is zero at the middle row and grows in opposite senses above and below it. Below the middle the gradient stretches, and the rows there are also read late, so the lag multiplies it. Above the middle it squeezes, and those rows are read early. Adding t·2ωy/f to the symmetric rate gives a first order that follows the measured stretch to within 0.12 percentage points along the whole post. A rise’s speed has no gradient along a post, so it has no such term.

The two patterns are very different in shape. Scaled to the same mean stretch, the pitch’s pattern differs from the rise’s by 12% of its own variation: they are 88% alike, against the 99.8% at which a facade’s turn and travel were nearly the same signal. A single ruled post, read top to bottom, says how much of its stretch was pitch and how much was rise. The lean needed a whole facade and a pixel of reading on every row to do the same across the frame. The stretch can do it along one line, because along the readout the lag supplies a signal across the frame does not have.

What one post can read, and how well

The separation has a limit that the 88% hides, and it is the lean’s limit again. A rise stretches a post evenly, and so would the post simply being taller, or nearer, than assumed. The uniform part of a post’s stretch is therefore a rise over a depth, mixed with whatever is not known about the post’s own size. Only the shape of the stretch belongs to the pitch alone: the bend in the spacing of the rulings, least just above the middle and most at the bottom. One post reads a pitch from its shape. It reads a rise only if its height and distance are known, or against a second post at another depth, as in the straight line against one over the depth above.

How well the shape reads the pitch follows from the first order. Integrated along the post, the pitch’s uneven part moves the rulings by THf (y3+Hy2/2)\tfrac{T}{Hf}\,(y^3 + Hy^2/2) per radian per second, about 1.3 px at the ends of a post spanning most of the frame. Fitting the rulings with an unknown place and size for the post, and that shape for the pitch, gives the pitch’s error directly. Forty-one rulings read to 0.3 px give the pitch to 0.19 rad/s. Read to 0.1 px, to 0.064 rad/s. Eleven rulings at 0.3 px give 0.33 rad/s, and 161 give 0.10.

Those are coarse numbers against pitches of a few tenths of a radian a second. One ruled post reads a hard bump and not a gentle one. The lean has no equivalent: one vertical’s lean is a single number, the turn plus the travel over its depth, and nothing along it says how much was turn. A building’s window rows, a fire escape or a fence with regular rails are all ruled posts, and each one in a frame adds its own reading of the same pitch.

A bump in numbers

On a vehicle the two motions arrive together, and the pitch dominates. A car crossing a bump might pitch at half a radian a second while its body rises at 0.3 m/s. With this lens and readout, the pitch alone draws everything 2.76% taller, at every distance. The rise adds 0.33% to a person 5 m away and 0.03% to a building 50 m away. A person 1.8 m tall at 5 m is drawn about 5.6 cm too tall, almost all of it from the pitch, and a measurement of their height from that frame inherits the error whatever the measurer knows about the camera’s lens.

The sign depends on the direction of the pitch relative to the readout. A nose-up pitch moves the picture down the frame, the direction this readout sweeps, and stretches. Nose-down squeezes, slightly less, by the asymmetry above. Over a bump the car pitches both ways in turn. Frames read during the nose-up half are too tall and frames during the nose-down half too short, so a sequence of frames shows the scene breathing vertically in time with the suspension. A stabiliser that corrects only the frame-to-frame turn leaves that breathing in place, because it is an error inside each frame, not between frames.

The same rate as a lean and as a height

The earlier essay’s last question was whether the stretch is larger or smaller than the lean for the same motion.

A pitch changes a post's height by what the same turn leans it, and nobody can see a heightA post 6 m away at the frame's centre, the frame read over 33.3 ms. The lean a turn at each rate gives it, in columns per row (solid), against how much taller a pitch up at the same rate draws it (dashed) and how much shorter a pitch down draws it (dotted). At 1 rad/s: a lean of 5.52%, which is 3.16° off the vertical, a stretch of 5.98% and a squeeze of 5.28%. To first order the three are the same number. A lean of a degree shows against every vertical in the scene; a post a few per cent too tall shows against nothing unless its height is known.05100.50011.502rate of turn or pitch (rad/s)lean, or change of height (%)lean under a turnstretch, pitching upsqueeze, pitching downa post 6 m away, frame centre1 rad/s: 5.5% each way
Fig. 5 A post 6 m away at the frame’s centre. The lean a turn at each rate gives it (solid), against how much taller a pitch up at the same rate draws it (dashed) and how much shorter a pitch down draws it (dotted). At 1 rad/s: a lean of 5.52%, 3.16° off the vertical, a stretch of 5.98% and a squeeze of 5.28%.

To first order they are the same number. A turn of 1 rad/s leans a post at the frame’s centre 5.52% of a column per row, which is 3.16° off the vertical. A pitch up at the same rate draws it 5.98% taller, and a pitch down 5.28% shorter. The three bracket one another as 1 + k and 1/(1 ± k) do, and at the rates a hand-held or vehicle camera actually turns they are indistinguishable.

What differs is what a viewer can see. A lean of a degree or more shows against every vertical in the scene: doorframes, poles and the edges of buildings all tilt together, and the frame looks wrong. A post a few per cent too tall shows against nothing, unless its height is known or something in the frame is known to be square. A pitch’s stretch is as large as a turn’s lean and almost always invisible. That is a reason to measure it rather than look for it. A frame that looks right after a bump has not escaped the bump. Its heights are wrong by the share of the readout the bump moved the picture, and anything measured off those heights, the height of a person or the size of a sign, inherits it.

What this rests on

A pitch about the lens, a rise without a turn. The camera pitches about its own centre and rises straight up. A real vehicle pitches about its axles and rises as it does, so the camera on it moves along a small arc. Over a readout of 33 ms that arc is a pitch plus a rise in a fixed ratio set by the lever arm, and the measurements above add.

A constant rate over the readout. Each motion is steady for the 33 ms the frame takes. A vibration that changes over the readout writes its own changing rate into the rows, and a post then shows a stretch that varies along it at the vibration’s frequency rather than the smooth pattern here.

Rows read top to bottom. A sensor read from bottom to top reverses which end is read last, and with it which end the pitch stretches most. The sign of the read-time term is a property of the sensor, and reading it off a post requires knowing which way the sensor reads.

Still open: a vibration faster than the readout

A camera bolted to an engine or a drone’s arm does not pitch steadily. It vibrates, at a frequency that can be a few times the frame rate, so the picture’s speed down the frame changes sign several times while the rows are read. Each band of rows is then stretched or squeezed according to the vibration’s phase when it was read, and a ruled post comes out with its rulings bunched and spread in a wave, the wobble that gives rolling-shutter video its name.

The measurement that settles what that does reads a frame while the camera pitches as a sine of stated amplitude and frequency, measures the local stretch along a ruled post, and asks three things. Does the post’s pattern of stretch reproduce the vibration’s rate as a waveform along the rows, so that a single frame reads the vibration’s frequency and amplitude? Does the asymmetry of 1/(1 − k) leave a net stretch over a whole cycle, so that a vibrating camera draws posts taller on average even though it goes nowhere? And at what amplitude does the fastest instant reach k = 1 and fold a ruling back on itself?

A vibrating camera writes its frequency down every post takes that measurement: one post gives the shake back once a whole cycle crosses it, a post’s own length and an object averaged over frames come out at their true heights though the frame’s rows average a stretch, and the readout is outrun at 2.9/ν radians.

Motion along the readout draws a post taller or shorter, by 1/(1 − k): the lean’s first order, but not its symmetry. A pitch stretches every depth alike and a rise near things more, as a turn and a travel leaned them. A pitch also stretches the rows read last the most, so one ruled post tells it from a rise.

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.

field of viewinstrument limitMoving viewpointParallaxscale ambiguity