cvCreateSpillTree() private method

private cvCreateSpillTree ( IntPtr desc, int naive, double rho, double tau ) : IntPtr
desc IntPtr
naive int
rho double
tau double
return IntPtr
コード例 #1
0
ファイル: FeatureTree.cs プロジェクト: dtfirewind/UnityOpenCV
 /// <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
ファイル: FeatureTree.cs プロジェクト: dtfirewind/UnityOpenCV
 /// <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(float[][] descriptors, int naive, double rho, double tau)
 {
     _descriptorMatrix = Util.GetMatrixFromDescriptors(descriptors);
     _ptr = CvInvoke.cvCreateSpillTree(_descriptorMatrix.Ptr, naive, rho, tau);
 }