ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 23 Sep 2012 09:22:06 +0200Mathematical Morphology?https://ask.sagemath.org/question/9321/mathematical-morphology/Is there a recommended package for Sage (or simply for Python) to do morphological image processing -- for instance, dilation, erosion, thinning, opening, closing, skeleton generation -- and related transformations?Sat, 15 Sep 2012 21:34:07 +0200https://ask.sagemath.org/question/9321/mathematical-morphology/Answer by jeanpat for <p>Is there a recommended package for Sage (or simply for Python) to do morphological image processing -- for instance, dilation, erosion, thinning, opening, closing, skeleton generation -- and related transformations?</p>
https://ask.sagemath.org/question/9321/mathematical-morphology/?answer=14062#post-id-14062For python you can use [mahotas](http://luispedro.org/software/mahotas), [pymorph](http://luispedro.org/software/pymorph), [scikits-image](http://scikits-image.org/), [mamba](http://www.mamba-image.org/). There's also things in [scipy](http://docs.scipy.org/doc/scipy/reference/tutorial/ndimage.html#morphology)Sun, 23 Sep 2012 09:22:06 +0200https://ask.sagemath.org/question/9321/mathematical-morphology/?answer=14062#post-id-14062Answer by calc314 for <p>Is there a recommended package for Sage (or simply for Python) to do morphological image processing -- for instance, dilation, erosion, thinning, opening, closing, skeleton generation -- and related transformations?</p>
https://ask.sagemath.org/question/9321/mathematical-morphology/?answer=14037#post-id-14037The Image module in python might have some of what you want.
See: http://www.pythonware.com/library/pil/handbook/image.htm
There are also facilities in numpy and scipy that you can use within Sage.
See: http://scipy-lectures.github.com/advanced/image_processing/index.htmlSat, 15 Sep 2012 22:35:44 +0200https://ask.sagemath.org/question/9321/mathematical-morphology/?answer=14037#post-id-14037