Search code examples
image-processingopencvmedian

How is the pattern used in medianBlur in Opencv?


I was reading about median filters in John C. Russ - The Image Processing Handbook, Sixth Edition, and in his book he describes the possible shape in the neighbouring pixels, which could be, for example a cross or square.

So I came across OpenCV medianBlur and was unsure about the pattern used. I would assume it is squared, but not sure. So what is the pattern implemented in OpenCV?


Solution

  • You are correct. It is squared.