Docs · Stacking
Pyramid
The pyramid method, the default, splits every frame into levels of detail, from fine texture to broad shading, and blends the frames separately in each level, giving the most weight to the sharpest.
Choose it for fine detail at many depths, such as hairs, bristles and antennae in front of a distant background, and for subjects with jumps in depth. It reads each frame once, so it is also the quickest of the three methods. Its weak spots are plain out-of-focus backgrounds, which can come out grainy, and dark areas beside something bright and out of focus, where some of the bright thing's blur can show as a haze. For those, try Depth; Choosing a method shows the three side by side.
Smoothness
The method's one setting, from 1 to 10, default 4; the slider's ends read Crisp, more noise and Calm, softer. It sets how much of each spot the sharpest frame takes. At low Smoothness the sharpest frame takes nearly all of it; at high Smoothness the spot is shared among more frames, whose noise then averages out.

At 1 the sharpest frame takes nearly all the weight at every spot. In a plain area no frame is sharp, so the winner is whichever frame's noise scores highest, a different frame from spot to spot, and the area carries their grain.
The default sits between: plain areas are calmer than at 1, and fine detail is still crisp.
At 10 the weight is shared among many frames and their noise averages out: plain areas are smooth. Fine detail is a touch softer, since frames where it is out of focus now get some weight. And beside the spider's pale leg the dark background is a little lighter along the leg: more of the leg's glow.
Start at the default. Lower it when fine detail should be as crisp as it can be, and look for grain in plain areas. Raise it when a plain background comes out grainy, and look for softer fine detail and for a lighter haze where something bright sits against something dark. When no one setting suits the whole picture, stack at two and paint from one render over the other. (Depth's Smoothing only fills in uncertain spots of the depth map, whereas Pyramid's Smoothness blends more frames together across the whole picture.)
How it works, briefly
Each frame is split into a Laplacian pyramid: the frame is blurred and halved again and again, and each level holds what one step of blurring and halving removed. Hairs, texture and speckles sit in the finest level, the shapes of parts a few levels down, and the whole subject as a blob in the coarsest. Adding the levels back up gives the frame again, so each level can be blended on its own and the levels still add up to a clean picture.
A crop of one frame of a spider, at half size. Under Gaussian pyramid, that frame at the bottom and ever smaller, blurrier copies above it. Under Detail levels, each level's detail: the level minus the next smaller one scaled back up. Rebuilding runs down the detail levels: scale up, add the next detail level, repeat.
Being out of focus removes fine detail first, so the frames differ most in the fine levels, where the choice matters, and are nearly alike in the coarse ones. At every spot of every level each frame is scored on how strong its detail is there, and the frames share the spot by weight: the best-scoring frame gets the most, and the others a share that falls steeply as their score falls. Smoothness sets how steeply.
The fine levels choose more sharply than the coarse ones, which blend more frames and so hide seams, and the coarsest level is a plain average of every frame. To keep a bright out-of-focus blur from glowing into adjacent dark areas, each frame's coarse weight is also scaled by a fine-detail factor so frames that are out of focus around a spot lose weight in the coarse levels there too.
Burt and Adelson described the Laplacian pyramid in 1983, and the same year used it to join two photos without a visible seam, by blending them level by level. The pyramid method does the same with focus.
In numbers
- The halving stops when one more would take the short side below 16 pixels, so the number of levels depends on the picture's size.
- A frame's weight at a spot is its score divided by the best score there, raised to a power. At the finest level, that exponent is 13 minus Smoothness (9 at the default; 12 at Smoothness 1; 3 at Smoothness 10), stepping down linearly to 0.5× that value at the coarsest level.
- From Smoothness 2 up, each level's scores are blurred a little before they are compared, so that one noisy pixel cannot decide.
- The fine-detail factor is the frame's score at the second finest level, pooled over its neighborhood and raised to the power 0.75.
Try blending two frames by hand
Two frames from the 66-frame hornet stack: frame A has its pale front leg in focus, and in frame B the leg is far out of focus. Each row beside the picture is one level, the coarsest at the top, and its two tiles show what A and B hold there. Click a tile to take that level of the result from that frame.

In the fine levels A holds edges and texture and B is empty gray, so the finest two or three levels from A are enough to make the result look sharp, whichever frame the coarse levels come from.
The coarsest row holds only broad light and color, and B's is paler: its out-of-focus leg is spread over the dark body beside it. Flick between Fine from A, coarse from B and All from A and watch the dark parts next to the leg. That light is the glow the method keeps out by taking less of the coarse levels from frames that are blurred there.