[Numpy-discussion] Slow operation of nd_image.generic_filter

akulla at comcast.net akulla at comcast.net
Thu Oct 14 06:44:20 CDT 2004


Hi all,

Could it be that the execution of the following function lasts more than 25 seconds, for an array of shape (256, 480)? 

...
def myFunc(anArray, winSize=5):
    return numarray.nd_image.generic_filter(\
                input=anArray,
                function=lambda win: win.mean(),
                size=winSize,
                mode='constant')
...

Python 2.3, numarray 1.0 (XP, P4)

Regards,
Alban




More information about the Numpy-discussion mailing list