boxFilter

Description

Blurs an image using the box filter.

Signature

cv2.boxFilter(src, ddepth, ksize[, dst[, anchor[, normalize[, borderType]]]])  → dst

Parameters

Explanation

The function smoothes an image using the kernel: $$K = \alpha \left[\begin{matrix}1&1&1&...&1&1\\1&1&1&...&1&1\\...\\1&1&1&...&1&1\\\end{matrix}\right]$$ where $$\alpha = \begin{cases} \frac{1}{ksize.width\ast ksize.height},& \text{when } \texttt{normalize=True};\\ 1, & \text{otherwise.} \end{cases}$$

Notes


References

Created with OpenCV 4.4.0