[SciPy-user] Data convolution.

Travis E. Oliphant oliphant at ee.byu.edu
Wed May 26 18:01:24 CDT 2004


Andrea Riciputi wrote:
> On 26 May 2004, at 20:33, Travis E. Oliphant wrote:
> 
>> Yes, you can do convolution.
>>
>> from scipy import *
>>
>> info(signal.convolve)
>>
>> [snip]
> 
> 
> Thanks, but my data set are typically 1024x1024 so I think I need FFT. 
> Nevertheless I'll look into scipy for testing and verifying my own code.
> 

info(fft)

will give you loads of information on how to use fft's to do convolution.

It could be as simple as

ifft2(fft2(a)*fft2(b))

depending on your boundary issues.

-Travis O.






> Cheers,
>     Andrea.
> 
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-user



More information about the SciPy-user mailing list