Esempio n. 1
0
 /// <summary>
 /// Converts objects array from internal representation to standard vector.
 /// </summary>
 /// <param name="objects">Objects array in internal representation.</param>
 /// <returns>Resulting array.</returns>
 public Rectangle[] Convert(IOutputArray objects)
 {
     using (OutputArray oaObjects = objects.GetOutputArray())
     using (VectorOfRect vr = new VectorOfRect())
     {
         CudaInvoke.cudaCascadeClassifierConvert(_ptr, oaObjects, vr);
         return vr.ToArray();
     }
 }