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.