I'm bringing back the discussion on list.
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. > > > > Thanks for pointing me in the right direction. I've been playing around with > 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 great > help in identifying and locating each shape in my image, but I am not quite > sure how to interpret the results. I would like to be able to calculate the > 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 > Also, being very new to scipy I dont fully understand how the slice objects > returned by label actually work. Is there some documentation on this module > that I could look at? http://stsdas.stsci.edu/numarray/numarray-1.5.html/module-numarray.ndimage.html -- Alexandre Fayolle LOGILAB, Paris (France) Formations Python, Zope, Plone, Debian: http://www.logilab.fr/formations Développement logiciel sur mesure: http://www.logilab.fr/services Informatique scientifique: http://www.logilab.fr/science
signature.asc
Description: Digital signature
_______________________________________________ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/numpy-discussion