Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

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?

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2018-03-19 02:11 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (231 votes). Check out past polls.