more advanced median filter?

asked 2013-03-06 03:49:34 -0500

Pieter-Jan Busschaert gravatar image

I would like to use a median filter in a more sophisticated way, but am limited in 2 ways by OpenCV's medianBlur() function.

  1. I would like it to work on 16-bit unsigned int images instead of 8-bit unsigned int.
  2. I would like to use a non-square kernel (arbitrary shape / vertical line / ...)

Currently I am using OpenCV from Python. Are there any pointers on how to do this?

edit retag flag offensive close merge delete


You can just access raw pixel and write your own filter.

mrgloom gravatar imagemrgloom ( 2013-03-06 07:00:03 -0500 )edit