Deptheos
Docs: Working · Command line

Docs · Working

The command line

The desktop app comes with deptheos, a command that stacks from a terminal with the same engine, methods and export formats. It suits scripts, a folder watched by another tool, or a machine you reach over SSH. It lists the files it writes on standard output, one path per line, and its progress and errors on standard error.

Where it is

  • macOS: inside Deptheos.app. Choose Deptheos ▸ Install Command Line Tool… to link it into /usr/local/bin, which may ask for your password. Do it once the app is in Applications, not while it runs from the disk image. The link follows the app when it updates.
  • Windows: deptheos.exe beside the app, in the folder Deptheos is installed in. The installer's Add the deptheos command to PATH, for the command line option, on by default, lets a new terminal find it.
  • Linux: the .deb and .rpm install it as /usr/bin/deptheos. In the tarball it is bin/deptheos; its install.sh copies it into ~/.local/bin, or under PREFIX if you set one.

Its help lists every command, and deptheos <command> --help each command's options:

deptheos --help

Stacking one bracket: pyramid, depth, wavelet

Each method is a command. Give it the frames, or their folder, and the result's file with -o; the extension picks the format (.tif, .png, .jpg, or .dng for camera RAW input).

deptheos pyramid ~/shots/bee -o bee.tif

deptheos depth IMG_*.CR3 -o bee.dng --radius 12

deptheos wavelet ~/shots/bee -o bee.tif --denoise 2

OptionDefaultWhat it does
--smoothness4Pyramid's Smoothness, 1 to 10.
--radius, --smoothing, --blend-range8, 4, 3Depth's settings.
--denoise1Wavelet's Denoise, 0 to 10.
--consistency0Wavelet's consistency filter, 0 to 2 (0 off, 1 mild, 2 stronger).
-a, --aligneccecc (ECC: lines each frame up with the one before it), grid (Grid search: shift, rotation and magnification only), or none (no alignment, for frames already lined up).
--no-cropKeep the full frame instead of cropping to the area every frame covers.
--ordernamename, or time for capture time.
--bit-depth16 where the stack has 168 or 16, for TIFF and PNG.
--tiff-compressionzipzip, lzw, or none, for TIFF.
--jpeg-quality921 to 100.
--raw-backendlibrawlibraw, or adobe-dng to decode through Adobe DNG Converter.
--camera-profileadobeThe Adobe camera profile that colors camera RAW decoded by LibRaw: adobe, camera or none (below).

With --align grid, set search limits with --grid-shift-x and --grid-shift-y (% of the frame's longer side), --grid-rotation (degrees), --grid-magnification (%), and the flag --grid-brightness (exposure compensation), matching the app's Settings:

deptheos pyramid ~/shots/handheld -o handheld.tif --align grid --grid-shift-x 15 --grid-brightness

--camera-profile picks the installed Adobe camera profile that colors camera RAW frames decoded by LibRaw: adobe for Adobe Standard (the default), camera for Camera Standard, the camera maker's look, or none for the colors in the file, with no profile. When no profile for the camera is installed, LibRaw's own color matrices are used. --camera-profile-folder adds a folder of .dcp profiles to look in before Adobe's own, as the app's Camera profile folders setting does; give it once for each folder. Neither applies with --raw-backend adobe-dng, whose converted files carry their own profile, and DNG frames always use the profile stored in them.

batch

Many folders at once, each folder one stack, written into the folder given to -o and named after its folder. An existing file is never replaced.

deptheos batch pyramid ~/shots/* -o ~/stacked

--split auto splits each folder into stacks by capture time, as the app's auto sort does. --format chooses tif (the default), png, jpg or dng; with dng, stacks that aren't camera RAW are written as TIFF. --source raw or standard picks which file of a RAW + JPEG pair to stack.

align

Aligns the frames without stacking them, and writes each one into the folder given to -o, named after its frame: IMG_0001.CR3 becomes IMG_0001.tif. The frames are aligned exactly as a stack of them would be, with the same aligner, the same reverse check and the same crop to the area every frame covers, so the files are all one size and line up pixel for pixel, ready to stack or retouch in another program. A frame that can't be aligned is left out, with a warning.

deptheos align ~/shots/bee -o ~/bee-aligned

deptheos align IMG_*.CR3 -o aligned --format dng

deptheos align frames/ -o aligned --align grid --no-crop --format png

It takes the stacking commands' input, alignment and RAW options: --order, --align ecc or grid with the grid's limits, --no-crop, --raw-backend and --camera-profile. --format chooses tif (the default), png, jpg or dng, for camera RAW frames only, with --bit-depth, --jpeg-quality and --tiff-compression as for a stack.

Each file carries its color the way a stack's result in that format does: camera RAW rendered through the reference frame's color, or as a linear DNG with its color profile, and JPEG, PNG and TIFF frames in their own color space, with its profile embedded. Each keeps its own frame's camera, lens, exposure and capture time. Nothing is replaced: if a file it would write is already in the folder, it stops before reading any frame. The frames are read twice, once to align them all and once to write each, and only one aligned frame is held in memory at a time.

sequence grow, sequence turntable

Exports numbered frames for a video editor into a new folder under -o, with a manifest.json: grow renders a progressive focus-sweep reveal as frames are added to the stack, and turntable stacks one bracket per angle for a rotating 360° view.

deptheos sequence grow ~/shots/bee -o ~/sequences

deptheos sequence turntable ~/turn/s* -o ~/sequences --mode both

grow takes a bracket's frames and builds from the back unless you add --front-to-back; --every 2 writes every second frame. turntable takes one folder per angle; --mode is grow (the default), full or both. --long-edge scales the frames down.

bench

Times the methods and aligners on your own frames, whole stacks each (Pyramid and Depth, each with every aligner, unless --stacker and --align choose), and prints a Markdown table of the times. Add --live to stack as the app does, with its live preview. Timings says more.

deptheos bench ~/shots/bee --live --stacker pyramid --align ecc --repeat 5 --cool 30

Exit status

CodeMeans
0Everything was made and written.
1An error stopped the run, or every stack of a turntable failed.
2The command line was refused, or a batch or turntable finished with one or more stacks that failed or could not be written.
130Interrupted (Ctrl-C, on macOS and Linux); what was written is kept.

-q prints only warnings and errors; -v adds the engine's steps.