{% extends "base.html" %} {% block title %} boxFilter {% endblock %} {% block description %}
Blurs an image using the box filter.
{% endblock %} {% block signature %}cv2.boxFilter(src, ddepth, ksize[, dst[, anchor[, normalize[, borderType]]]]) → dst{% endblock %} {% block parameters %}
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:
borderType.copyMakeBorder, otherwise the default value is set to 0.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}$$
{% endblock %} {% block references %} {% endblock %}