Skip to content

Usage

Usage

changedet uses Google Fire for its CLI.

List Available Algorithms

1
changedet list

Get Help

1
2
3
4
5
# General help
changedet --help

# Algorithm-specific help
changedet --algo imgdiff algo_obj --help

Running Change Detection

Basic Usage

1
changedet --algo ALGORITHM_NAME run image1.tif image2.tif

Image Differencing

1
changedet --algo imgdiff run t1.tif t2.tif

Change Vector Analysis

1
2
3
4
5
# Euclidean distance (default)
changedet --algo cva run t1.tif t2.tif

# Manhattan distance
changedet --algo cva run t1.tif t2.tif --distance manhattan

Parameters: - --distance: euclidean or manhattan - --band: Band index or -1 for all bands

Iterated PCA

1
changedet --algo ipca run t1.tif t2.tif

Parameters: - --niter: Number of iterations (default: 5) - --band: Band index or -1 for all bands

IR-MAD

1
changedet --algo irmad run t1.tif t2.tif

Parameters: - --niter: Number of iterations (default: 10) - --sig: Significance level (default: 0.0001)

Output

All algorithms write output to {algorithm}_cmap.tif in the current directory.