/// <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()); }
/// <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()); } }