Re: [Numpy-discussion] Blurring an Array

2009-06-21 Thread Robert Kern
On Sun, Jun 21, 2009 at 05:48, Ian Mallett wrote: > > This works perfectly!  Is there likewise a similar call for Numeric? If Numeric.roll() exists, then yes. Otherwise, you may have to look at the numpy.roll() sources to replicate what it does. -- Robert Kern "I have come to believe that the w

Re: [Numpy-discussion] Blurring an Array

2009-06-21 Thread Ian Mallett
This works perfectly! Is there likewise a similar call for Numeric? ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Blurring an Array

2009-06-21 Thread Robert Kern
On Sun, Jun 21, 2009 at 03:31, Ian Mallett wrote: > > Sounds like it would work, but unfortunately numpy was one of my dependency > constraints.  I should have mentioned that. In that case, use numpy.roll() instead of slicing to get wraparound. -- Robert Kern "I have come to believe that the w

Re: [Numpy-discussion] Blurring an Array

2009-06-21 Thread Ian Mallett
Sounds like it would work, but unfortunately numpy was one of my dependency constraints. I should have mentioned that. ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Blurring an Array

2009-06-21 Thread Robert Kern
On Sun, Jun 21, 2009 at 02:04, Ian Mallett wrote: > > Hello, > > I'm working on a program that will draw me a metallic 3D texture.  I > successfully made a Perlin noise implementation and found that when the > result is blurred in one direction, the result actually looks somewhat like > brushed

[Numpy-discussion] Blurring an Array

2009-06-21 Thread Ian Mallett
Hello, I'm working on a program that will draw me a metallic 3D texture. I successfully made a Perlin noise implementation and found that when the result is blurred in one direction, the result actually looks somewhat like brushed aluminum. The plan is to do this for every n*m*3 layer (2D textur