A vibrating frame is turned back by its own reading
Worth reading first: Every row is a different camera · A frame is an interval.
A vibrating camera writes its frequency down every post measured a camera that pitches as a sine while its rows are read one after another. A ruled post comes out bunched and spread in bands, and the bands are the vibration’s rate written down the frame through , where is the picture’s speed as a share of the readout’s. One post read to 0.3 px gave a 0.3° shake at 120 Hz back to a third of a hertz and 2% of its amplitude, provided a whole cycle crossed the post. Past an amplitude of radians the readout is outrun and some rulings are drawn three times.
Every row is a different camera is the reason a reading of the vibration is worth having. Each row of a rolling frame is taken by the camera at the instant that row was read, and a pitch about the lens moves every depth alike, because it turns rays rather than moving the place they come from. A turning frame can be straightened used exactly that to straighten a frame taken while the camera turned steadily: each row was turned back by the angle it was read at, and no depth was needed. The vibrating frame is the same kind of frame with a turn that reverses four times a frame. The essay closed on whether the reading is good enough to straighten it. It asked how far the other posts’ corrected rulings 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’s 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.
The camera, the posts and the reading
The camera is the one the earlier essay measured: 55° across, a frame of 690 by 400 px, read from the top row to the bottom over 1/30 s, pitching about its lens as . Four whole cycles of the vibration pass while one frame is read.
The vibration is read from one post at the centre of the frame, ruled every ten rows from top to bottom, its rulings read with Gaussian noise of 0.3 px. The reader is the earlier essay’s: at each trial frequency it solves for the post’s place, its spacing and the sine’s two phases, all linearly, and the frequency is the one that leaves the least residual. Two small things are changed for the purpose here. The reader reports the sine’s phase as well as its amplitude, since the correction needs the angle at every instant and not only its size. And it finds each ruling’s predicted row by Newton’s method rather than by repeating a substitution, because a substitution converges only as fast as the readout outruns the picture, and close to the fold it barely converges at all.
The correction is then the one the turning frame used. Each drawn pixel is a ray of the camera at the pitch it had when that pixel’s row was read; turned by that pitch, it is a ray of the still camera, and where the still camera draws it is where a global shutter would have put it. The test is four other posts, at columns 250 px left and 230 px right of centre and nearer the middle, and at depths of 3, 6, 20 and 40 m, none of which took any part in the reading.
Four posts come back to a still camera’s rows
The hero figure draws every ruling of the four test posts down the frame: how far it was drawn from where a still camera draws it, before the correction and after.
Drawn, the four posts swing together, up to 3.71 px either way, four times down the frame. They swing together exactly: the pale marks of all four lie on one curve, because a pitch about the lens moves a ray and not the place it starts from, so a ruling three metres away and one forty metres away in the same row are moved alike. That is the whole reason one post’s reading can correct the others. There is no depth in the correction because there is no depth in the fault.
Turned back by one reading of the centre post, they lie within 0.12 px of the still camera’s rows, 0.078 px rms. What is left is a ripple at the vibration’s own frequency, a small error in the amplitude and phase the reading found. Over forty independent readings, each with its own draw of read noise, the residual is 0.086 px rms, and the worst single ruling in any of them is 0.34 px. Against the 2.57 px rms of the uncorrected frame that is a factor of thirty.
So the answer to the first question is that the correction works, and works to a small fraction of a pixel at every depth and column the frame holds. A frame’s shear knows travel only over depth is the case this correction cannot reach, and the pure pitch is the case it can. A frame whose rulings a vibration has moved by a third of their own spacing comes back, from one post’s reading of itself, to the geometry of a frame that never moved.
What sets the residual
The reading was made with 0.3 px of noise on the centre post’s rulings, and nothing about the correction is exact except the geometry. So the residual should be set by the noise.
It is, almost exactly in proportion. One frame read at 0.1 px of noise leaves 0.029 px; at 0.3 px, 0.086; at 1 px, 0.29. The residual is a little under a third of the read noise throughout. The reading averages the noise of 38 rulings into four numbers, and the correction carries the error of those four numbers into every row of the frame.
The amplitude of the vibration does not enter. The measurement that makes the point raises the amplitude from a tenth of the one that folds the frame to 98% of it.
Drawn, the posts are displaced 1.18 px rms at a tenth of the folding amplitude and 11.23 px at 98% of it, as they must be, the displacement being the pitch times the focal length. Turned back, they are 0.086 px at a tenth, 0.093 at four fifths and 0.126 at 98%. A vibration ten times as large is corrected almost as well, because a larger vibration writes itself down the post larger and is read with the same noise. The reading’s amplitude error, as a share of the amplitude, falls as the amplitude rises; the correction’s residual in pixels stays put. The slight rise close to the fold comes from the rows where the picture’s speed is nearly the readout’s. There the rulings are spread so far apart that a fixed number of them describe less of the waveform, and a noise of a fixed size moves the reading slightly more.
That is a useful separation. The size of the fault is the vibration’s, and the size of what the correction leaves is the reading’s. A camera that shakes more is not harder to straighten; a post read less carefully is.
A second frame pins the frequency
The second question was whether a second frame halves the residual or merely repeats it. At 120 Hz and thirty frames a second, the vibration completes exactly four cycles per frame, so the second frame starts at the same phase as the first and draws the post the same way. Read alone, it would be the first frame again with a fresh draw of noise, and two independent readings averaged would cut the residual by the square root of two.
Read together with the first, it does something more. The two frames are two windows on one sine, the second starting one frame period after the first, so a reader that fits both at once must find a single frequency whose phase carries correctly across the gap. A frequency error that is invisible inside one frame, where it only stretches four cycles slightly, becomes a phase error of at the second frame’s start, with the frame period, and the fit will not tolerate it.
The frequency comes back to 0.33 Hz from one frame and 0.11 Hz from two, three times as finely, which is more than the square root of two that a second independent reading would buy and is the lever the gap provides. The amplitude improves only by about that square root, 1.74% to 1.10%, because the amplitude has no such lever. The residual falls from 0.086 to 0.054 px rms, and the worst ruling over all forty readings from 0.34 to 0.17 px.
So the second frame does more than halve the worst case and a little less than halve the typical one. The difference is in what each depends on. The worst cases in the one-frame readings are the ones whose frequency was furthest out: a frequency error of half a hertz turns into a phase error that grows down the frame, and the last rows pay for it. Pinning the frequency removes those. The typical case is set as much by the amplitude and phase, which a second frame improves only as a second sample would.
A third and a fourth frame go on pinning the frequency, to 0.06 and 0.04 Hz, and leave the residual where the second left it, 0.050 and 0.049 px rms. By then the frequency is no longer the limiting number; the amplitude and phase are, and they improve slowly. Two frames is where the useful gain ends.
A vibration that does not divide the frame rate gains the same. At 117 Hz the second frame starts a fraction of a cycle later than the first, so the two frames show the post differently, and the joint reading leaves 0.059 px against 0.084 from one frame, the same improvement as at 120 Hz. The lever is the frame period and not the coincidence of phases.
A post must span a cycle
The earlier essay found the reading unreliable when less than a whole cycle crossed the post. The correction makes that concrete in a different way, because a post that covers only part of the frame is asked to say how the camera moved during rows it never saw.
A post covering nearly the whole frame leaves 0.05 to 0.14 px everywhere. A post covering the middle 30% of the rows, 1.2 cycles, corrects its own rows to 0.21 px and does steadily worse away from them, 2.35 px at the frame’s ends: its reading of the frequency is good enough to describe the cycle it crossed and not good enough to carry the phase two cycles further. A post covering 16% of the rows, two thirds of a cycle, does not even manage its own rows well, and leaves up to 8 px at the ends of the frame, three times worse than not correcting at all.
The rule this gives is plain. A correction read from one post is trustworthy over the rows the post covers and somewhat beyond, and the margin beyond is set by how many cycles the post spans. A frame whose only ruled object is short should be corrected only near that object, or read with a second frame, whose lever on the frequency is the one thing a short post lacks. A correction applied to the whole frame from a post shorter than a cycle is worse than none.
Past the fold, no angle returns a row
The third question was at what amplitude a correction read from a frame that has folded fails outright. At 120 Hz and 1/30 s of readout the frame folds at 1.376°: at that amplitude the picture moves down the frame, at the fastest instant of the vibration, exactly as fast as the readout sweeps it, and a ruling there is drawn over a whole band rather than at one row. Above it, the readout is overtaken and some rulings are drawn three times: once as the readout passes them, once as they pass the readout going back up, and once more as the readout passes them again.
Up to the fold the correction holds, as the amplitude figure showed: 0.126 px at 98% of the folding amplitude. At the fold it fails, and it fails for a reason no reader can repair.
Turning back assumes that each row of the frame holds one row of the world, taken by the camera at one instant, so that one angle returns it. In a folded frame some rows hold three. At 1.05 times the folding amplitude 0.4% of a post’s rulings are drawn more than once, and the rows that hold them are 2.3% of the frame. At 1.2 times, 2.3% of the post and 11.8% of the frame; at 1.5 times, 7.3% and 31.8%; at twice the folding amplitude, 18% of the post is drawn more than once and nearly half the frame’s rows, 47%, hold more than one row of the world. Each of those rows was read at one instant and holds three things that were in three different places at that instant: the readout overtook the picture, and what it read there was a mixture.
No angle turns a mixture back into one row. The correction can still be applied to the rows that hold one row of the world, and for them the geometry is the same as below the fold. But the frame itself has thrown away the order of the folded rows, and the reading is affected too, since the post’s folded rulings cannot be assigned to a single drawn row each. Below the fold every ruling appears once and in order, so a reader can check, from the frame alone, that it is safe; at the fold a ruling appears three times, and the frame announces its own failure. The amplitude at which correction stops is not a matter of the reader’s quality. It is the fold, radians, and the only remedy is a faster readout, which raises it.
What was assumed
The vibration is a pure pitch about the lens. A pitch about a point behind or in front of the lens also moves the camera, and a moved camera shifts near and far things differently, as a frame’s shear knows travel only over depth found for a steady motion. A real camera on a mount pitches about the mount, usually a few centimetres from the lens, and the correction here would leave a residual in proportion to that offset over the depth.
The vibration is one sine. A frame is an interval and turning and travelling blur different worlds treated a frame’s exposure and its motion as continuous over its time; a vibration is that motion at its least steady. An engine shakes at its firing frequency and at harmonics of it. A second component adds two more numbers to read, and a post that spans several cycles of the slower one can carry both, but the reader here looks for one.
Rows are read at evenly spaced instants, with no gap between frames. The readout here fills the whole frame period. A sensor that reads its rows in less than a frame period, leaving a blank interval between frames, gives the second frame a longer lever on the frequency, and the joint reading would improve faster.
The test posts are drawn without noise. The residual measured is the correction’s error, not the test posts’ own reading error, which would add to it.
The two halves of a rolling frame’s damage
A pitch draws the last rows tallest and a turning frame can be straightened between them sorted what a rolling frame does to a scene into two kinds, and a scroll camera rings with its suspension read a vehicle’s sprung pitch back from a line of posts the way the vibration is read here. A rotation of the camera moves every depth alike, can be read off the frame from any one object, and can be turned back. A travel of the camera moves near things more than far ones and cannot be turned back without depth. A vibration about the lens is the purest case of the first kind there is, and this essay finds that it can be turned back almost completely by the frame’s own reading of itself, as long as the reading spans the rows being corrected and the frame has not folded.
The interesting part is how cleanly the limits separate. The size of the fault is the vibration’s amplitude; the size of what is left is the reading’s noise; the reach of the correction is the post’s span in cycles; and the point where it stops is the fold, a property of the vibration’s rate against the readout. None of them depends on any of the others, and each says what to change to do better: read the post more carefully, read it in two frames, use a longer post, or read the sensor faster.
Still open: whether the scene’s own edges can replace the post
Everything here was read from one ruled post, an object whose rulings are known to be evenly spaced. Real frames seldom hold one. What they hold is texture: edges that a still camera would have drawn somewhere, unknown, and that the vibration has drawn bunched and spread. A turning frame can be straightened read its turn from a frame’s straight lines, and every row is a different camera from a frame and a still one.
The measurement that settles whether texture is enough reads the vibration from two consecutive frames of an unruled scene, using the displacement of each patch of texture between the frames, which depends on the difference of the vibration’s angle at the two read times of that patch’s row and on nothing about where the patch is; and asks how well the frequency, amplitude and phase come back from that difference alone, since a vibration that divides the frame rate exactly leaves no difference between frames at all; and whether a third frame, or a frame rate that does not divide the vibration, restores what the second frame could not see.
Texture reads a vibration the frame rate does not divide takes that measurement: 192 patches of texture between two frames turn the frame back to 0.048 px at 110 Hz, better than the post, but the difference carries the vibration times 2|sin(πνP)|, so at this essay’s own 120 Hz and 30 frames a second it reads nothing; a third frame rescues a near miss, and only another frame rate an exact one.
A pitch about the lens moves every depth alike, so a vibrating rolling frame can be turned back row by row by the angle the camera had when each row was read, and the angle can be read off one ruled post in the same frame. Four posts at depths from 3 to 40 m, drawn up to 3.7 px from a still camera’s rows, come back to within 0.09 px rms at 0.3 px of read noise, and what is left is set by the noise and not by the amplitude, right up to the fold. A second frame, whose sine runs on from the first’s through the frame period, reads the frequency three times as finely and halves the worst case; a third adds little. A post shorter than a cycle corrects its own rows and wrecks the rest. Past the fold a row holds several rows of the world at once, and no single angle returns it.
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.
- A followed post's own lean is read as the bend — both name identifiability, moving viewpoint, sensor
- A post read both ways sets its own lean aside — both name identifiability, moving viewpoint, sensor
- A rough road rings the suspension well enough to read, over four hundred metres — both name instrument limit, moving viewpoint, sampling
- Frames read up and down part a post's lean in one drive — both name identifiability, moving viewpoint, sensor
- One depth per sample is not enough — both name identifiability, instrument limit, sampling
- One pair of frames reads the speed and the bend from the roadside — both name identifiability, moving viewpoint, sensor
Named objects
A flat tag is an object no other essay names yet.
Identifiabilityinstrument limitMoving viewpointSamplingSensor