ETcVnContourApproximationMethod
Offers methods for contour approximation.
Syntax
Definition:
TYPE ETcVnContourApproximationMethod :
(
TCVN_CAM_NONE := 1,
TCVN_CAM_SIMPLE := 2,
TCVN_CAM_TC89_L1 := 3,
TCVN_CAM_TC89_KCOS := 4
)DINT;
END_TYPE
Values
Name |
Description |
---|---|
TCVN_CAM_NONE |
No approximation, every single point is stored, i.e. two subsequent points are always direct neighbors (horizontal, vertical or diagonal). |
TCVN_CAM_SIMPLE |
Lossless compression of segments that form straight lines in horizontal, vertical or diagonal direction leaving only their endpoints (For instance, an up-right rectangle is reduced to its four corner points.) |
TCVN_CAM_TC89_L1 |
Compression using a Teh-Chin chain approximation algorithm (IEEE-paper C. Teh, R. Chin, On the Detection of Dominant Points on Digital Curves, 1989). |
TCVN_CAM_TC89_KCOS |
Compression using a Teh-Chin chain approximation algorithm (IEEE-paper C. Teh, R. Chin, On the Detection of Dominant Points on Digital Curves, 1989). |
Further information
This type indicates whether and if so how the points describing a contour are to be simplified.
- TCVN_CAM_NONE
No simplification of the contour description, the contours are described by all enclosing points. - TCVN_CAM_SIMPLE
Lossless simplification - TCVN_CAM_TC89_L1
Simplification of contour points using the algorithm Teh-Chin chain Approximation (IEEE-paper C. Teh, R. Chin, On the Detection of Dominant Points on Digital Curves, 1989). - TCVN_CAM_TC89_KCOS
Simplification of contour points using the algorithm Teh-Chin chain Approximation (IEEE-paper C. Teh, R. Chin, On the Detection of Dominant Points on Digital Curves, 1989).