focus-stack focus-stack is Petteri Aimonen's open-source tool for combining images captured at different focus distances.
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]
Contents 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]
Substitution considerations 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]
References focus-stack MIT license MIT license permission and notice conditions
vendor · retrieved 2026-10-07 focus-stack project Cross-platform focused-image fusion; OpenCV inputs; command-line workflow
vendor · retrieved 2026-10-07 focus-stack manual Alignment, crop defaults, saved intermediates, depth map and OpenCL options
vendor · retrieved 2026-10-07 focus-stack algorithm documentation Wavelet fusion, neighboring alignment, color reassignment and known halo limitations
vendor · retrieved 2026-10-07 Helicon Focus features Retouching from aligned images, batch queues, command-line and Remote integration
vendor · retrieved 2026-10-07 Helicon Focus Focus stacking product and desktop workflow
vendor · retrieved 2026-10-07 Also included: 2 capabilities and 0 substitute relationships. Check substitutes in section 1 and capabilities in section 3.