Thanks Pawel, This is what I was looking for. Rig Message: 2 Date: Thu, 9 Aug 2012 11:02:03 +0200 From: Pawe? Kwa?niewski<pawel.kw@gmail.com> Subject: Re: [SciPy-User] watershed To: SciPy Users List<scipy-user@scipy.org> Message-ID: <CAAih6Wny6=wojRoJubKdCQPvGd1u5smoMNGO9Wp2PARpUcZxNw@mail.gmail.com> Content-Type: text/plain; charset="utf-8" Hi, 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, Pawe? 2012/8/8dlibyp@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
participants (1)
-
dlibyp@gmail.com