[SciPy-user] ndimage convolve vs. RAM issue...

fred fredmfp@gmail....
Tue Jan 20 05:22:17 CST 2009


Gael Varoquaux a écrit :
> On Tue, Jan 20, 2009 at 11:33:53AM +0100, fred wrote:
>> I really need some help, since ndimage.convolve is _very_ efficient ;-)
> 
> Did you try fftconvolve?
Yep.

On a smaller kernel:

data: 600x800x720
kernel: 361

ndimage.convolve: 184 s

signal.fftconvolve: MemoryError


Another one :

data: 300x400x360
kernel: 361

ndimage.convolve: 22 s

signal.fftconvolve: 37 s


Besides this, ndimage.convolve can handle NaN, not signal.fftconvolve.


Cheers,

-- 
Fred


More information about the SciPy-user mailing list