Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MorphologyExOptions

Hierarchy

Index

Properties

Optional anchor

anchor: Point

Anchor position with the kernel. Negative values mean that the anchor is at the kernel center

Optional borderType

borderType: BorderTypes

border mode used to extrapolate pixels outside of the image, see [BorderTypes].

Optional borderValue

borderValue: Scalar

The color of the border.

Optional dst

dst: Mat

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.

Optional iterations

iterations: undefined | number

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.

kernel

kernel: Mat

Structuring element. It can be created using getStructuringElement.

op

op: MorphTypes

Type of a morphological operation.

src

src: Mat

Input image.

Generated using TypeDoc