NativeMethods_stitching.cs 6.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. namespace OpenCvSharp.Internal;
  7. static partial class NativeMethods
  8. {
  9. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  10. public static extern ExceptionStatus stitching_Stitcher_create(int mode, out IntPtr returnValue);
  11. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  12. public static extern ExceptionStatus stitching_Ptr_Stitcher_delete(IntPtr obj);
  13. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  14. public static extern ExceptionStatus stitching_Ptr_Stitcher_get(IntPtr obj, out IntPtr returnValue);
  15. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  16. public static extern ExceptionStatus stitching_Stitcher_registrationResol(IntPtr obj, out double returnValue);
  17. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  18. public static extern ExceptionStatus stitching_Stitcher_setRegistrationResol(IntPtr obj, double resolMpx);
  19. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  20. public static extern ExceptionStatus stitching_Stitcher_seamEstimationResol(IntPtr obj, out double returnValue);
  21. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  22. public static extern ExceptionStatus stitching_Stitcher_setSeamEstimationResol(IntPtr obj, double resolMpx);
  23. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  24. public static extern ExceptionStatus stitching_Stitcher_compositingResol(IntPtr obj, out double returnValue);
  25. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  26. public static extern ExceptionStatus stitching_Stitcher_setCompositingResol(IntPtr obj, double resolMpx);
  27. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  28. public static extern ExceptionStatus stitching_Stitcher_panoConfidenceThresh(IntPtr obj, out double returnValue);
  29. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  30. public static extern ExceptionStatus stitching_Stitcher_setPanoConfidenceThresh(IntPtr obj, double confThresh);
  31. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  32. public static extern ExceptionStatus stitching_Stitcher_waveCorrection(IntPtr obj, out int returnValue);
  33. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  34. public static extern ExceptionStatus stitching_Stitcher_setWaveCorrection(IntPtr obj, int flag);
  35. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  36. public static extern ExceptionStatus stitching_Stitcher_waveCorrectKind(IntPtr obj, out int returnValue);
  37. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  38. public static extern ExceptionStatus stitching_Stitcher_setWaveCorrectKind(IntPtr obj, int kind);
  39. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  40. public static extern ExceptionStatus stitching_Stitcher_estimateTransform_InputArray1(
  41. IntPtr obj, IntPtr images, out int returnValue);
  42. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  43. public static extern ExceptionStatus stitching_Stitcher_estimateTransform_InputArray2(
  44. IntPtr obj, IntPtr images,
  45. IntPtr[] rois, int roisSize1, int[] roisSize2, out int returnValue);
  46. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  47. public static extern ExceptionStatus stitching_Stitcher_estimateTransform_MatArray1(
  48. IntPtr obj, IntPtr[] images, int imagesSize, out int returnValue);
  49. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  50. public static extern ExceptionStatus stitching_Stitcher_estimateTransform_MatArray2(
  51. IntPtr obj, IntPtr[] images, int imagesSize,
  52. IntPtr[] rois, int roisSize1, int[] roisSize2, out int returnValue);
  53. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  54. public static extern ExceptionStatus stitching_Stitcher_composePanorama1(
  55. IntPtr obj, IntPtr pano, out int returnValue);
  56. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  57. public static extern ExceptionStatus stitching_Stitcher_composePanorama2_InputArray(
  58. IntPtr obj, IntPtr images, IntPtr pano, out int returnValue);
  59. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  60. public static extern ExceptionStatus stitching_Stitcher_composePanorama2_MatArray(
  61. IntPtr obj, IntPtr[] images, int imagesSize, IntPtr pano, out int returnValue);
  62. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  63. public static extern ExceptionStatus stitching_Stitcher_stitch1_InputArray(
  64. IntPtr obj, IntPtr images, IntPtr pano, out int returnValue);
  65. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  66. public static extern ExceptionStatus stitching_Stitcher_stitch1_MatArray(
  67. IntPtr obj, [MarshalAs(UnmanagedType.LPArray)] IntPtr[] images, int imagesSize,
  68. IntPtr pano, out int returnValue);
  69. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  70. public static extern ExceptionStatus stitching_Stitcher_stitch2_InputArray(
  71. IntPtr obj, IntPtr images,
  72. IntPtr[] rois, int roisSize1, int[] roisSize2,
  73. IntPtr pano, out int returnValue);
  74. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  75. public static extern ExceptionStatus stitching_Stitcher_stitch2_MatArray(
  76. IntPtr obj, IntPtr[] images, int imagesSize,
  77. IntPtr[] rois, int roisSize1, int[] roisSize2,
  78. IntPtr pano, out int returnValue);
  79. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  80. public static extern ExceptionStatus stitching_Stitcher_component(IntPtr obj, IntPtr returnValue);
  81. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  82. public static extern ExceptionStatus stitching_Stitcher_workScale(IntPtr obj, out double returnValue);
  83. }