Focus stacking, shot and merged on your phone
One fast burst of photos, one photo sharp from front to back. Made on your phone.
Version 2.1 · Android 10 or newer · GPL-3.0
One frame
Stacked: 20 frames
Drag to compare. Shot and stacked on a Galaxy S24 Ultra by Bakkori.
How it works
1
6
11
15
20
Tested in the open
Every version is checked against two popular free desktop stackers, focus-stack and Shine Stacker, on the same 17 stacks.
Made-up detail
Halos, blotches and noise that are in none of your photos. Worst case across 17 stacks; lower is better.




A needle's eye from another of these stacks, enlarged. All four are sharp; only MacroStack keeps the blurred background smooth.
See all the numbers
| Test stack | MacroStack Depth map |
MacroStack Pyramid |
focus-stack 1.5 |
Shine Stacker Pyramid |
Shine Stacker Depth map |
|---|---|---|---|---|---|
| Circuit-board switch, 10 frames, big focus steps | 2.00.3 | 2.70.3 | 5.117.3 | 46.9*2.9 | 49.1*1.0 |
| Circuit-board pins, 7 frames | 3.50.6 | 7.10.3 | 3.326.8 | 0.42.0 | 1.30.7 |
| Plants, hand-held phone, 23 frames | 0.70.1 | 2.40.4 | 1.45.0 | 0.02.4 | 1.40.1 |
| Fruits, hand-held phone, 30 frames | 6.90.0 | 0.00.0 | 0.02.3 | 1.12.8 | 4.30.5 |
| Keyboard, hand-held phone, 32 frames | 6.40.0 | 1.20.0 | 0.61.6 | 2.32.5 | 9.70.6 |
| Galaxy S24 Ultra stack, 20 frames | 10.70.0 | 0.30.1 | 0.013.4 | 0.514.1 | 2.54.5 |
| Pro macro, Canon R5 II, 50 frames | 26.10.0 | 17.80.2 | 24.450.0 | 98.9*0.0 | 98.9*0.0 |
The table shows the first 7 test stacks. On the 10 studio stacks shot with MacroStack on a Galaxy S24 Ultra, made-up detail was 0–2% for MacroStack, 16–41% for focus-stack and 1–37% for Shine Stacker; their softness isn't listed, because on phone JPEGs the score counts grain as detail. Since version 2.1 the Pyramid adds no dark specks or rims along edges; the score counted some of those as detail, so its softness numbers rose slightly. * Shine Stacker's alignment skipped frames it couldn't match on these stacks (4 of 10 and 48 of 50), so its results there lack detail. Hand-held phone sweeps: Depth from Focus with Your Mobile Phone (Suwajanakorn, Hernández and Seitz, CVPR 2015). Pro macro: every 20th frame of a 999-frame stack by Johannes Sood (CC BY 4.0).
Where the others do better
focus-stack keeps the most fine texture: its wavelet merge lifts contrast beyond any single frame, which is also where its made-up detail comes from. Where Shine Stacker aligned every frame, its pyramid kept more fine contrast than ours, and its depth map was sharper on the phone stack. MacroStack's Depth map trades a little fine texture for less noise. Closing those gaps is what the next versions work on, with your stacks. Read the engine log.
Help make it better
Every stack you share makes the engine better.
Used only for testing. Shown publicly only if you say so.
Email a Google Drive, Dropbox or WeTransfer link to the frames: abubaker.elsultani at gmail.com · Report a problem
Credits
- Made by
- Bakkori, a macro photographer, with the help of Claude (Anthropic).
- Stacks shared by photographers
- Your name could be first here.
- Test stacks
- Petteri Aimonen (focus-stack examples, MIT) · Johannes Sood (Canon R5 II macro stack, CC BY 4.0) · Supasorn Suwajanakorn, Carlos Hernández and Steven M. Seitz (phone focus sweeps, CVPR 2015)
- Compared against
- focus-stack by Petteri Aimonen · Shine Stacker by Luca Lista