Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

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

by deep3101 (Acolyte)
on Jun 02, 2011 at 03:47 UTC ( #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?

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2023-06-03 14:03 GMT
Find Nodes?
    Voting Booth?
    How often do you go to conferences?

    Results (14 votes). Check out past polls.