Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: comparing two images and detecting differences

by tachyon (Chancellor)
on Dec 31, 2003 at 01:54 UTC ( #317817=note: print w/replies, xml ) Need Help??

in reply to comparing two images and detecting differences

Image processing is really a task for C/C++ based tool. There has been a vast ammount of work done on the topic and it gets into tertiary level math. If you wanted to do it in Perl/CGI your quickest path would be to get hold of a C/C++ library and make an XS wrapper for it.

Here is a useful site with source code. The main library it uses lives here and is available for Win32 or Linux with versions that compile with VCC, BCC, and GCC. You will find a wealth of info on Google searching for strings like 'image compare similarity C++'



  • Comment on Re: comparing two images and detecting differences

Replies are listed 'Best First'.
Re: Re: comparing two images and detecting differences
by moof1138 (Curate) on Dec 31, 2003 at 06:14 UTC
    Thanks for the link, I think Merlyn's column referred to below should work out as a good place to start, but I will keep that in my back pocket. The server it will wind up running on might be Linux, BSD, or Win2k, depending, and I might need to delegate it to someone else, so I really wanted to avoid C/C++ since I wanted to make sure the code was as portable as possible, and setup was as painless as possible. Again, thanks.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2023-06-09 22:35 GMT
Find Nodes?
    Voting Booth?
    How often do you go to conferences?

    Results (36 votes). Check out past polls.