[Image-SIG] PIL - 1.1.6, Centroid
Laura & Edward Cannon
cannon.el at gmail.com
Thu Aug 21 03:39:58 CEST 2008
using the Image.load() function to create a pixel access object and
loop through the file.
g = a.load() #a is an image
for i in xrange(width):
for j in xrange(height):
#do computations here
also take a look at the ImageStat module, which might save some work,
as well as being faster.
2008/8/19 Ashish Asgekar <ashish.asgekar at gmail.com>:
> Hello
> I was looking for Centroid function in Python and downloaded PIL-1.1.6. I
> learnt that Centroid function is available as Crack Code. However, when I
> search for CrackCode, I find it is not available anymore from PythonWare.
> My questions are:
> 1) Is CrackCode available in PIL-1.1.6 in some other form?
> 2) Can I compute Centroid of an image using some other existing
> function?
>
> Thank you.
> -- ashish
>
> --
> -----------------------------------------------------------------------------
> Dr. Ashish Asgekar
> Physics Group,
> BITS Pilani-Goa Campus,
> Zuarinagar, Goa.
> India 403 726
>
> www.bits-goa.ac.in/Departments/Physics/Faculty.htm
> -----------------------------------------------------------------------------
>
> _______________________________________________
> Image-SIG maillist - Image-SIG at python.org
> http://mail.python.org/mailman/listinfo/image-sig
>
>
More information about the Image-SIG
mailing list