lapstack

The lapstack manual

lapstack fuses a focus-bracketed series of photographs into one all-in-focus image and a dense depth map. This manual covers all three ways of running it — the browser app, the desktop application and the command-line tool — which share one engine and one set of controls under different names.

Note

Every form of lapstack is free software under the MIT license. The browser app needs nothing installed; the desktop application, the command-line tool and the Lightroom plugin are on the download page, and the source is on GitHub.

Tip

If you have a stack of frames and twenty minutes, start with the quick start. Everything else here is reference you can come back to.

Getting started

PageWhat it covers
What focus stacking isWhy depth of field runs out, and what a stack does about it
Quick startYour first stack, from adding frames to saving a file
Shooting a stackStep size, aperture, lighting and the mistakes that cost you a stack
Browser and hardwareWebGPU support, GPU memory, and what limits stack size

The browser app

The browser app is the complete application. The desktop build is the same thing in a different shell, so every page in this section applies to it too.

PageWhat it covers
The interfaceThe two steps, the viewer, the filmstrip, the parameter panel, keyboard shortcuts
FramesAdding files and folders, supported formats, raw, editing the frame list, rotate and draft
AlignmentRegistration models, coarsening, resampling kernels, brightness equalization, cropping
FusionPyramid levels, the energy window, the residual rule, halo control
The depth mapFocus depth, confidence, the in-focus view, focus peaking, the depth slice
Other renderingsDepth-map rendering, rendering from slabs, the weighted average
RetouchingBrushing one rendering into another, slab sources, undo
Dust mapRemoving sensor dust before alignment
Scale bar and captionsCalibrated bars and captions for microscopy figures
Stereo, rocking and 3DStereo pairs, rocking animations, textured 3D models
SavingThe file list, formats, bit depth, DNG, animations, content credentials, file names
BatchSplitting a folder into stacks and running them in turn
Project filesSaving a session and coming back to it

The command line

Builds for Linux, Windows and macOS, and the source, are on the download page.

PageWhat it covers
Installing and runningGetting the binary, the shape of a command, the common flags
Option referenceEvery option, grouped
Batch and scriptingSplitting rules, output templates, dry runs, exit status
GPU accelerationBuilding and running the CUDA path

Integrations

Both are on the download page.

PageWhat it covers
Lightroom ClassicThe plugin as a Library menu item and an export target
Desktop applicationWhat the desktop build adds over the browser

Reference

PageWhat it covers
How lapstack worksThe pyramid, the fusion rule, and where the papers come in
Depth from focusThe five stages of the depth pass and the knobs on each
Formats and metadataWhat goes in, what comes out, and what metadata survives
PerformanceMeasured timings, memory behavior, and what actually costs time
TroubleshootingThe failures people actually hit, and what to do about them
GlossaryThe vocabulary this manual uses

Conventions in this manual

Command-line options are written as --halo-control. Controls in the browser app are written in italics when they are labels you will see on screen — equalize brightness, also render from the depth map. Where a control in the app and an option on the command line are the same thing, both names are given, because they are the same engine underneath and the manual would be twice as long otherwise.

Source: sites/lapstack/content/docs/index.md