Beispiel #1
0
        /// <summary>
        /// Convert the standard vector to arrays of int
        /// </summary>
        /// <returns>Arrays of int</returns>
        public MDMatch[][] ToArrayOfArray()
        {
            int size = Size;

            MDMatch[][] res = new MDMatch[size][];
            for (int i = 0; i < size; i++)
            {
                using (GpuMat v = this[i])
                {
                    res[i] = v.ToArray();
                }
            }
            return(res);
        }
Beispiel #2
0
        /// <summary>
        /// Convert the standard vector to arrays of int
        /// </summary>
        /// <returns>Arrays of int</returns>
        public Rectangle[][] ToArrayOfArray()
        {
            int size = Size;

            Rectangle[][] res = new Rectangle[size][];
            for (int i = 0; i < size; i++)
            {
                using (GpuMat v = this[i])
                {
                    res[i] = v.ToArray();
                }
            }
            return(res);
        }