[Numpy-discussion] fast way to convolve a 2d array with 1d filter

Nadav Horesh nadavh@visionsense....
Tue Dec 2 06:36:55 CST 2008

You can use 2D convolution routines either in scipy.signal or numpy.numarray.nd_image


-----הודעה מקורית-----
מאת: numpy-discussion-bounces@scipy.org בשם frank wang
נשלח: ג 02-דצמבר-08 03:38
אל: numpy-discussion@scipy.org
נושא: [Numpy-discussion] fast way to convolve a 2d array with 1d filter

I need to convolve a 1d filter with 8 coefficients with a 2d array of the shape (6,7). I can use convolve to perform the operation for each row. This will involve a for loop with a counter 6. I wonder there is 
an fast way to do this in numpy without using for loop. Does anyone know how to do it?
Access your email online and on the go with Windows Live Hotmail.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 3494 bytes
Desc: not available
Url : http://projects.scipy.org/pipermail/numpy-discussion/attachments/20081202/165c3dd1/attachment-0001.bin 

More information about the Numpy-discussion mailing list