From: Alexandre F. <ale...@lo...> - 2006-06-19 08:01:50
|
I'm bringing back the discussion on list.=20 On Mon, Jun 19, 2006 at 12:01:27AM +0100, stephen emslie wrote: > > > >You will get this in numarray.nd_image, the function is > >called label. It is also available in recent versions of scipy, in > >module scipy.ndimage. >=20 >=20 >=20 > Thanks for pointing me in the right direction. I've been playing around w= ith > this and I'm getting along with my problem, which is to find the areas of > the connected components in the binary image. ndimage.label has been a gr= eat > help in identifying and locating each shape in my image, but I am not qui= te > sure how to interpret the results. I would like to be able to calculate t= he > area of each slice returned by ndimage.labels. Is there a simple way to do > this? Yes, you will get an example in http://stsdas.stsci.edu/numarray/numarray-1.5.html/node98.html =20 > Also, being very new to scipy I dont fully understand how the slice objec= ts > returned by label actually work. Is there some documentation on this modu= le > that I could look at? http://stsdas.stsci.edu/numarray/numarray-1.5.html/module-numarray.ndimage.= html --=20 Alexandre Fayolle LOGILAB, Paris (France) Formations Python, Zope, Plone, Debian: http://www.logilab.fr/formations D=E9veloppement logiciel sur mesure: http://www.logilab.fr/services Informatique scientifique: http://www.logilab.fr/science |