Deptheos
Docs: Stacking · Choosing a method

Docs · Stacking

Choosing a method

Deptheos has three stacking methods: Pyramid, Depth and Wavelet. Each does best on some subjects and worst on others. The table is the short answer; the figure under it shows the three on the same places.

PyramidDepthWavelet
Hairs and fine detail over a far backgroundCrispSoftCrisp
Plain, out-of-focus backgroundsGrainy at low SmoothnessSmoothGrainy, blotchy
Something bright against something darkSome glowCleanCan streak
A jump in depth, one part in front of anotherCrispSoft along the stepCan streak
ColorsBlended from several framesTrue to the source framesEach pixel from one frame
Frames out of focus orderFineNeeds them in orderFine
Passes over the frames (I/O)OnceTwiceTwice
Time for 200 JPEG frames of 45 MP on an Apple M5 Max (32-core GPU), aligned with ECC 5.2 s 5.4 s 6.5 s

Start with Pyramid, the default. Try Depth when a plain background comes out grainy or a dark area beside something bright comes out hazy. Reach for Wavelet when you want each pixel's color taken whole from a single frame rather than blended across frames (or if you're used to focus-stack and microscopy workflows). Where one method does better in one part of the picture and another elsewhere, stack with both and paint from the better render over the other.

The three on the same places

Results the app made from the hornet, spider and circuit-board sample stacks at full resolution, at 100%, each method at its default settings. Choose a place, then flick between the methods.

Hairs on the hornet's head against the green, stacked with the pyramid method
Five places, each stacked with every method. Wavelet, filters on is the wavelet with its consistency filters, which only the command line can turn on (--consistency 2).

Hairs: the pyramid or the wavelet. Both choose separately for each size of detail, and their hairs are crisp. Depth's are softer, with a haze between them: each hair is thinner than the patch the map decides its depth over, so it is taken partly from frames where it is blurred.

How each works and its settings

  • Pyramid: splits each frame into levels of detail and blends them separately, giving the most weight to the sharpest. One setting: Smoothness, from crisp and noisier to calm and softer.
  • Depth: picks one depth per spot and takes each spot from the frame at that depth (which is why frames must be in focus order: blending frames 10 and 30 lands on frame 20). Settings: Smoothing, Radius, and under Advanced, Blend Range.
  • Wavelet: merges the strongest detail at every scale into a sharp gray image, then gives each pixel the color of the frame whose brightness matches best. One setting: Denoise.