public static extern int core_Mat_nGetPoint2d(IntPtr obj, int row, int col, [In, Out, MarshalAs(UnmanagedType.LPArray)] Point2d[] vals, int valsLength); [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl)]