ETcVnContourRetrievalMode

Offers retrieval modes for a contour search.

Syntax

Definition:

TYPE ETcVnContourRetrievalMode :
(
    TCVN_CRM_EXTERNAL             := 0,
    TCVN_CRM_LIST                 := 1,
    TCVN_CRM_CONNECTED_COMPONENTS := 2,
    TCVN_CRM_TREE                 := 3,
    TCVN_CRM_FLOODFILL            := 4
)DINT;
END_TYPE

Values

Name

Description

TCVN_CRM_EXTERNAL

Returns only external contours.

TCVN_CRM_LIST

Returns all found contours, not considering their hierarchy.

TCVN_CRM_CONNECTED_COMPONENTS

Returns all contours with a 2-level hierarchy (External contours are assigned level 0, internal contours level 1).

TCVN_CRM_TREE

Returns all contours and their full hierarchy.

TCVN_CRM_FLOODFILL

Returns the found contours using a floodfill algorithm (only available for DINT images).

Further information

This type specifies how the contour hierarchy is to be taken into account in the contour search.

Related functions