{% 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 %} {% endblock %} {% block notes %} {% endblock %} {% block 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}$$

{% endblock %} {% block references %} {% endblock %}