title: How can I imitate medfilt2 of Matlab with OpenCV?
body: <p>I have an imaging application written in Matlab and need to convert it into C++ app with OpenCV. But I can't seem to find an easy way to imitate medfilt2 with OpenCV. </p>
  
  <p>I tried MedianBlur but it didn't produce the same result. Could anybody give me any clue for this task?</p>