border mode used to extrapolate pixels outside of the image, see [BorderTypes].
The color of the border.
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.
Generated using TypeDoc
Anchor position with the kernel. Negative values mean that the anchor is at the kernel center