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

private CvOctreeBuildTree ( IntPtr tree, IntPtr points, int numberOfPoints, int maxLevels, int minPoints ) : void
tree IntPtr
points IntPtr
numberOfPoints int
maxLevels int
minPoints int
Результат void
Пример #1
0
        /// <summary>
        /// Build an Oct-Tree from the given points
        /// </summary>
        /// <param name="points">The points to be inserted into the Oct-Tree</param>
        /// <param name="maxLevels">The maximum levels of the Oct-Tree</param>
        /// <param name="minPoints">The minimum number of points in each level</param>
        public void BuildTree(MCvPoint3D32f[] points, int maxLevels, int minPoints)
        {
            GCHandle handle = GCHandle.Alloc(points, GCHandleType.Pinned);

            CvInvoke.CvOctreeBuildTree(_ptr, handle.AddrOfPinnedObject(), points.Length, maxLevels, minPoints);
            handle.Free();
        }