Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Can i Compare two images in perl ?

by BrowserUk (Pope)
on May 31, 2011 at 14:58 UTC ( #907472=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #! perl -slw
    use strict;
    ...
    print $all, ' ', $diff;
    
    printf "The simlarity is %.3f%%\n", ( $all - $diff ) / $all * 100;
    
  2. or download this
    C:\test\xx>..\907337 ballons1.jpg ballons2.jpg
    672410265 62443267
    The simlarity is 90.714%
    
  3. or download this
    C:\test\xx>..\907337 ballons1.jpg ballons1a.jpg
    672410265 92011553
    The simlarity is 86.316%
    
  4. or download this
    C:\test\xx>..\907337 1.png 2.png
    244802805 241803
    The simlarity is 99.901%
    
  5. or download this
    C:\test\xx>..\907337 microarray1.jpg microarray2.jpg
    340764405 41409302
    The simlarity is 87.848%
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://907472]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2017-08-18 00:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (294 votes). Check out past polls.

    Notices?