public Point[] calc_peaks (Mat im,
Point[] points,
OpenCvSharp.CvSize ssize)
{
int n = points.Length;
Mat matpoints = OpenCvSharp.CPlusPlus.MatOfPoint2f (points);
using (Mat pt = (new MatOfPoint2f (matpoints)).Reshape (1, 2 * n))
我在 Unity 上试过这段代码,它说有一个 Cs0119 错误:
Mat matpoints = OpenCvSharp.CPlusPlus.MatOfPoint2f (points)
它让我发疯!我试图删除错误行;但是它说:
错误 CS1503:参数 #1' 无法将
OpenCvSharp.CPlusPlus.Point[]
表达式转换为类型System.IntPtr