Пример #1
0
        private int[] KeypointsSizes(int size)
        {
            var ret = new nuint[size];

            NativeMethods.vector_ImageFeatures_getKeypointsSize(ptr, ret);
            GC.KeepAlive(this);
            return(ret.Select(v => (int)v).ToArray());
        }
Пример #2
0
        /// <summary>
        /// vector.size()
        /// </summary>
        public IReadOnlyList <long> GetSize2()
        {
            var size1 = GetSize1();
            var size2 = new nuint[size1];

            NativeMethods.vector_vector_Point_getSize2(ptr, size2);
            GC.KeepAlive(this);
            return(size2.Select(s => (long)s).ToArray());
        }