Refocusing is a post-capture process that synthetically changes the focus distance and depth of field in a photograph. Unlike a traditional camera, which fixes focus at capture, this technique uses additional data—typically a light field from a plenoptic camera or a focal stack of images—to simulate the optical effects of different aperture settings and focus distances. This enables photographers to select the focal plane after the fact, a capability central to computational photography.
Primary Applications and Use Cases
Refocusing is not merely a post-processing effect; it is a fundamental computational technique that enables new capabilities in imaging, vision, and display systems by manipulating the captured light field.
Post-Capture Focus Control
The most direct application of refocusing is allowing photographers to synthetically adjust the focal plane after an image is captured. This is achieved by computationally integrating rays from the desired focal plane within the captured light field. Key implementations include:
- Lytro cameras which popularized consumer light field photography.
- Focal stack fusion, where a stack of images at different focus distances is captured and the in-focus regions are blended to create an image with extended depth of field.
- Software tools that allow selective focus and bokeh adjustment from a single light field capture, effectively simulating different aperture sizes.
Depth Estimation & 3D Sensing
Refocusing algorithms are intrinsically linked to depth. By analyzing which synthetic focus setting brings different image regions into sharpness, a depth map can be inferred. This technique, known as depth-from-defocus, uses the focal stack as input. Applications include:
- Microscopy: Determining the 3D structure of biological samples.
- Industrial inspection: Measuring the height and topography of manufactured components.
- Computational imaging for robotics: Providing dense depth information from passive sensors, complementing active systems like LiDAR.
All-in-Focus Imaging & Focus Stacking
Refocusing enables the creation of images where the entire scene is in sharp focus, beyond the physical limits of a camera lens. This is critical in fields where maximum detail is required across a deep scene. The process involves:
- Capturing a focal stack.
- Using a focus measure (e.g., variance of Laplacian) to identify the sharpest pixels at each spatial location across the stack.
- Fusing these pixels into a single all-in-focus composite. This is essential for:
- Macro and microphotography where depth of field is extremely shallow.
- Document digitization to ensure text is legible across curled pages.
- Landscape astrophotography to keep both foreground and stars sharp.
Synthetic Aperture & Bokeh Rendering
By selectively integrating rays from the light field, refocusing can simulate the effect of using a lens with a different aperture size. This allows for:
- Synthetic shallow depth of field: Creating professional-looking bokeh from images captured with small-aperture smartphone cameras. The quality depends on the angular resolution of the light field.
- Synthetic wide aperture: Simulating a faster lens for low-light performance by integrating more light rays.
- Bokeh editing: Altering the shape and character of out-of-focus highlights after capture, a feature found in advanced computational photography modes on modern phones.
Autostereoscopic 3D Displays
Refocusing is the core computational backend for light field displays and holographic stereograms. These displays emit different light rays in different directions, allowing viewers to see a 3D scene without glasses. The process requires:
- Rendering dozens to hundreds of sub-aperture images (different viewpoints) from the captured or synthesized light field.
- These images are then fed to the display's optical system (e.g., lenticular lens array, parallax barrier, or directional backlight).
- The display hardware acts as the inverse of a light field camera, reconstructing the light field in space. This technology is used in experimental volumetric displays and emerging 3D monitors for design and medical imaging.
Computational Microscopy & Tomography
In scientific imaging, refocusing enables techniques that overcome physical limitations of optical systems. Key methods include:
- Fourier ptychographic microscopy: Captures multiple low-resolution images with varied illumination angles, then uses iterative phase retrieval and synthetic refocusing to reconstruct a high-resolution, large field-of-view, and depth-resolved image.
- Light field microscopy: Uses a microlens array to capture 4D light field data from a microscope, enabling rapid 3D imaging of dynamic biological processes (e.g., neural activity in zebrafish) without mechanical scanning.
- Optical coherence tomography (OCT): While not light-field-based, it shares the mathematical concept of synthesizing focus from interferometric data to create depth-resolved cross-sectional images of tissue.




