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

cvCreateSubdivDelaunay2D() публичный статический Метод

Creates an empty Delaunay subdivision, where 2d points can be added further using function cvSubdivDelaunay2DInsert. All the points to be added must be within the specified rectangle, otherwise a runtime error will be raised.
public static cvCreateSubdivDelaunay2D ( Rectangle rect, IntPtr storage ) : IntPtr
rect Rectangle Rectangle that includes all the 2d points that are to be added to subdivision.
storage IntPtr Container for subdivision
Результат IntPtr
        public static IntPtr cvCreateSubdivDelaunay2D(Rectangle rect, IntPtr storage)
        {
            IntPtr subdiv = cvCreateSubdiv2D((int)CvEnum.SEQ_KIND.CV_SEQ_KIND_SUBDIV2D,
                 Marshal.SizeOf(typeof(MCvSubdiv2D)),
                 Marshal.SizeOf(typeof(MCvSubdiv2DPoint)),
                 Marshal.SizeOf(typeof(MCvQuadEdge2D)),
                 storage);

             cvInitSubdivDelaunay2D(subdiv, rect);
             return subdiv;
        }

Usage Example

Пример #1
0
        /// <summary>
        /// Create a planar subdivision from the given points. The ROI is computed as the minimun bounding Rectangle for the input points
        /// </summary>
        /// <param name="silent">If true, any exception during insert will be ignored</param>
        /// <param name="points">The points to be inserted to this planar subdivision</param>
        public PlanarSubdivision(PointF[] points, bool silent)
        {
            #region Find the region of interest
            _roi = PointCollection.BoundingRectangle(points);
            #endregion

            _storage = new MemStorage();
            _ptr     = CvInvoke.cvCreateSubdivDelaunay2D(_roi, _storage);

            Insert(points, silent);
        }
All Usage Examples Of Emgu.CV.CvInvoke::cvCreateSubdivDelaunay2D
CvInvoke