Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Can i Compare two images in perl ?

by BrowserUk (Patriarch)
on May 31, 2011 at 14:58 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://907472]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-04-23 13:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found