Co-Registration¶
Co-registration removes the bulk offset between the primary and secondary image before the main DIC run. Without it, a systematic shift caused by GPS error, georeferencing inconsistency, or sensor drift is absorbed into all displacement estimates and biases every vector in the scene by the same amount. When enabled, the shift is estimated via DFT on a stable-ground region and applied to the secondary image before correlation begins.

The typical setup is:
- Enable co-registration (
co_f = 1) only if you suspect a bulk offset between the two acquisitions — it is off by default. The settings live in Advanced options → Co-registration, whose header shows the current state (e.g. "Off" or "On · full image"). - Choose a method —
fullif most of the scene is stable;bboxif a distinct stable-ground patch needs to be isolated. - If using
bbox, define the stable-ground bounding box by drawing on the canvas, loading a vector file, or entering coordinates manually. - Optionally enable the error statistics plot to verify the co-registration converged correctly.
Default state
Co-registration is disabled by default in all modes. Enable it when the two acquisitions may have a systematic georeferencing offset (DEM and Ortho); it is rarely useful for Camera images, which have no georeferencing error to correct.
Parameters¶
Enable Co-Registration (co_f)¶
Turns co-registration on or off. When disabled all other settings in this panel are ignored and the secondary image is used as-is.
Oversampling (co_os)¶
Sub-pixel upsampling factor applied when estimating the bulk shift via DFT. Precision scales as \(\text{precision} = 1 / \texttt{co\_os}\) pixels — doubling the value halves the shift error. Higher values cost proportionally more computation.
| Value | Shift precision |
|---|---|
| 1 | 1 pixel (integer only) |
| 2 (default) | 0.5 px |
| 4 | 0.25 px |
| 10 | 0.1 px |
Method¶
| Method | Description | When to use |
|---|---|---|
full (default) |
Estimates the shift over the entire image overlap | Most of the scene is stable; no obvious stable patch to isolate |
bbox |
Estimates the shift only within a manually defined stable-ground bounding box | Most of the scene is moving, using the full image would average moving and stable areas and underestimate the true offset |
Stable-Ground Bounding Box (coreg_bbox)¶
Active only when Method is set to bbox. Defines the region used to estimate the bulk shift. Coordinates are in the layer CRS (e.g. EPSG:2056 for Swiss LV95).
The box can be defined in three ways:
- Draw on Canvas — digitise the box interactively on the QGIS map canvas
- Browse GPKG / KML — load a GeoPackage or KML file; the bounding box of the entire layer is used as the stable-ground window
- Manual entry — type the four coordinates directly
| Field | Meaning |
|---|---|
| Min X / Max X | West and east edges |
| Min Y / Max Y | South and north edges |
Only the bounding box is used
Regardless of polygon shape or count, only the rectangular bounding box (min/max extent) of the layer is extracted — the actual geometry is ignored. A circular or irregular polygon gives the same result as a rectangle drawn around it. If the file contains multiple features, the bounding box spans all of them combined. To target a precise area, draw the box manually on the canvas instead.
How to choose a good stable-ground patch:
- Select an area that is genuinely stable between the two acquisitions (bedrock outcrop, road, building roof).
- The patch should be large enough to contain many DIC windows, at least a few hundred pixels on each side at the target resolution.
- Avoid areas with shadows, water, snow, or vegetation change.
- The patch does not need to be centred, a corner of the scene is fine as long as the surface is stable.
Error Statistics Plot¶
When enabled (it is on by default once co-registration is on), saves a PNG named …_ERROR_STATS.png next to the other results. It is only produced with the bbox method, because it analyses the stable-ground box. It shows:
- The stable-ground bounding box on a location map: a swisstopo map where one can be fetched, otherwise the hillshade or image of the primary input
- Histograms of the residual X, Y (and Z for DEM) displacement errors within the stable patch after co-registration
Use this plot to verify that the co-registration converged and that residual errors are centred near zero. Large residuals or a bimodal histogram indicate a poor stable-ground selection or an insufficient oversampling factor.