{% extends "base.html" %} {% block title %} dilate {% endblock %} {% block description %}

Dilates an image by using a specific structuring element.

{% endblock %} {% block signature %}
cv2.dilate(src, kernel[, dst[, anchor[, iterations[, borderType[, borderValue]]]]]) → dst
{% endblock %} {% block parameters %} {% endblock %} {% block notes %}

{% endblock %} {% block explanation %}

The function dilates the source image using the specified structuring element that determines the shape of a pixel neighborhood over which the maximum is taken: $$dst(x,y)=\max_{(x',y'): \text{ kernel}(x',y') \neq 0} src(x+x',y+y')$$ The function supports the in-place mode. Dilation can be applied several (iterations) times. In case of multi-channel images, each channel is processed independently.

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