[SciPy-User] watershed

Paweł Kwaśniewski pawel.kw@gmail....
Thu Aug 9 04:02:03 CDT 2012


I looked into the functions you're interested, although I'm not an expert
but as far as I understand it - the watershed_ift() function is implemented
in C, since the _nd_image module is a binary package. If you download the
SciPy source code (http://sourceforge.net/projects/scipy/files/scipy/) you
can find the C source of the function you're interested in the
scipy/ndimage/src/ni_measure.c file. The function is called NI_WatershedIFT.

I hope this helps,


2012/8/8 dlibyp@gmail.com <dlibyp@gmail.com>

> Hi all,
> My question is a digest code question, so that I post on scipy-user,
> please tell me if I should no more do that.
> I would like to see source code for watershed algorithm. Code in
> scipy.ndimage.measurements for watershed is a wrapper for method
> watershed_ift in _nd_image. Module is imported in measurements.py, but I
> cannot find it in parent repository.
> Sorry for naive question: does _nd_image refers to C implementation of
> watershed_ift() method?
> Thanks.
> Rig
> _______________________________________________
> SciPy-User mailing list
> SciPy-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20120809/38bfeeee/attachment.html 

More information about the SciPy-User mailing list