watershed algorithm for segmentation

Tony Yu tsyu80 at gmail.com
Thu Apr 3 10:34:16 EDT 2014


On Thu, Apr 3, 2014 at 4:46 AM, <amitbhatkal12 at gmail.com> wrote:

> Hi everyone,
> I was trying to segment a greyscale 8 bit image using the watershed
> algorithm present in skimage.morphology but I am confused as to what should
> I provide as inputs to the watershed().
> Can anyone please help me in this regard.
> This is what I gathered from the documentation.
>
> *image: ndarray (2-D, 3-D, ...) of integers* :
>
> Data array where the lowest value points are labeled first.
>
> *markers: ndarray of the same shape as `image`* :
>
> An array marking the basins with the values to be assigned in the label
> matrix. Zero means not a marker. This array should be of an integer type.
>
> Here "image" refers to original image or something else?
> How do I obtain the markers ?
>
>
Hi, you should take a look at the gallery examples. Here's a particularly
relevant one:

http://scikit-image.org/docs/dev/auto_examples/plot_marked_watershed.html

Cheers,
-Tony
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-image/attachments/20140403/096e810e/attachment.html>


More information about the scikit-image mailing list