Re: [Numpy-discussion] [enhancement] sum_angle() and sum_polar()

2012-05-29 Thread Robert Jördens
On Tue, May 29, 2012 at 12:06 PM, Charles R Harris wrote: > I'd like to see these functions is scipy somewhere. The function names > aren't very descriptive and the one line summaries don't give a very good > idea of what they do, so I think those bits could use improvement. Mention > of the Hough

Re: [Numpy-discussion] [enhancement] sum_angle() and sum_polar()

2012-05-29 Thread Jerome Kieffer
On Tue, 29 May 2012 10:03:04 -0700 Stéfan van der Walt wrote: > On Mon, May 28, 2012 at 11:53 AM, Travis Oliphant wrote: > > I could see these functions going into scipy.ndimage but again because they > > are not necessarily just image processing functions, and the fact that they > > are so simp

Re: [Numpy-discussion] [enhancement] sum_angle() and sum_polar()

2012-05-29 Thread Charles R Harris
On Tue, May 29, 2012 at 11:40 AM, Robert Jördens wrote: > On Tue, May 29, 2012 at 11:03 AM, Stéfan van der Walt > wrote: > > On Mon, May 28, 2012 at 11:53 AM, Travis Oliphant > wrote: > >> I could see these functions going into scipy.ndimage but again because > they > >> are not necessarily jus

Re: [Numpy-discussion] [enhancement] sum_angle() and sum_polar()

2012-05-29 Thread Robert Jördens
On Tue, May 29, 2012 at 11:03 AM, Stéfan van der Walt wrote: > On Mon, May 28, 2012 at 11:53 AM, Travis Oliphant wrote: >> I could see these functions going into scipy.ndimage but again because they >> are not necessarily just image processing functions, and the fact that they >> are so simple, p

Re: [Numpy-discussion] [enhancement] sum_angle() and sum_polar()

2012-05-29 Thread Stéfan van der Walt
On Mon, May 28, 2012 at 11:53 AM, Travis Oliphant wrote: > I could see these functions going into scipy.ndimage but again because they > are not necessarily just image processing functions, and the fact that they > are so simple, perhaps they are best put into NumPy itself. I'm wondering about th

Re: [Numpy-discussion] [enhancement] sum_angle() and sum_polar()

2012-05-28 Thread Travis Oliphant
On May 28, 2012, at 1:02 PM, Ralf Gommers wrote: > > > On Mon, May 28, 2012 at 7:58 PM, Travis Oliphant wrote: > I didn't see anyone respond to this, but looking over his simple and elegant > solution it seems like a useful addition to the 2-d functions available in > NumPy as it works with

Re: [Numpy-discussion] [enhancement] sum_angle() and sum_polar()

2012-05-28 Thread Ralf Gommers
On Mon, May 28, 2012 at 7:58 PM, Travis Oliphant wrote: > I didn't see anyone respond to this, but looking over his simple and > elegant solution it seems like a useful addition to the 2-d functions > available in NumPy as it works with any 2-d array (image or matrix) and > does a transformation o

Re: [Numpy-discussion] [enhancement] sum_angle() and sum_polar()

2012-05-28 Thread Travis Oliphant
I didn't see anyone respond to this, but looking over his simple and elegant solution it seems like a useful addition to the 2-d functions available in NumPy as it works with any 2-d array (image or matrix) and does a transformation on the indices in order to organize the sum. It is not a gene

[Numpy-discussion] [enhancement] sum_angle() and sum_polar()

2012-03-07 Thread Robert Jördens
Hi everyone, I am proposing to add the the two following functions to numpy/lib/twodim_base.py: sum_angle() computes the sum of a 2-d array along an angled axis sum_polar() computes the sum of a 2-d array along radial lines or along azimuthal circles https://github.com/numpy/numpy/pull/230 Comme