[Tutor] [tutor] Finding image statistics

Kent Johnson kent37 at tds.net
Sun Mar 2 23:01:02 CET 2008

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. " So the three values are for the 
red, green and blue components (assuming you have an RGB image).

What pixels do you want the area of? Wouldn't that just be the pixel 
count times the pixel size (which you would have to know independently 
from the geometry of the camera and scene)?


More information about the Tutor mailing list