Skip to content

Release v3.0.0

Latest

Choose a tag to compare

@github-actions github-actions released this 13 Nov 12:44
· 1 commit to main since this release
Immutable release. Only release title and notes can be modified.

KARIOS 3.0.0 adds a rewritten karios align, a new HTML report and coarse-to-fine matching. It also fixes a report XSS and closes several local-file and network input vulnerabilities, and it includes five breaking changes. Read the breaking-changes section before upgrading.

Breaking changes

  • API: AccuracyAnalysis has the new required fields rmse, min_error, max_error, std_dev and num_points. They are NaN (num_points is 0) when no key point is confident. Code that builds it by hand must pass them.
  • Exit codes: karios process and karios align now exit with status 1 on error. They always exited with 0 before.
  • Refused inputs: network paths (/vsicurl, /vsis3, http://, …), VRT and web-service rasters, and OGR VRT, WFS, database and GPSBabel vector masks. Convert them to a plain file first.
  • Output folder names: get_filename now sanitizes names. Path traversal sequences are removed, and any character other than letters, digits, _, . and - becomes . Windows reserved names get a safe prefix. Outputs of inputs with spaces or special characters land in differently named folders.
  • Geographic CRS or rotated grids: these images are now measured in pixels, unless you give --input-pixel-size.

Security

  • HTML report XSS: file names, title prefix, configuration values and product names were not escaped, so an image named .tif ran script when report.html or chips.html was opened. They are now escaped, and link paths are percent-encoded.
  • Dangerous inputs refused before opening: a .tif that was really a VRT could map any local file into pixels or make network requests.
  • karios align shell quoting: the printed gdalwarp command is now quoted with shlex.quote, so a file named like $(touch pwned).tif can't run when pasted into a shell. On Windows the path is wrapped in single quotes, so the printed command isn't directly pasteable in cmd or PowerShell.

New features

  • Coarse-to-fine matching (--enable-coarse-to-fine, off by default). On four test scenes it gave 20–100% more key points and better coverage at data edges, for 1.4–1.6× the matching time. It can't be combined with laplacian_kernel_size: "auto" or --enable-large-shift-detection.
  • Matching options:
    • Configurable pyramid depth (klt_matching.maxLevel).
    • Laplacian options: laplacian_kernel_size: "auto", laplacian_invert_polarity, --laplacian-power.
    • Optional input downsampling (image_downsampling.ratio).
    • Automatic no-data handling per band, plus --no-value.
  • Matching confidence in karios process: a verdict of reliable, doubtful or unreliable, written to the new summary.json and shown in the report. The exit status is unchanged. Without any confident key point, the statistics are now undefined instead of failing the run.
  • New HTML report with Summary, Products, Mosaic, Overlay and Chips tabs.
    • --generate-kp-chips: key point image chips, with ZNCC and NMI per key point.
    • --mosaic-tile-size: checkerboard mosaic.
    • --generate-overlay: color overlay.
    • --debug: coverage plot.
    • A DEM alt column in the CSV when a DEM is given.
  • karios align:
    • It's a new standalone subcommand, and its algorithm was overhauled.
    • It writes <mon_stem>_global_alignment.json, a saved alignment that carries the homography and the georeferencing prior.
    • --apply-to BAND and --load-transform JSON apply one alignment to the other bands of a product.
    • --sift-nfeatures limits the SIFT keypoints.
    • It's more robust across sensors and resolutions, keeps the monitored image's resolution and CRS, handles 10 m references, and writes original pixel values. Peak memory fell from 7.2 to 2.1 GB on a PhiSat scene.

Fixes

  • karios align: ECC refinement was corrected the wrong way and doubled its starting error instead of removing it.
  • Key points: they are no longer lost at tile seams.
  • --no-value: it now reaches the matching mask.
  • Plots and reports:
    • DEM plots no longer crash on matplotlib 3.8.
    • The overview plot no longer crashes on a perfect match.
    • The Laplacian output no longer clips to near-binary.
    • The report forces the Agg matplotlib backend.
  • Georeferencing:
    • Geographic-CRS and rotated-grid images no longer crash karios process.
    • is_compatible_with accepts the same CRS written with different WKT.
    • Chips beyond the image boundary are skipped.

Other

  • Python 3.9+ is supported, with a CI check using vermin.
  • Faster runs, less log noise, and the configuration is copied to the output before the run.
  • The docs site now fails its build on missing files and broken links, and gets a weekly external link check.
  • Codebase formatted with black 26.3.1.