Blurs an image using the box filter.
cv2.boxFilter(src, ddepth, ksize[, dst[, anchor[, normalize[, borderType]]]]) → dst
cv2.CV_*
): Output image depth. Default is -1 to use src1.depth()
, and this is used in this app.src
. cv2.BORDER_*
): Pixel extrapolation method. Default is BORDER_DEFAULT. One of the following:
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}$$
borderType
.copyMakeBorder
, otherwise the default value is set to 0.