Ejemplo n.º 1
0
        /*
         * /// <summary>
         * /// Convert the standard vector to an array of KeyPoint
         * /// </summary>
         * /// <returns>An array of KeyPoint</returns>
         * public MKeyPoint[] ToArray()
         * {
         * MKeyPoint[] res = new MKeyPoint[Size];
         * if (res.Length > 0)
         * {
         *    GCHandle handle = GCHandle.Alloc(res, GCHandleType.Pinned);
         *    CvInvoke.VectorOfKeyPointCopyData(_ptr, handle.AddrOfPinnedObject());
         *    handle.Free();
         * }
         * return res;
         * }*/

        /// <summary>
        /// Get the item in the specific index
        /// </summary>
        /// <param name="index">The index</param>
        /// <returns>The item in the specific index</returns>
        public OclInfo this[int index]
        {
            get
            {
                return(new OclInfo(OclInvoke.VectorOfOclInfoGetItem(_ptr, index)));
            }
        }