photographic deconvolution tool

Characterize the point spread function (PSF) of your lens and deconvolve images for aberration-aware sharpening. Photograph the test target on your monitor in pairs. Take one photo stopped down to reduce lens aberrations (typically f/8) and one at the desired aperture (e.g. wide open). Use the spatially varying PSFs to deconvolve images following Heide et al., High-Quality Computational Imaging Through Simple Lenses.

Everything runs client-side and nothing leaves your machine because I don't want to pay for your compute. Save your calibration for later reuse.

  1. Fullscreen the calibration pattern.
  2. Back off far enough to avoid moire. Use a tripod and a self-timer or shutter release cable to keep the images aligned. Prefer low ISO and good exposure. Use a focus distance similar to the one you want to calibrate.
  3. Stop down, focus on the calibration patter, and take a photo.
  4. Open to the desired aperture, refocus on the target, and take a photo without moving the tripod.
  5. Reframe and repeat the previous two steps until you have pairs of images of the test pattern covering the entire frame.

Keep the image size, orientation, format, and focal length consistent. The tool identifies the stopped-down and wider-aperture photos in either order.


Add another pair or merge saved profiles from the same lens setup to keep the best measurement at each position. Save the profile to restore other photos without recalibrating.

Use a photo taken at the calibrated aperture, with the same camera, lens, focal length and focus distance. Keep the same image dimensions and orientation.

Calibrate or load a PSF profile first.


Compiled to WASM from heide-simple.

LLM summary of how this tool differs from Heide et al.

Heide et al. paper and MATLAB code

Calibration

Restoration