[Image-SIG] [image-SIG] Finding image statistics

Varsha purohit tiptip.barish at gmail.com
Sat Mar 1 07:27:26 CET 2008


Hello All,
      i have an application where i am comparing two images and highlighting
the difference part in a separate image. I am using ImageChops subtract
method. Here is the code:

file1=Image.open("./pics/original.jpg")
        file2=Image.open(val)
        diff = ImageChops.subtract(file1,file2,0.3)
        diff.save("./pics/diff"+".jpg")

But i want to find other image statistics such as finding number of pixels,
getting sum of all pixels and area of pixels that are different etc.

please guide me regarding this...

thanks,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/image-sig/attachments/20080229/b09d22ae/attachment.htm 


More information about the Image-SIG mailing list