Not the neighborhood one, though. It would be good if this iterator had a
cython wrapper, and ndimage used that, though.
Le 13 juin 2012 18:59, "Ralf Gommers" a
écrit :
>
>
> On Wed, Jun 13, 2012 at 6:57 PM, Thouis (Ray) Jones wrote:
>
>> Hello,
>>
>> I'm rewriting scipy.ndimage.label() using num
On Wed, Jun 13, 2012 at 7:58 PM, Ralf Gommers
wrote:
> I think there were some changes to the iterator API recently, so please keep
> in mind that scipy has to still be compatible with numpy 1.5.1 (at least for
> now).
Noted. I'll rewrite using the 1.5 API, and save this for when scipy
moves to
On Wed, Jun 13, 2012 at 6:57 PM, Thouis (Ray) Jones wrote:
> Hello,
>
> I'm rewriting scipy.ndimage.label() using numpy's iterator API,
I think there were some changes to the iterator API recently, so please
keep in mind that scipy has to still be compatible with numpy 1.5.1 (at
least for now).
Tried to figure out in-place calculation for the neighbor routine that I
recently submitted to numpy, but got nowhere. See
https://github.com/numpy/numpy/pull/303 for what I came up with. It
currently makes a new array to hold the calculations.
If someone does come up with something - I would be
Hello,
I'm rewriting scipy.ndimage.label() using numpy's iterator API, and
would like to add the ability for it to operate in-place. However, to
do so, I need to limit the neighbors consulted to those that have
already been processed in the parent iterator over the input and
output arrays. Is th
-
From: 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
on of Numerical Python
Subject: Re: [Numpy-discussion] neighborhood iterator speed
On Mon, Oct 24, 2011 at 1:23 PM, Nadav Horesh 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
y.org
[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 wrote:
> * I'll try to imp
On Mon, Oct 24, 2011 at 1:23 PM, Nadav Horesh 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 can't remember why I re
-boun...@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 wrote:
> * Iterator mode: Mirror. Does the mode make a huge difference?
On Mon, Oct 24, 2011 at 10:48 AM, Nadav Horesh 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 reference to PyArray
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
On Mon, Oct 24, 2011 at 6:57 AM, Nadav Horesh 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
> (cython) code coul
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
n
Nadav
>
> -Original Message-
> From: numpy-discussion-boun...@scipy.org on behalf of David Warde-
> Farley
> Sent: Mon 23-Nov-09 03:21
> To: Discussion of Numerical Python
> Subject: Re: [Numpy-discussion] neighborhood iterator
>
>
> On 22-Nov-09, at 12:50
-Nov-09 03:21
To: Discussion of Numerical Python
Subject: Re: [Numpy-discussion] neighborhood iterator
On 22-Nov-09, at 12:50 PM, Nadav Horesh wrote:
>
> I wonder if the neighbourhood iterator can be used as a more
> efficient replacement for ndimage.generic_filter. Is there a way t
On 22-Nov-09, at 12:50 PM, Nadav Horesh wrote:
>
> I wonder if the neighbourhood iterator can be used as a more
> efficient replacement for ndimage.generic_filter. Is there a way to
> use it from cython?
Yes, using the NumPy C API, called like any other C function is from
Cython. Something
I wonder if the neighbourhood iterator can be used as a more efficient
replacement for ndimage.generic_filter. Is there a way to use it from cython?
Nadav.
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/l
18 matches
Mail list logo