Skip to content

Outlier Filtering

Outlier Filtering (formerly Vector Filter) removes outlier displacement vectors after DIC and produces cleaned vector outputs as GeoPackage, text, and PNG. It runs as an optional last step within the Processing pipeline, directly after the correlation. Two filter algorithms are available; the choice depends on whether you want to work on the interpolated grid or the sparse point layer.

The Outlier filtering group of the Advanced options

The typical setup is:

  1. Select a filter mode from the dropdown — Neighbourhood Coherence Filter for grid-based filtering, Iterative Neighbour Filter for sparse-point filtering.
  2. Tune the filter parameters — thresholds for magnitude, direction, and neighbourhood radius or distance.
  3. Choose which output files to produce — GeoPackage, text, and/or PNG plot.
  4. The filter runs automatically at the end of each DIC processing run.

Note

Outlier Filtering can also be re-run on existing results without reprocessing — use the Post-process existing results sidebar.

Filter mode

Option Description
Disabled No filtering — all vectors are passed through as-is
Neighbourhood Coherence Filter Single-pass, radius-based filter operating on the interpolated HDF5 grid. Each vector is compared to neighbours within skip_factor × RadiusMult; vectors deviating too much in direction or amplitude from the local mean are rejected.
Iterative Neighbour Filter Multi-pass N-nearest-neighbour similarity filter operating on the sparse GeoPackage export. Progressively refines the result over multiple passes.

Neighbourhood Coherence Filter

Single-pass filter working on the interpolated grid (HDF5 output). For each vector, all neighbours within the search radius are found; vectors deviating from the local mean in direction or amplitude are rejected.

Parameter Description
Max magnitude Cap applied after the neighbourhood comparison, together with the two amplitude bounds below. Vectors exceeding this displacement magnitude (m) are removed from the outputs.
Threshold min Lower amplitude bound. Vectors with magnitude below this value are excluded from all outputs.
Threshold max Upper amplitude bound. Vectors with magnitude above this value are excluded from all outputs.
Direction threshold Each vector is compared to the circular mean direction of its neighbours. Vectors deviating by more than this angle (°) are rejected. Set to 180° to disable direction filtering.
Amplitude threshold Vectors whose magnitude differs from the local neighbourhood mean by more than this value (m) are rejected. Works together with the direction threshold.
Radius multiplier Controls the neighbourhood search radius: radius = skip_factor × multiplier. Larger values include more distant neighbours.
Arrow downsample (N) Keep every N-th vector in all outputs (GPKG, TXT, and plot). Does not affect filtering, only output density.

Iterative Neighbour Filter

Multi-pass filter working on the sparse GeoPackage export. For each vector, the N nearest neighbours within the max distance are evaluated; vectors deviating too much in magnitude or azimuth are rejected. The process repeats for the configured number of iterations.

Note

The sparse GeoPackage this filter works on is always written.

Parameter Default Description
Magnitude field xy Column from the sparse GeoPackage used for neighbourhood comparison. xy = 2-D horizontal magnitude (√(dx²+dy²)); xyz = 3-D magnitude using the co-registration-restored Z component — DEM mode only.
Magnitude threshold 10 m Maximum allowed magnitude deviation from the neighbourhood mean.
Direction threshold 15° Maximum allowed azimuth deviation from the neighbourhood circular mean.
Min neighbours 4 Vectors with fewer than this many neighbours within Max distance are removed.
Max distance 50 m Search radius for finding neighbours (map units / pixels).
Iterations 1 Number of filter passes. More passes remove more outliers but can over-thin dense displacement fields.

Export files

Option Description
Save as .txt Write filtered vectors as comma-separated text (columns x, y, dx, dy, magnitude and direction in degrees).
Save as GeoPackage Write filtered vectors as a GeoPackage vector layer with full CRS.
Save result plot as .png Render the filtered displacement field overlaid on a background image and save as PNG.

Plot settings

Parameter Description
Colour scale max Upper limit of the plot colourbar. Vectors above this value are clipped to the top colour; does not affect which vectors are exported.
Black arrows When checked, all arrows are drawn in black. When unchecked, arrows are colour-coded by magnitude. Black arrows are useful when the background raster already carries colour information.
Background alpha Opacity of the displacement magnitude colour overlay behind the arrows (0 = transparent, 1 = opaque).
Plot hillshade from DSM Compute a shaded-relief image from the raster below and blend it into the background.
Background DSM/raster Path to a GeoTIFF used as the hillshade source — typically the primary DEM or orthoimage.
Overlay 3D displacement magnitude Colour-code the background by 3-D displacement magnitude (DEM mode only).
Fetch WMTS/WMS background tile Download a web map tile as the plot background (requires internet).
WMTS/WMS layer Swisstopo layer: satellite (SwissImage aerial imagery), map (topographic map) or relief (SwissALTI3D shaded relief). Switzerland only.