NativeMethods_tracking.cs 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using System.Diagnostics.Contracts;
  2. using System.Runtime.InteropServices;
  3. using OpenCvSharp.Tracking;
  4. #pragma warning disable 1591
  5. #pragma warning disable CA1401 // P/Invokes should not be visible
  6. // ReSharper disable UnusedMember.Global
  7. // ReSharper disable IdentifierTypo
  8. // ReSharper disable CommentTypo
  9. namespace OpenCvSharp.Internal;
  10. static partial class NativeMethods
  11. {
  12. // TrackerKCF
  13. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  14. public static extern ExceptionStatus tracking_TrackerKCF_create1(out IntPtr returnValue);
  15. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  16. public static extern ExceptionStatus tracking_TrackerKCF_create2(TrackerKCF.Params parameters, out IntPtr returnValue);
  17. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  18. public static extern ExceptionStatus tracking_Ptr_TrackerKCF_delete(IntPtr ptr);
  19. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  20. public static extern ExceptionStatus tracking_Ptr_TrackerKCF_get(IntPtr ptr, out IntPtr returnValue);
  21. // TrackerCSRT
  22. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  23. public static extern ExceptionStatus tracking_TrackerCSRT_create1(out IntPtr returnValue);
  24. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  25. public static extern ExceptionStatus tracking_TrackerCSRT_create2(ref TrackerCSRT.Params parameters, out IntPtr returnValue);
  26. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  27. public static extern ExceptionStatus tracking_Ptr_TrackerCSRT_delete(IntPtr ptr);
  28. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  29. public static extern ExceptionStatus tracking_Ptr_TrackerCSRT_get(IntPtr ptr, out IntPtr returnValue);
  30. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  31. public static extern ExceptionStatus tracking_TrackerCSRT_setInitialMask(IntPtr tracker, IntPtr mask);
  32. }