示例#1
0
 /// <summary>
 /// Create a spill tree from the specific feature descriptors
 /// </summary>
 /// <param name="descriptors">The array of feature descriptors</param>
 /// <param name="naive">A good value is 50</param>
 /// <param name="rho">A good value is .7</param>
 /// <param name="tau">A good value is .1</param>
 public FeatureTree(Matrix <float> descriptors, int naive, double rho, double tau)
 {
     _descriptorMatrix = descriptors.Clone();
     _ptr = CvInvoke.cvCreateSpillTree(_descriptorMatrix.Ptr, naive, rho, tau);
 }
示例#2
0
 /// <summary>
 /// Create a k-d tree from the specific feature descriptors
 /// </summary>
 /// <param name="descriptorMatrix">The array of feature descriptors</param>
 public FeatureTree(Matrix <float> descriptorMatrix)
 {
     _descriptorMatrix = descriptorMatrix.Clone();
     _ptr = CvInvoke.cvCreateKDTree(_descriptorMatrix.Ptr);
 }