public static extern int core_Mat_type(IntPtr self); [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl)]