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

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

private cvConvexHull2 ( IntPtr input, IntPtr hullStorage, CvEnum orientation, int returnPoints ) : IntPtr
input IntPtr
hullStorage IntPtr
orientation CvEnum
returnPoints int
Результат IntPtr
        public static extern IntPtr cvConvexHull2(
          IntPtr input,
          IntPtr hullStorage,
          CvEnum.ORIENTATION orientation,
          int returnPoints);

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));
        }
All Usage Examples Of Emgu.CV.CvInvoke::cvConvexHull2
CvInvoke