focus-stack can substitute for Helicon Focus for an automated image-fusion stage when command-line operation is acceptable. This does not establish equivalent interactive retouching, RAW development or native project history. Its own halo caveat is relevant when deciding whether an automatic result needs correction in a separate editor.[2][4][5]
Overview
focus-stack is Petteri Aimonen's open-source tool for combining images captured at different focus distances. Its command-line workflow creates an extended-depth result, with optional alignment outputs and depth visualization. It is useful when a scriptable stacking stage is wanted rather than a broad photographic catalog or editing suite.[2][3]
Alignment and fusion
The documented algorithm compensates for scale, position, rotation and brightness differences before merging. It normally aligns neighboring frames and combines those relationships toward a reference image, which helps when the ends of a deep stack are very blurred. The merge uses a wavelet representation, followed by color reassignment from the source stack. The algorithm notes acknowledge halos around some high-contrast structures.[4]
Output and reproducibility
The manual exposes reference-image selection, alignment-only processing and saved intermediate images. Default cropping retains the area valid across the stack; changing crop options can keep border data that needs inspection. A reproducible handoff should retain the input order and chosen options alongside the final image. A generated depth map or preview image is a separate output, not proof of a calibrated physical 3D model.[3]
Formats and compute
Input decoding uses OpenCV, with familiar image formats such as JPEG, PNG and TIFF documented. The output extension controls the chosen format. The project processes images in batches and allows thread and batch-size adjustments to balance memory use against speed. OpenCL acceleration is optional and depends on the installed build and graphics environment rather than being guaranteed by the operating-system name alone.[2][3]
Distribution and license
The project uses the MIT license, permitting reuse and modification subject to its notice requirements. Its README identifies packages for Windows, Linux and macOS, but lists specific older operating-system targets; those listings should not be stretched into support guarantees for every current machine. The main interaction is a command-line pipeline, with limited platform-specific file-selection conveniences.[1][2]
Capabilities & limitations
Scriptable image stacking
supported
Accepts image inputs and options for automated alignment and fusion.[2][3]
Focus-stack image fusion · Windows, macOS, Linux · Edition, platform and permitted-use requirements apply