All three pipelines share the same YAML structure: io, batch, and dic_params sections. Pass the config file to any processing script with the --config flag — see CLI & Batch Processing for the full invocation commands.
Where to find your config file:
Both builds — starter config files are included in the distribution ZIP (config_dic4dem.yml, config_dic4optical.yml, config_dic4webcam.yml). Edit them directly before running. In the pipeline-only build they are inside slf-dic-python/; in the QGIS + CLI build they are in sample_configs/.
QGIS users — you can also use the 📋 Copy Run Command button in the plugin panel to generate a config from the current settings and copy the matching shell command to the clipboard.
Native resolution of the input DEMs in metres per pixel.
target_resolutions
List of target resolutions in metres/pixel. The input is resampled to each value before DIC. E.g. [1] = 1 m/pixel; [1, 2] also runs a coarser pass at 2 m/pixel.
window_sizes
List of DIC correlation window sizes in pixels. Larger windows give smoother but coarser results. E.g. [32, 64, 128].
Key
Description
base_img_res
Ground sampling distance of the input images in metres per pixel.
target_resolutions
List of target resolutions in metres/pixel. The input is resampled to each value before DIC. E.g. [1] = 1 m/pixel; [1, 2] also runs a coarser pass at 2 m/pixel.
window_sizes
List of DIC correlation window sizes in pixels. Larger windows give smoother but coarser results. E.g. [32, 64, 128].
Key
Description
base_img_res
Pixel scale — keep at 1.0 for non-georeferenced images. All displacements are in pixels.
target_resolutions
List of downsampling factors. [1] = native resolution; [2] = half resolution. Unlike DEM/Ortho, values here are scale factors, not metres, because base_img_res = 1.
window_sizes
List of DIC correlation window sizes in pixels. Larger windows give smoother but coarser results.
When true, output GeoTIFFs are at the resampled resolution; when false, outputs are upscaled back to original resolution.
export_sparse_gpkg
bool
true
Export the raw (non-interpolated) DIC point results to a GeoPackage file. On by default (the plugin always writes it); set false only to skip it.
sparse_only
bool
false
Stop after the HDF5 file, the sparse GeoPackage and the outlier filters. The interpolation and the GeoTIFFs are skipped.
export_hillshade
bool
false
Also write the multidirectional hillshade of both DEMs as DIC_input_hillshade_prim/seco_*.tif (correlation input; DEM only).
export_gradient
bool
false
Also write gradient magnitude and direction (degrees) of the correlation input as DIC_input_gradmag_* / DIC_input_gradang_* (primary and secondary).
output_components
list
all
Which result GeoTIFFs to write, from x, y, z, dz, xy, xyz, az, dip, ee (DEM; Ortho: x, y, xy, az, ee; Camera: x, y, xy, az, ee). Velocity rasters follow the selection. HDF5 and the sparse GeoPackage are always written.
OR
0 or 1
1
1 = orientation image; 0 = hillshade as the correlation feature.
co_f
0 or 1
0
Enable (1) or disable (0) co-registration.
co_os
int
2
DFT oversampling factor used during co-registration.
coreg_method
"full" / "bbox"
"full"
Co-registration window: full = whole image; bbox = sub-window defined by coreg_bbox.
coreg_bbox
[minx, miny, maxx, maxy]
—
Stable-ground bounding box in the input CRS. Required when coreg_method: "bbox".
os
int
4
DFT oversampling factor for subpixel displacement precision. Higher = more precise but slower.
skip_factor
int
4
Controls the DIC grid density: step = window_size / skip_factor. Higher values produce a denser grid.
refcode
string
"EPSG:2056"
Desired EPSG code for the output CRS. Normally matches the input files' actual CRS. If it doesn't, processing runs in the input files' real (detected) CRS and every output GeoTIFF is reprojected (bilinear resampling) to refcode at the end — a genuine coordinate transformation, not just a relabelled file.
auto_reproject_to_utm
bool
true
When true, inputs with a geographic CRS (degrees) are automatically reprojected to UTM before processing.
debug_mode
bool
false
Log per-step RAM usage and array sizes.
n_workers
int
1
Number of parallel threads for the correlation step. 1 = sequential (safest).
Key
Type
Default
Description
rescale_results
bool
true
When true, output GeoTIFFs are at the resampled resolution; when false, outputs are upscaled back to original resolution.
DFT oversampling factor used during co-registration.
coreg_method
"full" / "bbox"
"full"
Co-registration window: full = whole image; bbox = sub-window defined by coreg_bbox.
coreg_bbox
[minx, miny, maxx, maxy]
—
Bounding box for co-registration in the input CRS. Only required when coreg_method: "bbox".
export_sparse_gpkg
bool
true
Export the raw (non-interpolated) DIC point results to a GeoPackage file. On by default (the plugin always writes it); set false only to skip it.
sparse_only
bool
false
Stop after the HDF5 file, the sparse GeoPackage and the outlier filters. The interpolation and the GeoTIFFs are skipped.
export_gradient
bool
false
Also write gradient magnitude and direction (degrees) of the correlation input as DIC_input_gradmag_* / DIC_input_gradang_* (primary and secondary).
output_components
list
all
Which result GeoTIFFs to write, from x, y, z, dz, xy, xyz, az, dip, ee (DEM; Ortho: x, y, xy, az, ee; Camera: x, y, xy, az, ee). Velocity rasters follow the selection. HDF5 and the sparse GeoPackage are always written.
os
int
4
DFT oversampling factor for subpixel displacement precision. Higher = more precise but slower.
skip_factor
int
4
Controls the DIC grid density: step = window_size / skip_factor. Higher values produce a denser grid.
refcode
string
"EPSG:2056"
Desired EPSG code for the output CRS. Normally matches the input files' actual CRS. If it doesn't, processing runs in the input files' real (detected) CRS and every output GeoTIFF is reprojected (bilinear resampling) to refcode at the end — a genuine coordinate transformation, not just a relabelled file.
auto_reproject_to_utm
bool
true
When true, inputs with a geographic CRS (degrees) are automatically reprojected to UTM before processing.
debug_mode
bool
false
Log per-step RAM usage and array sizes.
n_workers
int
1
Number of parallel threads for the correlation step. 1 = sequential (safest).
Key
Type
Default
Description
rescale_results
bool
true
When true, output images are at the downsampled resolution; when false, outputs are at the original image resolution.
align_mode
"crop" / "pad"
"crop"
How to handle inputs of different sizes: crop to the common area, or pad the smaller image with zeros.
co_f
0 or 1
0
Enable (1) or disable (0) co-registration. Usually disabled for camera images.
co_os
int
2
DFT oversampling factor used during co-registration.
coreg_method
"full" / "bbox"
"full"
Co-registration window: full = whole image; bbox = sub-window in pixel coordinates.
export_sparse_gpkg
bool
true
Export the raw (non-interpolated) DIC point results to a GeoPackage (pixel coordinates, no CRS). On by default.
export_gradient
bool
false
Also write gradient magnitude and direction (degrees) of the correlation input as DIC_input_gradmag_* / DIC_input_gradang_* (primary and secondary).
output_components
list
all
Which result GeoTIFFs to write, from x, y, z, dz, xy, xyz, az, dip, ee (DEM; Ortho: x, y, xy, az, ee; Camera: x, y, xy, az, ee). Velocity rasters follow the selection. HDF5 and the sparse GeoPackage are always written.
OR
0 or 1
0
0 = grayscale intensity; 1 = orientation image.
os
int
4
DFT oversampling factor for subpixel displacement precision.
skip_factor
int
4
Controls the DIC grid density: step = window_size / skip_factor.
refcode
"pixel"
"pixel"
Fixed — do not change. Signals non-georeferenced pixel-coordinate mode.
debug_mode
bool
false
Log per-step RAM usage and array sizes.
n_workers
int
1
Number of parallel threads for the correlation step. 1 = sequential (safest).
Native pixel spacing of your input DEMs in metres. Used as the reference for resampling.
Resolution(s) to resample to before running DIC. Use a list like [1, 2] to run multiple passes in one batch.
Correlation window size(s) in pixels. Larger windows = smoother but spatially coarser results. Typical range: 32–256. Use a list like [32, 64, 128] for a batch sweep.
Correlation feature: 1 = orientation image (recommended for DEMs — invariant to illumination); 0 = hillshade.
Co-registration switch: 1 = enabled, 0 = disabled. Removes systematic offsets caused by GPS error or georeferencing inconsistency before DIC.
Co-registration window: "full" uses the entire image overlap (default). Switch to "bbox" and uncomment coreg_bbox if only a small stable region is available.
DFT upsampling factor for subpixel displacement precision. 4 = 0.25 px precision. Higher values increase accuracy but slow down processing.
Controls output grid density: step = window_size / skip_factor. skip_factor: 4 with window_size: 64 gives a point every 16 px. Higher = denser grid.
Desired output CRS. Normally matches the input DEMs' actual CRS (e.g. "EPSG:32632" for UTM zone 32N). If it doesn't match, processing runs in the DEMs' real (detected) CRS and every output GeoTIFF is reprojected (bilinear resampling) to this value at the end — a genuine coordinate transformation, not just a relabelled file.
Master switch for post-processing. Set true to filter outlier vectors and produce GeoPackage / PNG outputs after DIC.
Ground sampling distance of your input orthophotos in metres/pixel.
Two window sizes in one batch run — 32 captures fine detail; 64 gives a smoother, more robust result. Compare the outputs to choose.
Correlation feature: 0 = grayscale intensity (default for Ortho mode). Use 1 (orientation image) for textured scenes with strong illumination variation.
Whole-image co-registration. Recommended for Ortho mode when the scene has a large stable area. Switch to "bbox" and uncomment coreg_bbox if only a small stable region is available.
Desired output CRS. Normally matches the input orthophotos' actual CRS (e.g. "EPSG:32632" for UTM zone 32N). If it doesn't match, processing runs in the images' real (detected) CRS and every output GeoTIFF is reprojected (bilinear resampling) to this value at the end — a genuine coordinate transformation, not just a relabelled file.
Master switch for post-processing. Set true to filter outlier vectors and produce GeoPackage / PNG outputs after DIC.
false = arrows coloured by magnitude. Often looks better on orthophotos than uniform black arrows.
The co-registration method (FULL or BBOX) is only added when co_f is 1, and a decimal point in the resolution is written as an underscore (1.0 becomes 1_0).