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