Lulumoy Studio

Math guide

Box blur

Arithmetic mean of the window: all neighbours weigh the same.

I′(x,y)=1k2∑i=−rr∑j=−rrI(x+i,y+j)
For odd k, r = (k − 1)/2. It is the cheapest filter, but its frequency response has side lobes and may leave grid-like artefacts.

Parameters

ParameterMeaning
Kernel sizek, side of the window in pixels.

References

  1. OpenCV 4.x documentation — Image Filtering (GaussianBlur, blur, medianBlur, bilateralFilter, morphologyEx). docs.opencv.org/4.x/d4/d86/group__imgproc__filter.html
  2. R. C. Gonzalez, R. E. Woods. Digital Image Processing, 4th ed. Pearson, 2018.