Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

by deep3101 (Acolyte)
on Jun 02, 2011 at 03:47 UTC ( [id://907738]=note: print w/replies, xml ) Need Help??


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

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.

Replies are listed 'Best First'.
Re^9: Can i Compare two images in perl ?
by The Hindmost (Scribe) on Jun 03, 2011 at 20:56 UTC
    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://907738]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-18 05:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found