focus-stack
github.com
- Free plan
- Windows
- macOS
- Linux
What focus-stack is
focus-stack is a free desktop tool that combines photographs taken at different focus settings into an image with greater depth of field. It chooses the sharpest source image at each pixel, a method suited to subjects such as microscope photographs when one focus setting cannot keep the whole subject sharp. The program can resize and rotate images to align them, with options to skip or adjust alignment. It can create a focus-stacked image, a depth map, and a 3D preview from that map. Input can use formats supported by OpenCV, including JPG, PNG, and TIFF, and the output format follows the file extension. Processing controls include denoising, consistency filtering, batch size, and thread count. When available, GPU acceleration uses OpenCV’s OpenCL interface and can be disabled. The project identifies its license as MIT. Binary packages are listed for Windows 10, Ubuntu 20.04, and Mac OS X. The README estimates memory use at about 100 MB per megapixel by default, or about 50 MB per megapixel with one thread and batch size two. The macOS application is unsigned and may be quarantined by the operating system.
Who it suits
It suits photographers, including microscope users, who need to combine images captured at different focus settings. Users should be comfortable accounting for the stated memory estimates and, on macOS, the unsigned application caveat.
Good to know, and what to watch
- Creates a focus-stacked image, depth map, and 3D preview
- Can align images by resizing and rotating them
- Accepts OpenCV-supported formats including JPG, PNG, and TIFF
- OpenCL GPU acceleration is available when supported
- Default memory estimate is about 100 MB per megapixel
- The macOS application is unsigned and may be quarantined
- Listed binary packages specify older operating system versions
Plans
Every plan and pricefocus-stack
Free plan
Getting started
- Open the focus-stack GitHub repository
- Download the binary package for Windows 10, Ubuntu 20.04, or Mac OS X
- On Linux, install OpenCV 3.0 or newer and basic build tools if building
- Load JPG, PNG, TIFF, or another OpenCV-supported image sequence
- Choose alignment, processing, thread, and batch options
- Select an output filename extension
The Club's review
focus-stack is a free, open-source desktop utility for turning a sequence of differently focused photographs into one image with greater depth of field. It is especially well suited to microscope photography and other users who want control over alignment and depth-related outputs rather than a one-click consumer workflow. The main trade-off is resource planning: large stacks can require substantial RAM, and the macOS build may need a workaround before it opens.
Overview
The program evaluates the stack pixel by pixel and keeps the sharpest source detail for the composite. That is a practical answer to subjects whose depth exceeds a single exposure’s depth of field, such as specimens viewed through a microscope. Automatic alignment can resize and rotate frames to compensate for small changes between shots; users can also skip alignment or adjust it when the images are already registered or the automatic correction is unsuitable.
focus-stack goes beyond the final extended-depth image. It can also export a depth map and a 3D preview derived from that map, giving technical and creative users additional ways to inspect the stack. These outputs add value when depth information matters, but they do not replace the core stacking workflow.
Key features
- Sharpest-pixel stacking: Selecting the clearest source at each pixel is well matched to macro and microscope sequences where no single frame covers the full subject.
- Alignment controls: Resizing and rotation help compensate for movement between exposures. The ability to disable or adjust alignment is important for carefully mounted subjects and for stacks where automatic correction would be counterproductive.
- Processing controls: Denoising and consistency filtering can refine the result, while batch size and thread count expose practical performance controls instead of forcing one fixed processing profile.
- Depth outputs: A depth map and a 3D preview provide more than a finished composite, useful for inspecting relative focus depth or creating a visual representation of it.
- OpenCV-compatible images: Inputs can use formats supported by OpenCV, including JPG, PNG and TIFF. The output format is selected by the filename extension, keeping export straightforward for common image workflows.
- GPU option: OpenCV’s OpenCL interface can accelerate processing when compatible hardware is available, and an option can disable acceleration when it causes compatibility or stability problems.
- Memory tuning: The default estimate is about 100 MB of RAM per megapixel. Using one thread and a batch size of two lowers that estimate to about 50 MB per megapixel, though processing may take longer.
Pricing
The focus-stack plan costs free. There is no trial because the software is free, and the MIT license permits use and modification under that license. No seat charges or usage quotas are stated, making it a sensible choice for individuals, labs and developers who need a desktop stacker without subscription accounting.
Free does not mean cost-free in operation: high-resolution stacks can demand considerable memory, and users may need to reduce thread and batch settings or provide a more capable workstation.
Platforms
focus-stack supports Linux, macOS and Windows. Binary packages are listed for Windows 10, Ubuntu 20.04 and Mac OS X through the GitHub releases page, including Version 1.5 and a separate prerelease labeled latest. Linux builders need OpenCV 3.0 or newer plus basic build tools. The macOS application is unsigned and may be quarantined by the operating system, so Mac users should expect an extra security step before running it. A third-party Android app uses the same algorithm, but focus-stack itself is a desktop project.
Who it's for
Microscope photographers are the clearest audience: a stack of focal planes can cover a specimen that will not fit within one exposure’s depth of field. Macro photographers, researchers and technically minded image-makers who want alignment choices, depth maps or 3D previews can also benefit. It is less suitable for casual users seeking a polished mobile workflow, for teams that require published support terms, or for anyone whose computer cannot accommodate the stated per-megapixel memory demand.
Pros and cons
Pros
- Useful beyond the composite: Depth-map and 3D-preview generation expands what can be done with a focus sequence.
- Adjustable registration: Resize, rotation, and the option to skip or alter alignment cover both imperfectly captured stacks and already aligned material.
- Performance flexibility: OpenCL acceleration, denoising, filtering, thread count and batch size let experienced users tune the workload.
- Permissive cost and license: The MIT-licensed project is free across its supported desktop platforms.
Cons
- Heavy memory profile: About 100 MB per megapixel by default can make large stacks impractical on modest machines.
- macOS friction: The unsigned application may be quarantined, adding an installation hurdle.
- Desktop-centered workflow: Users wanting a native, consumer-oriented mobile experience must look to a separate third-party Android app.
Alternatives
Focus Stacking Software is the broader directory starting point when you want to compare more tools before selecting a workflow.
Focus Stacking Online is the better fit when browser access or Android and iOS support matters; its free plan also spans Linux, macOS, Windows and the web.
Choose Aduku Stacker instead if you specifically need a free macOS or Windows alternative.
CKAN is another free, MIT-licensed option for Linux, macOS and Windows, particularly if that licensing and cross-platform coverage are your priorities.
CombineZP suits Windows users seeking a free GPL-licensed stacker.
OpenFocus is worth choosing when you want a graphical interface on Windows and macOS alongside command-line use on all three desktop systems.
Shine Stacker is an alternative free download for Windows, Mac and Linux with an LGPL-3.0 open-source license and API availability.
ChimpStackr offers another free, GPL-3.0 multi-platform desktop option.
ForgePix is a free MIT-licensed alternative for Linux, macOS and Windows.
Verdict
Choose focus-stack if you need a no-cost desktop stacker with controllable alignment, optional depth products and an MIT license, especially for microscope or other technical imaging. Look elsewhere if you need a polished mobile-first experience, a signed macOS application, or lower memory requirements for very large images.
The verdict
focus-stack provides alignment controls and multiple depth-related outputs for image stacks, with a free MIT-licensed project. Check the memory estimate and macOS signing caveat before choosing it.
Questions people ask
Is focus-stack free?
Yes. The focus-stack plan is free at no cost, with no pricing or usage limits stated.
Which platforms have binary packages?
Binary packages are listed for Windows 10, Ubuntu 20.04, and Mac OS X.
What image formats can it use?
Inputs can use formats supported by OpenCV, including JPG, PNG, and TIFF.
What outputs can focus-stack create?
It can create a focus-stacked image, a depth map, and a 3D preview from the depth map.
Does it use the GPU?
It uses OpenCV’s OpenCL interface for GPU acceleration when available, and acceleration can be disabled.
Is there an Android version?
The documentation links to a third-party Android app that uses focus-stack’s algorithm.
What the maker publishes
- Acceleration
- OpenCL GPU acceleration is used when available and can be disabled with an option. source
- Android
- The README mentions a third-party Android app that uses focus-stack's algorithm. source
- Android connection
- The README links to a third-party Android app that uses focus-stack as its algorithm. source
- Build dependency
- The Linux build instructions specify OpenCV 3.0 or newer and basic build tools. source
- Depth outputs
- Optional outputs include a depth map and a 3D preview generated from the depth map. source
- Desktop downloads
- The README says binary packages are available for Windows 10, Ubuntu 20.04 and Mac OS X. source
- Downloads
- The README lists binary packages for Windows 10, Ubuntu 20.04, and Mac OS X on the GitHub releases page. source
- File formats
- The README says input can use formats supported by OpenCV, including JPG, PNG, and TIFF. source
- GPU acceleration
- The tool uses OpenCV's OpenCL interface for GPU acceleration when available, and provides an option to disable it. source
- Image alignment
- The tool can resize and rotate stack images to align their content, with options to skip or adjust alignment. source
- Image alignment
- It can resize and rotate images to align them, and can compensate for white balance and exposure differences. source
- Input and output formats
- Inputs can use formats supported by OpenCV, including JPG, PNG and TIFF, and output format is selected by file extension. source
- License
- The repository identifies the project as MIT licensed. source
- License
- The repository identifies the project as MIT licensed. source
- macOS caveat
- The README says the macOS application is unsigned and may be quarantined by the operating system. source
- Memory requirement
- The README estimates about 100 MB of RAM per megapixel at default settings and about 50 MB per megapixel with one thread and batch size two. source
- Memory use
- The README estimates about 100 MB of RAM per megapixel by default and about 50 MB per megapixel with --threads=1 and --batchsize=2. source
- Output options
- It can generate a focus-stacked image, a depth map, and a 3D preview image. source
- Processing controls
- Options include image alignment, denoising, consistency filtering, batch size, and thread count. source
- Purpose
- focus-stack combines photos taken at different focus settings, selecting the sharpest source image at each pixel to create an extended-depth-of-field image. source
- Purpose
- Combines photos taken at different focus settings by selecting the sharpest source image for each pixel to create an extended depth of field image. source
- Release
- The releases page lists Version 1.5 and a separate prerelease named latest. source
- Typical use
- The documentation describes microscope photography as a typical use, where the depth of field may not cover the whole subject. source
- Typical use
- The manual describes microscope photography as a typical use, where depth of field may not cover the whole subject. source
Checked against the maker's pages on 9 Oct 2026.