OpenFocus
github.com
- Free plan
- Open source
- Windows
- macOS
- Linux
- Self-hosted
What OpenFocus is
OpenFocus is a free desktop tool for aligning and fusing multi-focus image sequences into images with focus across the scene. It offers ECC and Homography alignment, followed by fusion methods including Guided Filter, DCT, DTCWT, GFG-FGF, and the StackMFF V4 AI model. A wipe view lets users move a divider to compare source frames with results, and the software can generate depth maps showing focus position per pixel. It supports folder-based batch processing and a headless command-line interface for scripting and CI. Listed inputs include JPG, PNG, BMP, TIFF, MP4, and numbered image folders; the manual also describes decoding several other video formats. Exports include common image formats, image-sequence folders, and GIF animations. Research functions include metadata-calibrated scale bars and multi-page TIFF stacks that preserve 16-bit depth. The interface supports English, Chinese, Japanese, and Spanish, with automatic system-language detection. The project is MIT licensed, though included algorithms may have separate license terms. Windows and macOS app builds are unsigned and may prompt SmartScreen or Gatekeeper warnings at first launch.
Who it suits
OpenFocus is aimed at researchers, engineers, and image-processing professionals working with multi-focus sequences. It can also suit users who need batch or scripted processing across Linux, macOS, or Windows.
Good to know, and what to watch
- Offers ECC and Homography image alignment.
- Includes five listed fusion methods.
- Batch processing and headless command-line interface.
- Can create per-pixel focus-position depth maps.
- Preserves 16-bit depth in multi-page TIFF stacks.
- Windows and macOS builds are unsigned and may trigger launch warnings.
- Included algorithms may carry separate license terms.
- GUI is listed for Windows and macOS; Linux is listed for CLI.
Plans
Every plan and priceFree and open source
Free plan
Getting started
- Open the OpenFocus GitHub project
- Choose the graphical build for Windows or macOS
- Use the command-line interface on Windows, macOS or Linux
- Load supported images, video or numbered image folders
- Select an alignment method and fusion method
- Export the fused result or generate comparison and depth outputs
Limits to check
The free plan provides the listed GUI and CLI capabilities, but graphical use is limited to Windows and macOS. Windows and macOS builds are unsigned and may prompt security warnings on first launch.
The verdict
OpenFocus combines alignment, fusion, comparison, and batch or command-line workflows for multi-focus images. It is free under the MIT License, with separate license terms possible for included algorithms.
Questions people ask
What does OpenFocus cost?
The Free and open source plan costs nothing.
Which platforms can run OpenFocus?
OpenFocus supports Linux, macOS and Windows. The GUI is for Windows and macOS, while the CLI supports all three.
What files can it import and export?
Inputs include JPG, PNG, BMP, TIFF, MP4 and numbered image folders. Outputs include JPG, PNG, BMP, TIFF, image-sequence folders and GIF animations.
Is OpenFocus open source?
Yes. The project uses the MIT License, although included algorithms may have their own license terms.
Why might my computer show a warning?
The Windows and macOS application builds are unsigned, so SmartScreen or Gatekeeper warnings may appear on first launch.
What the maker publishes
- 3D export
- Version 1.54–1.55 added textured OBJ export combining a depth map and fused image. source
- Algorithm limitation
- OpenFocus A produces a deliberately soft look and is not intended for the supplied benchmark. source
- Batch and CLI
- It supports batch processing across folders and a headless command-line interface for scripting and CI. source
- Batch processing
- The application can process multiple folders with progress reporting, cancellation and organized outputs. source
- Command line
- A pip-installable headless CLI runs on Windows, macOS and Linux and returns exit codes 0, 1 or 2 for success, processing errors or usage errors. source
- Compare and inspect
- A wipe compare view uses a draggable divider to compare source frames and results, and the software can generate per-pixel focus-position depth maps. source
- Depth maps
- Index-deciding fusion methods can produce per-pixel focus-position maps with pseudo-color display and 16-bit export. source
- Documentation
- The project links an English manual, Chinese manual, changelog, large-stack performance notes and build commands. source
- Exports
- The manual lists JPG, PNG, BMP, TIFF, image-sequence folders, and GIF animations as output options. source
- Extensibility
- Source builds use Python 3.10 with requirements.txt, and PyInstaller packaging instructions are provided. source
- Feature limitation
- The comparison table lists camera or rail control as unavailable in OpenFocus. source
- Fusion methods
- Fusion methods include Guided Filter, DCT, DTCWT, GFG-FGF, and the StackMFF V4 AI model. source
- Fusion methods
- Fusion options include Guided Filter, DCT, DTCWT, GFG-FGF, StackMFF V4 and OpenFocus A/B/C. source
- GPU limitation
- GPU acceleration is optional and is provided for the StackMFF V4 neural model. source
- Image alignment
- It offers ECC and Homography methods to align image sequences. source
- Input formats
- The manual lists JPG, PNG, BMP, TIFF, MP4, and numbered image folders as supported inputs; it also describes decoding several additional video formats. source
- Intended users
- The manual describes OpenFocus as a desktop application for researchers, engineers, and image-processing professionals. source
- Interface
- The desktop application is built with PyQt6 and supports CPU processing by default. source
- Languages
- The interface supports English, Chinese, Japanese, and Spanish, with automatic system-language detection. source
- License
- The project is released under the MIT License and cautions that included algorithms may have their own license terms. source
- License
- The repository is released under the MIT License. source
- License caveat
- Included research algorithms may carry original license terms in addition to the OpenFocus MIT license. source
- Microscopy features
- The software supports TIFF µm-per-pixel calibration, dust-map flat-field correction and publication scale bars. source
- News: 2026-10-15
- The project announced OBJ export, camera RAW support and depth smoothing for OpenFocus B on October 15, 2026. source
Checked against the maker's pages on 15 Oct 2026.