Creates binary tree representation for the input contour and returns the pointer to its root.

Namespace: Emgu.CV
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.2.1.1150 (2.2.1.1150)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static IntPtr cvCreateContourTree(
	IntPtr contour,
	IntPtr storage,
	double threshold
)
Public Shared Function cvCreateContourTree ( _
	contour As IntPtr, _
	storage As IntPtr, _
	threshold As Double _
) As IntPtr
public:
static IntPtr cvCreateContourTree(
	IntPtr contour, 
	IntPtr storage, 
	double threshold
)

Parameters

contour
IntPtr
Input contour
storage
IntPtr
Container for output tree
threshold
Double
If the parameter threshold is less than or equal to 0, the function creates full binary tree representation. If the threshold is greater than 0, the function creates representation with the precision threshold: if the vertices with the interceptive area of its base line are less than threshold, the tree should not be built any further

Return Value

The binary tree representation for the input contour

See Also