Compare PHASH: Reference for how it was implemented?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
IMUser78
Posts: 1
Joined: 2017-04-05T02:16:47-07:00
Authentication code: 1151

Compare PHASH: Reference for how it was implemented?

Post by IMUser78 »

Dear all,

Imagemagick implements the PHASH (percetual hash) algorithm in the compare command. It is not clear, however, how the PHASH was specifically implemented. Does anyone have a reference to an article or publication that was used as the basis for the implementation?

Thank you!
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Compare PHASH: Reference for how it was implemented?

Post by snibgo »

For references, see Fred's paper http://www.fmwconcepts.com/misc_tests/p ... index.html

Since he wrote that, the IM implementation has changed to allow for different colorspaces to be used, instead of sRGb and HCL.
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Compare PHASH: Reference for how it was implemented?

Post by fmw42 »

The reference in the link to my web site that was used is http://www.naturalspublishing.com/files ... g3omq1.pdf
Post Reply