ETcVnMorphologicalOperator

Offers morphological operators.

Syntax

Definition:

TYPE ETcVnMorphologicalOperator :
(
    TCVN_MO_EROSION                        := 0x0,
    TCVN_MO_DILATION                       := 0x1,
    TCVN_MO_OPENING                        := 0x2,
    TCVN_MO_CLOSING                        := 0x3,
    TCVN_MO_GRADIENT                       := 0x4,
    TCVN_MO_WHITE_TOPHAT                   := 0x5,
    TCVN_MO_BLACK_TOPHAT                   := 0x6,
    TCVN_MO_OPENING_BY_RECONSTRUCTION      := 0x40000002,
    TCVN_MO_CLOSING_BY_RECONSTRUCTION      := 0x40000003,
    TCVN_MO_WHITE_TOPHAT_BY_RECONSTRUCTION := 0x40000005,
    TCVN_MO_BLACK_TOPHAT_BY_RECONSTRUCTION := 0x40000006
)DINT;
END_TYPE

Values

Name

Description

TCVN_MO_EROSION

Shrinks objects (regions of foreground (i.e. white) pixels), removing regions smaller than the structuring element completely.

TCVN_MO_DILATION

Expands objects and thereby closes small holes inside objects.

TCVN_MO_OPENING

Applies an erosion first, a dilation second. Objects smaller than the structuring element are removed while outer shapes remain largely the same.

TCVN_MO_CLOSING

Applies a dilation first, an erosion second. Holes inside objects that fit into the structuring element are closed completely while outer shapes remain largely the same.

TCVN_MO_GRADIENT

Difference between the dilation and the erosion of an image.

TCVN_MO_WHITE_TOPHAT

Difference between an input image and its opening.

TCVN_MO_BLACK_TOPHAT

Difference between an input image and its closing.

TCVN_MO_OPENING_BY_RECONSTRUCTION

Opening with subsequent reconstruction of objects that were not removed by the opening.

TCVN_MO_CLOSING_BY_RECONSTRUCTION

Closing with subsequent reconstruction of objects that were not removed by the closing.

TCVN_MO_WHITE_TOPHAT_BY_RECONSTRUCTION

White tophat with subsequent reconstruction of objects that were not removed by the white tophat.

TCVN_MO_BLACK_TOPHAT_BY_RECONSTRUCTION

Black tophat with subsequent reconstruction of objects that were not removed by the black tophat.

Related functions