Discussion:
Finding watershed lines
Martin Ichilevici de Oliveira
2014-06-05 15:29:06 UTC
Permalink
Hello,

I'm trying to find watershed lines of an image. I tried using
mahotas.cwatershed, but all tutorials I found for it are just interested in
labeling regions. Also, I'm unsure which markers to use.

Any help is appreciated. Thank you.
--
You received this message because you are subscribed to the Google Groups "pythonvision" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pythonvision+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
Luis Pedro Coelho
2014-06-05 17:07:06 UTC
Permalink
Post by Martin Ichilevici de Oliveira
I'm trying to find watershed lines of an image. I tried using
mahotas.cwatershed, but all tutorials I found for it are just interested
in labeling regions.
mahotas.cwatershed has a return_lines parameter you can use for this:

http://mahotas.readthedocs.org/en/latest/api.html?highlight=cwatershed#mahotas.cwatershed
Post by Martin Ichilevici de Oliveira
Also, I'm unsure which markers to use.
It depends on what you want to do, of course.

A typical choice is to the regional minima (which can be obtained using
mahotas.regmin)

HTH
--
Luis Pedro Coelho | EMBL | http://luispedro.org
My blog: http://metarabbit.wordpress.com
--
You received this message because you are subscribed to the Google Groups "pythonvision" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pythonvision+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
Anthony Oliver
2014-06-05 17:36:39 UTC
Permalink
It also exist in SimpleCV and is pretty straight forward to use:

from SimpleCV import Image
img = Image('your_img_here.jpg')
watershedimg = img.watershed()
watershedimg.show()





Sight Machine
Anthony Oliver
www.sightmachine.com



On Thu, Jun 5, 2014 at 11:29 AM, Martin Ichilevici de Oliveira <
Post by Martin Ichilevici de Oliveira
Hello,
I'm trying to find watershed lines of an image. I tried using
mahotas.cwatershed, but all tutorials I found for it are just interested in
labeling regions. Also, I'm unsure which markers to use.
Any help is appreciated. Thank you.
--
You received this message because you are subscribed to the Google Groups
"pythonvision" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "pythonvision" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pythonvision+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Loading...