[SciPy-user] signal.medfilt

priya_tmsi tmspriy@nus.edu...
Thu Oct 16 03:53:42 CDT 2008

I am trying to write a code for median filter using scipy
the following is my code

from numpy import *
import ImageFilter
from scipy import *
import scipy.signal as signal
img = file('girl.png','rb').read() 
f1 = file( 'pygirl.png').write(imgDest)

I get the following error on running this code

Traceback (most recent call last):
  File "medfilt.py", line 6, in ?
  File "/usr/lib/python2.4/site-packages/scipy/signal/signaltools.py", line
232, in medfilt
    return sigtools._order_filterND(volume,domain,order)
ValueError: data type must provide an itemsize

Can any one help please...:,(:,(

View this message in context: http://www.nabble.com/signal.medfilt-tp20009033p20009033.html
Sent from the Scipy-User mailing list archive at Nabble.com.

More information about the SciPy-user mailing list