shinestacker

Focus Stacking

job.add_action(FocusStack(name, stacker, *options))

Arguments for the constructor of FocusStack are:

Focus Stacking in bunches of frames

job.add_action(FocusStackBunch(name, stacker, *options))

Arguments for the constructor of FocusStackBunch are:

Template Placeholders

When using output_file_template, the following placeholders are available:

Placeholder Description Example
{method} Stacking algorithm name pyramid or depth_map
{input_count} Total number of input frames 9
{input_prefix} Common prefix of input filenames flies_
{input_min} Variable part of first input filename 0000
{input_max} Variable part of last input filename 0008
{bunch_index:format} Bunch index with optional format specifier (FocusStackBunch only) {bunch_index:03d}001
{bunch_index:04d}0001

Examples with input files flies_0000.jpg to flies_0008.jpg:

Template Result
"{input_prefix}{input_min}-{input_max}_{input_count}frames" flies_0000-0008_9frames.tif
"{method}_{input_count}frames_stack" pyramid_9frames_stack.tif
"{method}_{input_min}-{input_max}" pyramid_0000-0008.tif
"{input_prefix}{input_min}-{input_max}_bunch-{bunch_index:03d}" flies_0000-0008_bunch-001.tif
"{input_prefix}{input_min}-{input_max}_bunch-{bunch_index:04d}" flies_0000-0008_bunch-0001.tif

Stack algorithms

PyramidStack, Laplacian pyramid focus stacking algorithm

Arguments for the constructor are:

PyramidTilesStack, pyramid algorithn with I/O buffered tile pyramid merging to optimize memory usage for large files

Arguments for the constructor are, in addition to the ones for PyramidStack:

PyramidAutoStack, pyramid algorithn with capability to automatically switch from all-in-memory to I/O buffered tiled.

Arguments for the constructor are, in addition to the ones for PyramidTilesStack:

Arguments for the constructor are the same ad for PyramidStack plus:

DepthMapStack, Depth map focus stacking algorithm

Arguments for the constructor are:

For more details about bilateral filters applied to energy and weights map, see Bilateral Filtering.