Re: [Numpy-discussion] neighborhood iterator speed

2011-10-25 Thread Nadav Horesh
: numpy-discussion-boun...@scipy.org [mailto:numpy-discussion-boun...@scipy.org] On Behalf Of Nadav Horesh Sent: Monday, October 24, 2011 9:02 PM To: Discussion of Numerical Python Subject: Re: [Numpy-discussion] neighborhood iterator speed I found the 2d iterator definition active in numpy 1.6.1. I'll

Re: [Numpy-discussion] neighborhood iterator speed

2011-10-24 Thread David Cournapeau
On Mon, Oct 24, 2011 at 6:57 AM, Nadav Horesh nad...@visionsense.com wrote: I am trying to replace an old code (biliteral filter) that rely on ndimage.generic_filter with the neighborhood iterator. In the old code, the generic_filter generates a contiguous copy of the neighborhood, thus the

Re: [Numpy-discussion] neighborhood iterator speed

2011-10-24 Thread Nadav Horesh
Nadav -Original Message- From: numpy-discussion-boun...@scipy.org [mailto:numpy-discussion-boun...@scipy.org] On Behalf Of David Cournapeau Sent: Monday, October 24, 2011 9:38 AM To: Discussion of Numerical Python Subject: Re: [Numpy-discussion] neighborhood iterator speed On Mon, Oct 24

Re: [Numpy-discussion] neighborhood iterator speed

2011-10-24 Thread David Cournapeau
On Mon, Oct 24, 2011 at 10:48 AM, Nadav Horesh nad...@visionsense.com wrote: * Iterator mode: Mirror. Does the mode make a huge difference? It could, at least in principle. The underlying translate function is called often enough that a slight different can be significant. * I can not find any

Re: [Numpy-discussion] neighborhood iterator speed

2011-10-24 Thread Nadav Horesh
...@scipy.org] On Behalf Of David Cournapeau Sent: Monday, October 24, 2011 1:57 PM To: Discussion of Numerical Python Subject: Re: [Numpy-discussion] neighborhood iterator speed On Mon, Oct 24, 2011 at 10:48 AM, Nadav Horesh nad...@visionsense.com wrote: * Iterator mode: Mirror. Does the mode make a huge

Re: [Numpy-discussion] neighborhood iterator speed

2011-10-24 Thread David Cournapeau
On Mon, Oct 24, 2011 at 1:23 PM, Nadav Horesh nad...@visionsense.com wrote: * I'll try to implement the 2D iterator as far as far as my programming expertise goes. It might take few days. I am pretty sure the code is in the history, if you are patient enough to look for it in git history. I

Re: [Numpy-discussion] neighborhood iterator speed

2011-10-24 Thread Nadav Horesh
[mailto:numpy-discussion-boun...@scipy.org] On Behalf Of David Cournapeau Sent: Monday, October 24, 2011 4:04 PM To: Discussion of Numerical Python Subject: Re: [Numpy-discussion] neighborhood iterator speed On Mon, Oct 24, 2011 at 1:23 PM, Nadav Horesh nad...@visionsense.com wrote: * I'll try

Re: [Numpy-discussion] neighborhood iterator speed

2011-10-24 Thread Nadav Horesh
of Numerical Python Subject: Re: [Numpy-discussion] neighborhood iterator speed On Mon, Oct 24, 2011 at 1:23 PM, Nadav Horesh nad...@visionsense.com wrote: * I'll try to implement the 2D iterator as far as far as my programming expertise goes. It might take few days. I am pretty sure the code

[Numpy-discussion] neighborhood iterator speed

2011-10-23 Thread Nadav Horesh
I am trying to replace an old code (biliteral filter) that rely on ndimage.generic_filter with the neighborhood iterator. In the old code, the generic_filter generates a contiguous copy of the neighborhood, thus the (cython) code could use C loop to iterate over the neighbourhood copy. In the