Re: [Tutor] [tutor] Finding image statistics

2008-03-02 Thread Kent Johnson
Varsha Purohit wrote: > I am getting this list as an output > > [268541.0, 264014.0, 324155.0] This is the sum of the values of the red pixels, etc. They are not counts, but sums. So if you have an image with the two pixels (1, 2, 3), (4, 5, 6) you would get a sum of (5, 7, 9). > > Actually in

Re: [Tutor] [tutor] Finding image statistics

2008-03-02 Thread Varsha Purohit
I am getting this list as an output [268541.0, 264014.0, 324155.0] Actually in my code i am finding difference between two images and i need to count the number of pixels which appear as a difference of these two images. These values i m getting as output are little large. i m pasting my code ag

Re: [Tutor] [tutor] Finding image statistics

2008-03-02 Thread Kent Johnson
Varsha Purohit wrote: > Yes i am getting this but i was confused why i am getting 3 values for > count, extrema.. and dats y i couldn't figure out how to find area of > those pixels.. From the docs: "The following attributes contain a sequence with one element for each layer in the image.

Re: [Tutor] [tutor] Finding image statistics

2008-03-02 Thread Varsha Purohit
Yes i am getting this but i was confused why i am getting 3 values for count, extrema.. and dats y i couldn't figure out how to find area of those pixels.. On Sun, Mar 2, 2008 at 9:02 AM, Kent Johnson <[EMAIL PROTECTED]> wrote: > Varsha Purohit wrote: > > of this module in this application. >

Re: [Tutor] [tutor] Finding image statistics

2008-03-02 Thread Kent Johnson
Varsha Purohit wrote: > of this module in this application. > > 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. I don't think you can get a

[Tutor] [tutor] Finding image statistics

2008-03-02 Thread Varsha Purohit
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,f