Page 1 of 1

Diff() function

Posted: 2017-07-08T07:05:07-07:00
by sachini de silva
Though i searched in many documentations i couldn't find the details about the algorithm which handles the Diff() function in comparing images. Would you please provide me a link from where i can get details about the algorithm use in Diff() function? is there any specified name for this algorithm?

Re: Diff() function

Posted: 2017-07-08T08:53:07-07:00
by snibgo
What Diff() function? There is a Difference method for "-composite" (and other operations), and a "compare" program. The source code is published, so you can see exactly what they do.

Re: Diff() function

Posted: 2017-07-08T10:40:46-07:00
by fmw42
The compare function has many "difference" metrics. See http://www.imagemagick.org/Usage/compare/#statistics. You will have to look in the compare.c code to see how they are implemented.

Re: Diff() function

Posted: 2017-07-09T09:58:00-07:00
by sachini de silva
i used compare command of imagemagick to detect near duplicate images. Though i refer source code and several documentations i couldn't find which code part handles this compare command. Can you please tell me which algorithm/code handles this compare command

Re: Diff() function

Posted: 2017-07-09T11:26:55-07:00
by fmw42
See compare.c and inside that GetImageChannelDistortion()