software · Q1134
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]
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]
Capabilities & limitations
Scriptable image stacking
supportedAccepts 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
2 sources · check evidence
Cross-platform focused-image fusion; OpenCV inputs; command-line workflow
vendor · checked 2026-10-07Alignment, crop defaults, saved intermediates, depth map and OpenCL options
vendor · checked 2026-10-07Artifact-free high-contrast fusion
limitedThe algorithm notes explicitly acknowledge halo cases.[4]
Focus-stack image fusion · Windows, macOS, Linux · Edition, platform and permitted-use requirements apply
1 source · check evidence
Wavelet fusion, neighboring alignment, color reassignment and known halo limitations
vendor · checked 2026-10-07Can substitute for
These are products or services this entry can replace. Check the task and limitations for each comparison.
Helicon Focus for Automated focus-stack fusion
limitedCandidate for the fusion stage; interactive retouching and RAW development parity are unverified.[2][6]
Windows, macOS, Linux · Edition, platform and permitted-use requirements apply
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
Discussion & disputes
Ask about unclear claims or explain a concern with supporting sources. If you have a specific fix, suggest a correction.
No discussion yet.
Revision history
Open a revision to read an earlier version of this article.
| Revision | Timestamp | Edit summary |
|---|---|---|
| 1182 | 2026-10-13 22:50:42 | /* wbeditentity-create-item:0| */ sf:96ae0cce-a530-46ba-8aae-c98b932cf0a1:v1 | Add focus-stack with cited focus-stacking workflows, licensing and output/project distinctions; no processing or hands-on testing. | attribution: /proposals/96ae0cce-a530-46ba-8aae-c98b932cf0a1 |