def detectarcentros(image):
lista_ellipses = list()
pixeles = image.load()
for x in range(ancho):
for y in range(altura):
if pixeles[x,y] == 255:
lista_ellipses.append((x,y))
lista_ellipses = group(lista_ellipses)
centros = list()
print len(lista_ellipses)
for i in lista_ellipses:
x, y = (0, 0)
for j in i:
x += j[0]
y += j[1]
x = int(float(x)/len(i))
y = int(float(y)/len(i))
centros.append((x, y))
return centros