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

fred fredmfp at gmail.com
Fri Jan 16 05:58:00 EST 2009


Hi all,

On a bi-xeon quad core (debian 64 bits) with 8 GB of RAM, if I want to
convolve a 102*122*143 float array (~7 MB) with a kernel of 77*77*41
cells (~1 MB), I get a MemoryError in correlate:

File "/usr/lib/python2.5/site-packages/scipy/ndimage/filters.py", line
331, in convolve
    origin, True)
  File "/usr/lib/python2.5/site-packages/scipy/ndimage/filters.py", line
312, in _correlate_or_convolve
    _nd_image.correlate(input, weights, output, mode, cval, origins)
MemoryError

Why ?

Is there a workaround to compute such convolution ?

TIA.


Cheers,

-- 
Fred



More information about the SciPy-User mailing list