Re: Segmentation and Granulometry with scikit-image
Hi, the good news is that it is possible to perform the same operations with functions from skimage, plus some functions from scipy.ndimage (not in skimage to avoid code duplication). Below is a correspondence table that you can use for your applications. You can use the online doc to know more about these functions on http://scikits-image.org/docs/dev/api/api.html. You may also want to read the segmentation tutorial on http://scikits-image.org/docs/dev/user_guide/tutorial_segmentation.html Matlab <-> skimage (or scipy.ndimage) imread skimage.io.imread edge skimage.filter.canny strel skimage.morphology.selem imdilate skimage.morphology.dilation imfill ndimage.binary_fill_holes imclearborder skimage.segmentation.clear_border (**) imerode skimage.morphology.erosion bwperim skimage.measure.find_contours or ndimage.morphological_gradient adapthisteq skimage.exposure.equalize imadjust skimage.exposure.rescale_intensity imopen skimage.morphology.opening (**) only in the development version, the code is on https://github.com/scikits-image/scikits-image/blob/master/skimage/segmentat... Hope this is enough to get you started! Cheers, Emmanuelle On Wed, Sep 19, 2012 at 04:01:06AM -0700, ashz wrote:
Hi,
I am very interested in python image analysis and especially in Scikit-image.
As a newbie would it be possible to get an explanation how to convert the Matlab codes below to python+scikit-image.
Detecting a Cell Using Image Segmentation: http://www.mathworks.com/help/images/examples/detecting-a-cell-using-image-s...
Granulometry of Snowflakes: http://www.mathworks.com/products/image/examples.html?file=/products/demos/s...
Thanks a lot.
participants (1)
-
Emmanuelle Gouillart