Emgu.CV.CvInvoke.cvConvexityDefects C# (CSharp) Метод

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

private cvConvexityDefects ( IntPtr contour, IntPtr convexhull, IntPtr storage ) : IntPtr
contour IntPtr
convexhull IntPtr
storage IntPtr
Результат IntPtr
        public static extern IntPtr cvConvexityDefects(
         IntPtr contour,
         IntPtr convexhull,
         IntPtr storage);

Usage Example

Пример #1
0
        /// <summary>
        /// Finds all convexity defects of the input contour and returns a sequence of the CvConvexityDefect structures.
        /// </summary>
        /// <param name="storage">Container for output sequence of convexity defects. If it is NULL, contour or hull (in that order) storage is used.</param>
        /// <param name="orientation">Orientation where the convexity Defacts is returned.</param>
        /// <returns>The sequence of the CvConvexityDefect structures.</returns>
        public Seq <MCvConvexityDefect> GetConvexityDefacts(MemStorage storage, Emgu.CV.CvEnum.ORIENTATION orientation)
        {
            MemStorage stor       = storage ?? Storage;
            IntPtr     convexHull = CvInvoke.cvConvexHull2(Ptr, stor, orientation, 0);
            IntPtr     seq        = CvInvoke.cvConvexityDefects(Ptr, convexHull, stor);

            return(new Seq <MCvConvexityDefect>(seq, stor));
        }
CvInvoke