cvLatentSvmDetectObjects() приватный Метод

private cvLatentSvmDetectObjects ( IntPtr image, IntPtr detector, IntPtr storage, float overlapThreshold, int numThreads ) : IntPtr
image IntPtr
detector IntPtr
storage IntPtr
overlapThreshold float
numThreads int
Результат IntPtr
Пример #1
0
 /// <summary>
 /// Find rectangular regions in the given image that are likely to contain objects and corresponding confidence levels
 /// </summary>
 /// <param name="image">The image to detect objects in</param>
 /// <param name="overlapThreshold">Threshold for the non-maximum suppression algorithm, Use default value of 0.5</param>
 /// <returns>Array of detected objects</returns>
 public MCvObjectDetection[] Detect(Image <Bgr, Byte> image, float overlapThreshold)
 {
     using (MemStorage stor = new MemStorage())
     {
         IntPtr seqPtr = CvInvoke.cvLatentSvmDetectObjects(image, Ptr, stor, overlapThreshold, -1);
         if (seqPtr == IntPtr.Zero)
         {
             return(new MCvObjectDetection[0]);
         }
         Seq <MCvObjectDetection> seq = new Seq <MCvObjectDetection>(seqPtr, stor);
         return(seq.ToArray());
     }
 }