Align Image Pairs¶
This page covers the standard pairwise coregistration case: one source raster, one reference raster, and one coregistered GeoTIFF output.
The CLI keeps the registration library's argument names:
--moving-imageis the source raster that will be transformed.--fixed-imageis the reference raster used for alignment.
Basic CLI Alignment¶
1 2 3 4 | |
By default, the CLI:
- estimates registration on edge-proxy images
- clips the reference domain to the source-raster bounds
- uses the mutual valid-data overlap for registration masks
- writes the result on the source-raster grid
- uses no chunking (
--split-factor 0)
The command prints a JSON summary:
1 2 3 4 | |
Basic Python Alignment¶
The same settings can be used from Python:
1 2 3 4 5 6 7 8 9 | |
The CLI and Python API use the same registration defaults.
Registration Bands¶
Registration is estimated from one band in each raster. Use --band-index when the same 0-based band should be used from both rasters:
1 2 3 4 5 | |
Use separate band indexes when the best registration signal is in different bands:
1 2 3 4 5 6 | |
The same options are available in Python:
1 2 3 4 5 6 7 | |
All source bands are transformed after the registration model is estimated.
Output Grid¶
The default output grid is the source-raster grid:
1 2 3 4 5 | |
Use this when the aligned raster needs to remain compatible with a source image stack.
Write on the reference-raster grid with:
1 2 3 4 5 | |
Use this when the output should match the reference raster's extent, transform, and pixel grid.
Nodata Overrides¶
Coregix reads raster masks and nodata metadata when building registration masks. If the source metadata is missing or incorrect, provide nodata values explicitly:
1 2 3 4 5 6 7 | |
--output-nodata controls the value written into invalid output pixels.
Debugging Registration¶
Temporary registration images and masks are normally deleted after the command finishes. Keep them when diagnosing a failed or unexpected registration:
1 2 3 4 5 | |
Use --temp-dir to choose the parent directory for temporary files, and --log-to-console to print registration backend logs.