ETcVnMorphologicalOperator

Offers morphological operators.

Syntax

Definition:

enum ETcVnMorphologicalOperator : LONG
{
    MO_EROSION                        = 0x0,
    MO_DILATION                       = 0x1,
    MO_OPENING                        = 0x2,
    MO_CLOSING                        = 0x3,
    MO_GRADIENT                       = 0x4,
    MO_WHITE_TOPHAT                   = 0x5,
    MO_BLACK_TOPHAT                   = 0x6,
    MO_OPENING_BY_RECONSTRUCTION      = 0x40000002,
    MO_CLOSING_BY_RECONSTRUCTION      = 0x40000003,
    MO_WHITE_TOPHAT_BY_RECONSTRUCTION = 0x40000005,
    MO_BLACK_TOPHAT_BY_RECONSTRUCTION = 0x40000006
};

Values

Name

Description

MO_EROSION

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

MO_DILATION

Expands objects and thereby closes small holes inside objects.

MO_OPENING

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

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.

MO_GRADIENT

Difference between the dilation and the erosion of an image.

MO_WHITE_TOPHAT

Difference between an input image and its opening.

MO_BLACK_TOPHAT

Difference between an input image and its closing.

MO_OPENING_BY_RECONSTRUCTION

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

MO_CLOSING_BY_RECONSTRUCTION

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

MO_WHITE_TOPHAT_BY_RECONSTRUCTION

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

MO_BLACK_TOPHAT_BY_RECONSTRUCTION

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