예제 #1
0
 /// <summary>
 /// Set the SVM detector
 /// </summary>
 /// <param name="detector">The SVM detector</param>
 public void SetSVMDetector(float[] detector)
 {
     using (VectorOfFloat vec = new VectorOfFloat())
     {
         vec.Push(detector);
         CvInvoke.CvHOGSetSVMDetector(_ptr, vec);
     }
 }
예제 #2
0
 /// <summary>
 /// Set the SVM detector
 /// </summary>
 /// <param name="detector">The SVM detector</param>
 public void SetSVMDetector(float[] detector)
 {
     _vector.Clear();
     _vector.Push(detector);
     CvHOGSetSVMDetector(_ptr, _vector);
 }