Enum RetrievalModes
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
mode of the contour retrieval algorithm
[SuppressMessage("Microsoft.Design", "CA1717: Only FlagsAttribute enums should have plural names")]
public enum RetrievalModes
Fields
CComp = 2retrieves 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 = 0retrieves only the extreme outer contours. It sets
hierarchy[i][2]=hierarchy[i][3]=-1for all the contours.FloodFill = 4List = 1retrieves all of the contours without establishing any hierarchical relationships.
Tree = 3retrieves all of the contours and reconstructs a full hierarchy of nested contours.