core_OutputArray_getVectorOfMat() private method

private core_OutputArray_getVectorOfMat ( IntPtr oa, IntPtr vector ) : void
oa IntPtr
vector IntPtr
return void
コード例 #1
0
        /// <summary>
        ///
        /// </summary>
        public override void AssignResult()
        {
            if (!IsReady())
            {
                throw new NotSupportedException();
            }

            using var vectorOfMat = new VectorOfMat();
            NativeMethods.HandleException(
                NativeMethods.core_OutputArray_getVectorOfMat(ptr, vectorOfMat.CvPtr));
            GC.KeepAlive(this);
            list.Clear();
            list.AddRange(vectorOfMat.ToArray());
        }
コード例 #2
0
        /// <summary>
        ///
        /// </summary>
        public override void AssignResult()
        {
            if (!IsReady())
            {
                throw new NotSupportedException();
            }

            // Matで結果取得
            using (var vectorOfMat = new VectorOfMat())
            {
                NativeMethods.core_OutputArray_getVectorOfMat(ptr, vectorOfMat.CvPtr);
                list.Clear();
                list.AddRange(vectorOfMat.ToArray());
            }
        }