[Image-SIG] Finding image statistics

Stani spe.stani.be at gmail.com
Mon Mar 3 20:06:16 CET 2008


Have a look at the ImageStat module of PIL
>>> import ImageStat

Stani

2008/3/1 tiptip barish <tiptip.barish at gmail.com>:
> 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
> which exist after taking difference between two images, getting sum of all
> pixels and area of pixels that are in that image etc.
>
> please guide me regarding this...
>
> thanks,
> _______________________________________________
>  Image-SIG maillist  -  Image-SIG at python.org
>  http://mail.python.org/mailman/listinfo/image-sig
>
>



-- 
http://pythonide.stani.be


More information about the Image-SIG mailing list