One option is to use Numpy/Scipy: import Image import numpy as n im = Image.Open(...) data = n.asarray(im) There is a center_of_mass function in scipy.ndimage.measurements. Andrew
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ashish Asgekar Sent: 19 Aug 2008 10:31 PM To: image-sig@python.org Subject: [Image-SIG] PIL - 1.1.6, Centroid 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@python.org http://mail.python.org/mailman/listinfo/image-sig