DGtalTools  1.2.0
2dCompImage

Compare images and displays differences (squared and absolute differences).

Usage: 2dCompImage <imageA>.pgm <imageB>.pgm –imageError <name>

Allowed options are :

Positionals:
1 TEXT:FILE REQUIRED Input filename of image A.
2 TEXT:FILE REQUIRED Input filename of image B.
Options:
-h,--help Print this help message and exit
-a,--imageA TEXT:FILE REQUIRED Input filename of image A.
-b,--imageB TEXT:FILE REQUIRED Input filename of image B.
-e,--imageError TEXT Output error image basename (will generate two images <basename>MSE.ppm and <basename>MAE.ppm).
-S,--setMaxColorValueMSE INT Set the maximal color value for the scale display of MSE (else the scale is set the maximal MSE value).
-A,--setMaxColorValueMAE INT Set the maximal color value for the scale display of MAE (else the scale is set from the maximal MAE value).

Example: Typical use example:

2dCompImage imageA.pgm imageB.pgm -e errorImage -S 100

You should obtain such a visualisation:

resulting visualisation of absolute error between two images.
See also
2dCompImage.cpp