border mode used to extrapolate pixels outside of the image, see [BorderTypes].
The color of the border.
Output image. If not given it will be created. Note that you can give [src] as output image in which case the input image will be written.
The number of iterations is the number of times erosion or dilatation operation will be applied. For instance, an opening operation ([MORPH_OPEN]) with two iterations is equivalent to apply successively: erode -> erode -> dilate -> dilate (and not erode -> dilate -> erode -> dilate). By default 1.
Structuring element. It can be created using getStructuringElement.
Type of a morphological operation.
Input image.
Generated using TypeDoc
Anchor position with the kernel. Negative values mean that the anchor is at the kernel center