Пример #1
0
 /// <summary>
 /// Returns a list of all triangles.
 /// </summary>
 /// <returns>Output vector.</returns>
 public Vec6f[] GetTriangleList()
 {
     ThrowIfDisposed();
     using var vec = new VectorOfVec6f();
     NativeMethods.HandleException(
         NativeMethods.imgproc_Subdiv2D_getTriangleList(ptr, vec.CvPtr));
     GC.KeepAlive(this);
     return(vec.ToArray());
 }
Пример #2
0
 /// <summary>
 ///
 /// </summary>
 /// <returns></returns>
 public Vec6f[] GetTriangleList()
 {
     ThrowIfDisposed();
     NativeMethods.imgproc_Subdiv2D_getTriangleList(ptr, out var p);
     GC.KeepAlive(this);
     using (var vec = new VectorOfVec6f(p))
     {
         return(vec.ToArray());
     }
 }
Пример #3
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public Vec6f[] GetTriangleList()
        {
            ThrowIfDisposed();
            IntPtr p;

            NativeMethods.imgproc_Subdiv2D_getTriangleList(ptr, out p);
            using (VectorOfVec6f vec = new VectorOfVec6f(p))
            {
                return(vec.ToArray());
            }
        }
Пример #4
0
 /// <summary>
 /// 
 /// </summary>
 /// <returns></returns>
 public Vec6f[] GetTriangleList()
 {
     if (disposed)
         throw new ObjectDisposedException("Subdiv2D", "");
     IntPtr p;
     NativeMethods.imgproc_Subdiv2D_getTriangleList(ptr, out p);
     using (VectorOfVec6f vec = new VectorOfVec6f(p))
     {
         return vec.ToArray();
     }
 }