2019-11-29 19:09:25 +00:00
|
|
|
# compare
|
|
|
|
|
2023-10-05 07:52:40 +01:00
|
|
|
> Create a comparison image to visually annotate the difference between two images.
|
|
|
|
> Part of ImageMagick.
|
2019-11-29 19:09:25 +00:00
|
|
|
> More information: <https://imagemagick.org/script/compare.php>.
|
|
|
|
|
2023-10-05 07:52:40 +01:00
|
|
|
- Compare two images:
|
2019-11-29 19:09:25 +00:00
|
|
|
|
2023-10-05 07:52:40 +01:00
|
|
|
`compare {{path/to/image1.png}} {{path/to/image2.png}} {{path/to/diff.png}}`
|
2019-11-29 19:09:25 +00:00
|
|
|
|
2023-10-05 07:52:40 +01:00
|
|
|
- Compare two images using the specified metric:
|
2019-11-29 19:09:25 +00:00
|
|
|
|
2023-10-05 07:52:40 +01:00
|
|
|
`compare -verbose -metric {{PSNR}} {{path/to/image1.png}} {{path/to/image2.png}} {{path/to/diff.png}}`
|