Calculates the value of the matching measure for two contour trees. The similarity measure is calculated level by level from the binary tree roots. If at the certain level difference between contours becomes less than threshold, the reconstruction process is interrupted and the current difference is returned
Namespace: Emgu.CVAssembly: Emgu.CV (in Emgu.CV.dll) Version: 2.2.1.1150 (2.2.1.1150)
Syntax
C# | Visual Basic | Visual C++ |
public static double cvMatchContourTrees( IntPtr tree1, IntPtr tree2, MATCH_CONTOUR_TREE_METHOD method, double threshold )
Public Shared Function cvMatchContourTrees ( _ tree1 As IntPtr, _ tree2 As IntPtr, _ method As MATCH_CONTOUR_TREE_METHOD, _ threshold As Double _ ) As Double
public: static double cvMatchContourTrees( IntPtr tree1, IntPtr tree2, MATCH_CONTOUR_TREE_METHOD method, double threshold )
Parameters
- tree1
- IntPtr
First contour tree
- tree2
- IntPtr
Second contour tree
- method
- MATCH_CONTOUR_TREE_METHOD
Similarity measure, only CV_CONTOUR_TREES_MATCH_I1 is supported
- threshold
- Double
Similarity threshold