Show / Hide Table of Contents

Enum RetrievalModes

mode of the contour retrieval algorithm

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

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

Fields

Name Description
CComp

retrieves all of the contours and organizes them into a two-level hierarchy. At the top level, there are external boundaries of the components. At the second level, there are boundaries of the holes. If there is another contour inside a hole of a connected component, it is still put at the top level.

External

retrieves only the extreme outer contours. It sets hierarchy[i][2]=hierarchy[i][3]=-1 for all the contours.

FloodFill
List

retrieves all of the contours without establishing any hierarchical relationships.

Tree

retrieves all of the contours and reconstructs a full hierarchy of nested contours.

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