Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: I need a comparison/hashing algorithm (not the usual).

by cheshirecat (Sexton)
on Sep 24, 2004 at 16:58 UTC ( [id://393590]=note: print w/replies, xml ) Need Help??


in reply to I need a comparison/hashing algorithm (not the usual).

Another theoretical approach would be to compress both images into JPEGs and then parse the JPEG file for the 8x8 chunks

Calculate a hash for each of the chunks and then you could compare the list of hashes for each image.

Alternatively you could break each image up into 8x8 chunks and then "naively" quantise them (take it down to 12bit or even 9 bit colour depth).
Then calculate the average and median for each of the quantised chunks and compare the lists of values for each image.

Cheers The Cat

  • Comment on Re: I need a comparison/hashing algorithm (not the usual).

Replies are listed 'Best First'.
Re^2: I need a comparison/hashing algorithm (not the usual).
by Cap'n Steve (Friar) on Sep 24, 2004 at 18:55 UTC
    Wow, there's definitely some good ideas there, thanks guys. This is all theoretical at the moment so I'm just investigating the possibilities, but I'll be sure to read up on some of the suggestions.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://393590]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-20 02:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found