Show / Hide Table of Contents

Enum ContourApproximationModes

Approximation method (for all the modes, except CV_RETR_RUNS, which uses built-in approximation).

Namespace: OpenCvSharp
Assembly: OpenCvSharp.dll
Syntax
public enum ContourApproximationModes
Remarks

https://github.com/opencv/opencv/blob/d3bc563c6e01c2bc153f23e7393322a95c7d3974/modules/imgproc/include/opencv2/imgproc.hpp#L431

Fields

Name Description
ApproxNone

CHAIN_APPROX_NONE - translate all the points from the chain code into points;

ApproxSimple

CHAIN_APPROX_SIMPLE - compress horizontal, vertical, and diagonal segments, that is, the function leaves only their ending points;

ApproxTC89KCOS

CHAIN_APPROX_TC89_KCOS - apply one of the flavors of Teh-Chin chain approximation algorithm.

ApproxTC89L1

CHAIN_APPROX_TC89_L1 - apply one of the flavors of Teh-Chin chain approximation algorithm.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX