:param dst: output image of the same size and type as ``src``.
- :param element: structuring element used for dilation; if ``element=Mat()`` , a ``3 x 3`` rectangular structuring element is used.
+ :param kernel: structuring element used for dilation; if ``element=Mat()`` , a ``3 x 3`` rectangular structuring element is used. Kernel can be created using :ocv:func:`getStructuringElement`
:param anchor: position of the anchor within the element; default value ``(-1, -1)`` means that the anchor is at the element center.
:ocv:func:`erode`,
:ocv:func:`morphologyEx`,
:ocv:func:`createMorphologyFilter`
-
+ :ocv:func:`getStructuringElement`
+
erode
-----
:param dst: output image of the same size and type as ``src``.
- :param element: structuring element used for erosion; if ``element=Mat()`` , a ``3 x 3`` rectangular structuring element is used.
+ :param kernel: structuring element used for erosion; if ``element=Mat()`` , a ``3 x 3`` rectangular structuring element is used. Kernel can be created using :ocv:func:`getStructuringElement`.
:param anchor: position of the anchor within the element; default value ``(-1, -1)`` means that the anchor is at the element center.
:ocv:func:`dilate`,
:ocv:func:`morphologyEx`,
- :ocv:func:`createMorphologyFilter`
+ :ocv:func:`createMorphologyFilter`,
+ :ocv:func:`getStructuringElement`
:param dst: Destination image of the same size and type as ``src`` .
- :param element: Structuring element.
+ :param kernel: Structuring element. It can be created using :ocv:func:`getStructuringElement`.
+
+ :param anchor: Anchor position with the kernel. Negative values mean that the anchor is at the kernel center.
:param op: Type of a morphological operation that can be one of the following:
:ocv:func:`dilate`,
:ocv:func:`erode`,
- :ocv:func:`createMorphologyFilter`
+ :ocv:func:`createMorphologyFilter`,
+ :ocv:func:`getStructuringElement`
Laplacian