Freedom251 › Focus Stacking Software
focus-stack

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 selects the sharpest source image at each pixel, a process suited to subjects such as microscope photographs when one focus setting cannot cover the whole subject. The tool can resize and rotate images to align their contents, and you can skip alignment or adjust it. Alongside the focus-stacked image, it can produce a depth map and a 3D preview generated from that map. Input files can use formats supported by OpenCV, including JPG, PNG, and TIFF; the output format is selected through the file extension. Processing options include denoising, consistency filtering, batch size, and thread count. focus-stack uses OpenCV’s OpenCL interface for GPU acceleration when available, and the option can be disabled. 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. Binary packages are listed for Windows 10, Ubuntu 20.04, and Mac OS X. The project is MIT licensed, and Linux builds require OpenCV 3.0 or newer and basic build tools.
Who it suits
focus-stack suits desktop users who need to combine images taken at different focus settings, including microscope photographers whose subjects exceed a single image’s depth of field. It also fits users who want optional depth maps, 3D previews, and control over alignment and processing.
What it does well
- Combines images by selecting the sharpest source at each pixel
- Can align images by resizing and rotating them
- Produces focus-stacked images, depth maps, and 3D previews
- Offers denoising and consistency filtering controls
- Uses OpenCL GPU acceleration when available
- MIT licensed
What to know first
- Default memory estimate is about 100 MB per megapixel
- The macOS application is unsigned and may be quarantined
- Linux builds require OpenCV 3.0 or newer and build tools
Plans
| Plan | Billed and limits | Price |
|---|---|---|
| focus-stack | No pricing or usage limits stated | Free |
As github.com lists them, read 9 Oct 2026. The maker's own page has the final word.
Getting started
- Open the focus-stack GitHub project page.
- Choose a binary package from the releases page for Windows 10, Ubuntu 20.04, or Mac OS X.
- For a Linux build, install OpenCV 3.0 or newer and basic build tools.
- Provide input images in formats supported by OpenCV, such as JPG, PNG, or TIFF.
- Choose processing options and an output file extension.
focus-stack is a free desktop utility for turning a sequence of differently focused photographs into one image with greater depth of field. It is most compelling for microscope photographers and technically minded users who want control over alignment and processing rather than a cloud workflow. Its depth-map outputs and cross-platform binaries add flexibility, but substantial RAM requirements can determine whether it is practical for high-resolution stacks.
Overview
The software examines each pixel across the input frames and selects the sharpest source, producing an extended-depth-of-field composite. That method suits microscope work, where a specimen can extend beyond the shallow depth of field of a single exposure, and it also applies to other subjects photographed at successive focus settings.
Automatic alignment can resize and rotate stack images so their content lines up. You can skip alignment or adjust how it is handled when the frames are already registered or automatic correction is inappropriate. In addition to the finished stack, the program can create a depth map and a 3D preview derived from that map, giving advanced users intermediate data to inspect or reuse.
Key features
- Alignment controls: Resizing and rotation address small framing differences between shots. The option to bypass or modify alignment is valuable when a controlled camera setup needs no correction or when automatic movement would be undesirable.
- Processing controls: Denoising and consistency filtering help tune how the sharpest regions are selected, while batch size and thread count expose practical control over processing workload.
- Image compatibility: Inputs can use formats supported by OpenCV, including JPG, PNG and TIFF. The output format is chosen through the file extension, with JPG and PNG identified as output options.
- Depth products: A depth map and 3D preview are optional outputs rather than separate applications. They make the tool more useful for users analyzing focus variation, while casual users may only need the composite.
- Acceleration: OpenCV's OpenCL interface can use a compatible GPU when available. An option to disable GPU acceleration helps when that path is unsuitable on a particular system.
- Resource tuning: The README estimates roughly 100 MB of RAM per megapixel at default settings, or about 50 MB per megapixel with one thread and a batch size of two. Those figures make conservative settings important for large images or long stacks.
Pricing
focus-stack is free: the focus-stack plan costs nothing. There is no trial because the software is already available without charge, and no seat, usage quota or renewal limit is stated. The free model is a straightforward fit for personal, educational and experimental use, but buyers seeking vendor support or a packaged commercial service should look elsewhere.
Platforms
Desktop support covers Linux, macOS and Windows. Binary packages are listed for Windows 10, Ubuntu 20.04 and Mac OS X through the GitHub releases page; the releases page shows Version 1.5 and a separate prerelease named latest. Linux compilation requires OpenCV 3.0 or newer plus basic build tools, so Linux users outside the listed binary target may need to build it themselves. The macOS application is unsigned and may be quarantined by the operating system, adding a security prompt and extra setup friction. A third-party Android app uses focus-stack's algorithm, but that is not the desktop program itself.
Who it's for
Choose it for microscope photography or any desktop workflow involving focus brackets, especially when you need alignment controls, depth data or tunable CPU/GPU processing. It is a better fit for users comfortable with technical settings and memory planning than for photographers seeking a polished, guided editor. High-megapixel stacks deserve particular caution: the estimated per-megapixel RAM use can quickly exceed modest system memory, although single-thread and small-batch settings reduce the estimate at the cost of processing throughput.
Pros and cons
- Pro: Sharpest-pixel selection is purpose-built for extending depth of field from focus-bracketed images.
- Pro: Resizing, rotation, denoising, consistency filtering, batching and thread controls provide meaningful workflow tuning.
- Pro: Depth maps and 3D previews add analytical output beyond the final composite.
- Pro: Free distribution and an MIT license suit open-source, educational and budget-conscious projects.
- Con: The estimated 100 MB per megapixel default memory use can make large stacks demanding.
- Con: Unsigned macOS software may be quarantined, complicating installation.
- Con: Linux users may need OpenCV and build tools when a suitable binary is not available.
Alternatives
For a broader directory of options, see Focus Stacking Software.
- Focus Stacking Online is the better choice when you want free focus stacking across Android, iOS, desktop systems and the web rather than a desktop-only utility.
- CKAN is another free, MIT-licensed option for Linux, macOS and Windows.
- ImageFocus Alpha fits users with compatible Euromex camera models who need free software across mobile and desktop platforms.
- PlaneFuse suits readers wanting free personal or commercial use, no tiers and API, web or self-hosted deployment.
- ChimpStackr is a free, GPL-3.0 multi-platform focus-stacking alternative.
- ForgePix is free MIT-licensed software for Linux, macOS and Windows.
- OpenFocus offers a free MIT-licensed GUI on Windows and macOS with CLI support on Linux as well.
- Shine Stacker is a free download for Windows, Mac and Linux with an LGPL-3.0 license.
Verdict
focus-stack is a strong choice for microscope photographers and technically confident desktop users who want free, controllable focus stacking with optional depth outputs. Its main reason to choose it is the combination of alignment and processing controls at no cost. Look elsewhere if your machine cannot comfortably meet its memory demands, if you need a signed macOS installation, or if you prefer a cross-platform web or mobile workflow.
Verdict
Choose focus-stack if you need a free desktop tool to combine focus-bracketed images and want control over alignment and processing. Consider its memory estimate and the unsigned macOS app when deciding whether it fits your setup.
Questions
Is focus-stack free?
Yes. The project is free, with no pricing or usage limits stated.
Which desktop platforms have binary packages?
The README lists packages for Windows 10, Ubuntu 20.04, and Mac OS X. Its platform coverage includes Windows, Linux, and macOS.
What image formats can it use?
Input can use formats supported by OpenCV, including JPG, PNG, and TIFF. The output format is selected by the file extension.
Is focus-stack open source?
The repository identifies the project as MIT licensed.
What does it produce?
It can generate a focus-stacked image, a depth map, and a 3D preview image generated from the depth map.
Does it use GPU acceleration?
It uses OpenCV’s OpenCL interface for GPU acceleration when available, and provides an option to disable it.
Facts from focus-stack's own pages
- Acceleration
- OpenCL GPU acceleration is used when available and can be disabled with an option. · github.com, 9 Oct 2026
- Android
- The README mentions a third-party Android app that uses focus-stack's algorithm. · github.com, 8 Oct 2026
- Android connection
- The README links to a third-party Android app that uses focus-stack as its algorithm. · github.com, 9 Oct 2026
- Build dependency
- The Linux build instructions specify OpenCV 3.0 or newer and basic build tools. · github.com, 8 Oct 2026
- Depth outputs
- Optional outputs include a depth map and a 3D preview generated from the depth map. · github.com, 9 Oct 2026
- Desktop downloads
- The README says binary packages are available for Windows 10, Ubuntu 20.04 and Mac OS X. · github.com, 9 Oct 2026
- Downloads
- The README lists binary packages for Windows 10, Ubuntu 20.04, and Mac OS X on the GitHub releases page. · github.com, 8 Oct 2026
- File formats
- The README says input can use formats supported by OpenCV, including JPG, PNG, and TIFF. · github.com, 8 Oct 2026
- GPU acceleration
- The tool uses OpenCV's OpenCL interface for GPU acceleration when available, and provides an option to disable it. · github.com, 8 Oct 2026
- Image alignment
- It can resize and rotate images to align them, and can compensate for white balance and exposure differences. · github.com, 9 Oct 2026
- Input and output formats
- Inputs can use formats supported by OpenCV, including JPG, PNG and TIFF, and output format is selected by file extension. · github.com, 9 Oct 2026
- License
- The repository identifies the project as MIT licensed. · github.com, 9 Oct 2026
- macOS caveat
- The README says the macOS application is unsigned and may be quarantined by the operating system. · github.com, 9 Oct 2026
- 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. · github.com, 9 Oct 2026
- 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. · github.com, 8 Oct 2026
- Output options
- It can generate a focus-stacked image, a depth map, and a 3D preview image. · github.com, 8 Oct 2026
- Processing controls
- Options include image alignment, denoising, consistency filtering, batch size, and thread count. · github.com, 8 Oct 2026
- 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. · github.com, 9 Oct 2026
- Release
- The releases page lists Version 1.5 and a separate prerelease named latest. · github.com, 8 Oct 2026
- Typical use
- The manual describes microscope photography as a typical use, where depth of field may not cover the whole subject. · github.com, 9 Oct 2026
Where focus-stack stands on Freedom251
- Focus Stacking Software#6 of 24