title: Python (OpenCV) Median filter trouble
body: <p>I need to do a (fast) median filter of some images from Python, and after some time on Google it seems like OpenCV is the way to go for speed (even in Python). I got OpenCV up and running, and filters like Erode and Dilate works fine:</p>
  
  <pre><code>cv.Erode(cv_im,cv_im,None,6)
  cv.Dilate(cv_im,cv_im,None,6)
  </code></pre>
  
  <p>The Median filter, however, does not seem to work:</p>
  
  <pre><code>cv.Smooth(cv_im,cv_im,CV_MEDIAN)
  </code></pre>
  
  <p>"NameError: global name 'CV_MEDIAN' is not defined"</p>
  
  <p>I can't seem to figure out what I'm doing wrong, according to the documentation <a href="http://opencv.willowgarage.com/documentation/python/image_filtering.html#smooth" rel="nofollow">http://opencv.willowgarage.com/documentation/python/image_filtering.html#smooth</a> it looks like I do it the correct way.</p>
  
  <p>Any ideas?
  Many thanks in advance!</p>