Approximation method (for all the modes, except CV_RETR_RUNS, which uses built-in approximation).
Namespace: OpenCvSharp
Assembly: OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
Members
Member name | Value | Description | |
---|---|---|---|
Code | 0 | CV_CHAIN_CODE - output contours in the Freeman chain code. All other methods output polygons (sequences of vertices). | |
ApproxNone | 1 | CV_CHAIN_APPROX_NONE - translate all the points from the chain code into points; | |
ApproxSimple | 2 | CV_CHAIN_APPROX_SIMPLE - compress horizontal, vertical, and diagonal segments, that is, the function leaves only their ending points; | |
ApproxTC89L1 | 3 | CV_CHAIN_APPROX_TC89_L1 - apply one of the flavors of Teh-Chin chain approximation algorithm. | |
ApproxTC89KCOS | 4 | V_CHAIN_APPROX_TC89_KCOS - apply one of the flavors of Teh-Chin chain approximation algorithm. | |
LinkRuns | 5 | CV_LINK_RUNS - use completely different contour retrieval algorithm via linking of horizontal segments of 1’s. Only CV_RETR_LIST retrieval mode can be used with this method. |
See Also