Re: [Numpy-discussion] 2D Hamming window

2008-07-27 Thread Henrik Ronellenfitsch
Hi, Gary Ruben wrote: > import numpy as np > import scipy.signal as ss > > # read heightmap here - in my case it's a square numpy float array > > # build 2d window > hm_len = heightmap.shape[0] > bw2d = np.outer(ss.hamming(hm_len), np.ones(hm_len)) > bw2d = np.sqrt(bw2d * bw2d.T) # I don't know w

[Numpy-discussion] 2D Hamming window

2008-07-26 Thread Henrik Ronellenfitsch
Hello! I'm looking for a 2D hamming window function. As far as I can see, numpy only supports 1D windows and googling didn't show a simple way of extending it in two dimensions. Thanks for your help, Henrik ___ Numpy-discussion mailing list Numpy-discus