Do you know where your variables are? | |
PerlMonks |
Re: I need a comparison/hashing algorithm (not the usual).by BrowserUk (Patriarch) |
on Sep 24, 2004 at 19:43 UTC ( [id://393649]=note: print w/replies, xml ) | Need Help?? |
This is fairly simplistic and quite slow as is, but it does a very good job of matching inverted, flipped and rotated images; pretty good on resized images; and it seems fairly effective on similar images in different formats. It's currently not good at cropped; negative or greyscaled images, though 24-bit <-> 8-bit colour transforms in either direction seem to matched quite well. The performance can be improved markedly by using PDL or similar.
I'd be interested to see pairs of disparate images that produce very close checksums--assuming you are comfortable sharing them:) This isn't based upon any other algorithms that I am aware of--just made up as I went along--but if anyone see's a relationship between this and prior art I appreciate references.
In Section
Seekers of Perl Wisdom
|
|