Photographic visual for Motion Deblur

Motion Deblur

Undo camera shake along the line the camera moved

The smear is measured and drawn as a kernel on a dial. Turn it, lengthen it, and check the edges at 100% before you save.

Pixels stay in this tab; only the file you save leaves it.

Drop a photograph here, or click to choose one

Open a photograph that came out blurred. The smear is measured and the reconstruction starts here, with the kernel, strength and region yours to adjust. Drop a whole folder and every frame is measured first, so the ones that cannot be recovered are named instead of treated.

No blurred frame to hand?

Three ways a frame fails, drawn here and measured with the same code

Nothing below is a photograph somebody chose. The frame is drawn by this page, broken in the way the segment names, and — if you press the control — put through the identical worker the button in the rail uses. Two of the three are cases where the answer is no.

Camera shake. Every pixel averaged across nine cells along one axis, which is what a hand-held exposure does.

The case the pass is shaped for. The energy is still in the frame, moved sideways, and a kernel of the measured shape walks most of it back.

These numbers are this processor’s, measured now. What a learned pass would cost to fetch and what it is licensed under are on the weights page.

What a shaken frame looks like up close

A hand that moved during the exposure drags every point of the scene along the same short path. Up close that has a signature nothing else has: straight edges across the path stay sharp-ish, edges along it vanish, and small bright points turn into short dashes that all point the same way. Those dashes are the kernel, drawn by the scene itself — which is why the dial on this page is drawn the same way.

Missed focus is different. It spreads every point into a disc, softens edges in all directions equally, and has no preferred angle. When the measurement cannot find a direction it reports defocus, and this page lets you switch to that kernel in one click rather than forcing a streak onto a round blur.

Four moves with the kernel

  1. Let the dial show what it measured. The frame opens straight into the motion kernel. The streak on the dial is the smear the arithmetic will undo, one dot per tap; the dashed ghost is what the measurement suggested, kept in view after you move the knob.
  2. Turn it until straight edges stop doubling. Put the probe on a lamp post, a window frame or a line of type, and turn the knob a few degrees either way. A kernel that is off by more than about ten degrees leaves a faint second edge beside every straight one; the loupe shows it at source resolution.
  3. Lengthen it until the halo appears, then back off. Too short and the smear is only partly walked back. Too long and every edge grows a bright rim on one side. The right length is just before that rim — the strength pair beside the loupe is the quickest way to see the difference.
  4. Keep the reconstruction where the shake was. Camera shake moves the whole frame, but a subject who moved during the exposure does not match it. Paint only the part that shared the camera's motion, or lower strength, and leave the rest as it arrived.

Reading the dial

AngleDegrees anticlockwise from horizontal, 0 to 179. A smear has no front or back, so 10° and 190° are the same kernel.
LengthHow far the camera travelled during the exposure, in pixels of the full-size frame. Longer than about a twentieth of the frame is past what this arithmetic can walk back.
Ghost lineThe measured kernel, kept on the dial after you change it, so a hand adjustment can always be compared with what the frame suggested.
TapsThe dots along the streak. The preview runs up to 41 of them on the working copy; the saved file runs the full length on the full frame.

Where camera-shake reconstruction goes wrong

  • A curved or zig-zag shake is not a straight line. One kernel can match one leg of it; the rest comes back with a doubled edge that no angle removes.
  • Two subjects moving differently — a passing car and a still building — need two different kernels. Paint the region that matches the dial and leave the other untouched.
  • Rolling-shutter skew from a phone panning quickly leans verticals as well as smearing them. The smear can be walked back; the lean cannot.
  • Night shots carry noise, and every round amplifies it. Raise the artifact guard and lower the rounds before reaching for more strength.
  • Text is the risky case: a reconstructed stroke can close a letter into the wrong one. Read numbers and names against another source.

Related pages