Question about image comparison using Magick++

Magick++ is an object-oriented C++ interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick++.
Post Reply
snibgo
Posts: 12269
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Question about image comparison using Magick++

Post by snibgo » 2019-06-13T04:43:27-07:00

Gabrial wrote:1) How to set the "-dissimilarity-threshold" and "-metric" as the command line did?
See Image.cpp. A different version of compare has metric as a parameter.

-dissimilarity-threshold has no relevance in a simple compare, and it has no effect in your command. It is relevant for subimage search. If you want that, see Image.cpp subImageSearch().
Gabrial wrote:2) How to output the comparison value to a *.txt file as the command line did?
Use a version of compare that gives the double "distortion" value. Then use fprintf or whatever you want.
snibgo's IM pages: im.snibgo.com

Post Reply