[pHash-support] Interpretation of hamming distance results

Evan Klinger eklinger at phash.org
Thu Apr 25 11:03:28 PDT 2013


Ricky,
You cannot read too much into the hamming distance values. Like you said
the lower the number the higher likelihood of it being the same or similar
image. You cannot determine a percentage difference from the hamming
distance nor derive any meaningful contextual information from it.

Thanks
Evan


On Wed, Apr 24, 2013 at 6:58 PM, Ricky Huang <rhuang.work at gmail.com> wrote:

> Hello pHash team,
>
> I am wondering how does one read the return value of the hamming distance
> function.  While I understand that the smaller the value, the more similar
> the two hashes (consequently, the images), is there a rule of thumb on the
> interpretation of the actual value.  E.g., "if hamming distance > 0.50, do
> not bother with the image".
>
> Also on the same topic, what does the ph_hammingdistance2() value actually
> mean?  E.g., "hamming distance of 0.4 means the hashes are 40% dissimilar",
> etc.
>
>
> Thanks!
>
>
> _______________________________________________
> pHash-support mailing list
> pHash-support at lists.phash.org
> http://lists.phash.org/listinfo.cgi/phash-support-phash.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phash.org/pipermail/phash-support-phash.org/attachments/20130425/77baa574/attachment-0002.htm>


More information about the pHash-support mailing list