Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^7: Can i Compare two images in perl ?

by The Hindmost (Scribe)
on Jun 01, 2011 at 09:42 UTC ( #907593=note: print w/replies, xml ) Need Help??


in reply to Re^6: Can i Compare two images in perl ?
in thread Can i Compare two images in perl ?

Out of curiosity, what technique did you ultimately use?
  • Comment on Re^7: Can i Compare two images in perl ?

Replies are listed 'Best First'.
Re^8: Can i Compare two images in perl ?
by deep3101 (Acolyte) on Jun 02, 2011 at 03:47 UTC

    I used Image::Compare::THRESHOLD_COUNT.

    Even though it takes a bit of time but it is working and then i had to standardise the threshold limit for my matching pixels.

    P.S. Image::Compare was not able to pick up .jpg or even .png images, any reason for so?? I had to use the files as .bmp for it.

      Thanks for the reply, haven't used Image::Compare myself before but I imagine it's probably due to bitmaps being easy to convert to arrays of pixels, which would be necessary for thresholding, whereas the other formats are compressed so it's more difficult to extract the information; I'm sure someone else can confirm this though

        Yes i totally agree with you, bitmap images store information in a per pixel format so comparison per pixel is done and result is evaluated. And thus it takes more time which is directly propotional to the size in pixels of the image.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2023-03-25 15:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (63 votes). Check out past polls.

    Notices?