NativeMethods_objdetect.cs 1.6 KB

123456789101112131415161718192021222324252627282930
  1. using System.Diagnostics.Contracts;
  2. using System.Runtime.InteropServices;
  3. #pragma warning disable 1591
  4. #pragma warning disable CA1401 // P/Invokes should not be visible
  5. #pragma warning disable IDE1006 // Naming style
  6. // ReSharper disable InconsistentNaming
  7. namespace OpenCvSharp.Internal;
  8. static partial class NativeMethods
  9. {
  10. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  11. public static extern ExceptionStatus objdetect_groupRectangles1(IntPtr rectList, int groupThreshold, double eps);
  12. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  13. public static extern ExceptionStatus objdetect_groupRectangles2(IntPtr rectList, IntPtr weights, int groupThreshold, double eps);
  14. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  15. public static extern ExceptionStatus objdetect_groupRectangles3(
  16. IntPtr rectList, int groupThreshold, double eps, IntPtr weights, IntPtr levelWeights);
  17. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  18. public static extern ExceptionStatus objdetect_groupRectangles4(
  19. IntPtr rectList, IntPtr rejectLevels, IntPtr levelWeights, int groupThreshold, double eps);
  20. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  21. public static extern ExceptionStatus objdetect_groupRectangles_meanshift(
  22. IntPtr rectList, IntPtr foundWeights, IntPtr foundScales, double detectThreshold, Size winDetSize);
  23. }