Fri Aug 10 21:54:09 CDT 2012
This is what I was looking for.
Date: Thu, 9 Aug 2012 11:02:03 +0200
From: Pawe? Kwa?niewski<email@example.com>
Subject: Re: [SciPy-User] watershed
To: SciPy Users List<firstname.lastname@example.org>
Content-Type: text/plain; charset="utf-8"
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,
> 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?
> SciPy-User mailing list
More information about the SciPy-User