[Image-SIG] PIL - 1.1.6, Centroid

Andrew Hawryluk HAWRYLA at novachem.com
Wed Aug 20 20:06:06 CEST 2008


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: image-sig-bounces+hawryla=novachem.com at python.org [mailto:image-sig-bounces+hawryla=novachem.com at python.org]On Behalf Of Ashish Asgekar
Sent: 19 Aug 2008 10:31 PM
To: image-sig at 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 
-----------------------------------------------------------------------------


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/image-sig/attachments/20080820/2ff6051f/attachment.htm>


More information about the Image-SIG mailing list