NativeMethods_stdvector.cs 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451
  1. using System.Diagnostics.Contracts;
  2. using System.Runtime.InteropServices;
  3. using OpenCvSharp.Detail;
  4. #pragma warning disable 1591
  5. #pragma warning disable CA1401 // P/Invokes should not be visible
  6. #pragma warning disable CA1707 // Underscore
  7. #pragma warning disable IDE1006 // Naming style
  8. namespace OpenCvSharp.Internal;
  9. static partial class NativeMethods
  10. {
  11. #region uchar
  12. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  13. public static extern IntPtr vector_uchar_new1();
  14. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  15. public static extern IntPtr vector_uchar_new2(nuint size);
  16. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  17. public static extern IntPtr vector_uchar_new3([In] byte[] data, nuint dataLength);
  18. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  19. public static extern nuint vector_uchar_getSize(IntPtr vector);
  20. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  21. public static extern IntPtr vector_uchar_getPointer(IntPtr vector);
  22. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  23. public static extern void vector_uchar_copy(IntPtr vector, IntPtr dst);
  24. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  25. public static extern void vector_uchar_delete(IntPtr vector);
  26. #endregion
  27. #region int
  28. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  29. public static extern IntPtr vector_int32_new1();
  30. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  31. public static extern IntPtr vector_int32_new2(nuint size);
  32. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  33. public static extern IntPtr vector_int32_new3([In] int[] data, nuint dataLength);
  34. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  35. public static extern nuint vector_int32_getSize(IntPtr vector);
  36. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  37. public static extern IntPtr vector_int32_getPointer(IntPtr vector);
  38. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  39. public static extern void vector_int32_delete(IntPtr vector);
  40. #endregion
  41. #region float
  42. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  43. public static extern IntPtr vector_float_new1();
  44. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  45. public static extern IntPtr vector_float_new2(nuint size);
  46. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  47. public static extern IntPtr vector_float_new3([In] float[] data, nuint dataLength);
  48. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  49. public static extern nuint vector_float_getSize(IntPtr vector);
  50. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  51. public static extern IntPtr vector_float_getPointer(IntPtr vector);
  52. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  53. public static extern void vector_float_delete(IntPtr vector);
  54. #endregion
  55. #region double
  56. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  57. public static extern IntPtr vector_double_new1();
  58. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  59. public static extern IntPtr vector_double_new2(nuint size);
  60. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  61. public static extern IntPtr vector_double_new3([In] double[] data, nuint dataLength);
  62. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  63. public static extern nuint vector_double_getSize(IntPtr vector);
  64. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  65. public static extern IntPtr vector_double_getPointer(IntPtr vector);
  66. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  67. public static extern void vector_double_delete(IntPtr vector);
  68. #endregion
  69. #region cv::Vec2f
  70. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  71. public static extern IntPtr vector_Vec2f_new1();
  72. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  73. public static extern nuint vector_Vec2f_getSize(IntPtr vector);
  74. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  75. public static extern IntPtr vector_Vec2f_getPointer(IntPtr vector);
  76. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  77. public static extern void vector_Vec2f_delete(IntPtr vector);
  78. #endregion
  79. #region cv::Vec3f
  80. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  81. public static extern IntPtr vector_Vec3f_new1();
  82. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  83. public static extern nuint vector_Vec3f_getSize(IntPtr vector);
  84. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  85. public static extern IntPtr vector_Vec3f_getPointer(IntPtr vector);
  86. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  87. public static extern void vector_Vec3f_delete(IntPtr vector);
  88. #endregion
  89. #region cv::Vec4f
  90. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  91. public static extern IntPtr vector_Vec4f_new1();
  92. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  93. public static extern IntPtr vector_Vec4f_new3([In] Vec4f[] data, nuint dataLength);
  94. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  95. public static extern nuint vector_Vec4f_getSize(IntPtr vector);
  96. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  97. public static extern IntPtr vector_Vec4f_getPointer(IntPtr vector);
  98. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  99. public static extern void vector_Vec4f_delete(IntPtr vector);
  100. #endregion
  101. #region cv::Vec4i
  102. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  103. public static extern IntPtr vector_Vec4i_new1();
  104. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  105. public static extern IntPtr vector_Vec4i_new3([In] Vec4i[] data, nuint dataLength);
  106. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  107. public static extern nuint vector_Vec4i_getSize(IntPtr vector);
  108. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  109. public static extern IntPtr vector_Vec4i_getPointer(IntPtr vector);
  110. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  111. public static extern void vector_Vec4i_delete(IntPtr vector);
  112. #endregion
  113. #region cv::Vec6f
  114. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  115. public static extern IntPtr vector_Vec6f_new1();
  116. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  117. public static extern nuint vector_Vec6f_getSize(IntPtr vector);
  118. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  119. public static extern IntPtr vector_Vec6f_getPointer(IntPtr vector);
  120. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  121. public static extern void vector_Vec6f_delete(IntPtr vector);
  122. #endregion
  123. #region cv::Point2i
  124. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  125. public static extern IntPtr vector_Point2i_new1();
  126. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  127. public static extern IntPtr vector_Point2i_new2(nuint size);
  128. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  129. public static extern IntPtr vector_Point2i_new3([In] Point[] data, nuint dataLength);
  130. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  131. public static extern nuint vector_Point2i_getSize(IntPtr vector);
  132. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  133. public static extern IntPtr vector_Point2i_getPointer(IntPtr vector);
  134. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  135. public static extern void vector_Point2i_delete(IntPtr vector);
  136. #endregion
  137. #region cv::Point2f
  138. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  139. public static extern IntPtr vector_Point2f_new1();
  140. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  141. public static extern IntPtr vector_Point2f_new2(nuint size);
  142. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  143. public static extern IntPtr vector_Point2f_new3([In] Point2f[] data, nuint dataLength);
  144. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  145. public static extern nuint vector_Point2f_getSize(IntPtr vector);
  146. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  147. public static extern IntPtr vector_Point2f_getPointer(IntPtr vector);
  148. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  149. public static extern void vector_Point2f_delete(IntPtr vector);
  150. #endregion
  151. #region cv::Point2d
  152. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  153. public static extern IntPtr vector_Point2d_new1();
  154. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  155. public static extern nuint vector_Point2d_getSize(IntPtr vector);
  156. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  157. public static extern IntPtr vector_Point2d_getPointer(IntPtr vector);
  158. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  159. public static extern void vector_Point2d_delete(IntPtr vector);
  160. #endregion
  161. #region cv::Point3f
  162. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  163. public static extern IntPtr vector_Point3f_new1();
  164. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  165. public static extern IntPtr vector_Point3f_new2(nuint size);
  166. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  167. public static extern IntPtr vector_Point3f_new3([In] Point3f[] data, nuint dataLength);
  168. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  169. public static extern nuint vector_Point3f_getSize(IntPtr vector);
  170. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  171. public static extern IntPtr vector_Point3f_getPointer(IntPtr vector);
  172. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  173. public static extern void vector_Point3f_delete(IntPtr vector);
  174. #endregion
  175. #region cv::Rect
  176. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  177. public static extern IntPtr vector_Rect_new1();
  178. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  179. public static extern IntPtr vector_Rect_new2(nuint size);
  180. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  181. public static extern IntPtr vector_Rect_new3([In] Rect[] data, nuint dataLength);
  182. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  183. public static extern nuint vector_Rect_getSize(IntPtr vector);
  184. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  185. public static extern IntPtr vector_Rect_getPointer(IntPtr vector);
  186. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  187. public static extern void vector_Rect_delete(IntPtr vector);
  188. #endregion
  189. #region cv::Rect2d
  190. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  191. public static extern IntPtr vector_Rect2d_new1();
  192. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  193. public static extern IntPtr vector_Rect2d_new2(nuint size);
  194. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  195. public static extern IntPtr vector_Rect2d_new3([In] Rect2d[] data, nuint dataLength);
  196. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  197. public static extern nuint vector_Rect2d_getSize(IntPtr vector);
  198. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  199. public static extern IntPtr vector_Rect2d_getPointer(IntPtr vector);
  200. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  201. public static extern void vector_Rect2d_delete(IntPtr vector);
  202. #endregion
  203. #region cv::RotatedRect
  204. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  205. public static extern IntPtr vector_RotatedRect_new1();
  206. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  207. public static extern IntPtr vector_RotatedRect_new2(nuint size);
  208. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  209. public static extern IntPtr vector_RotatedRect_new3([In] RotatedRect[] data, nuint dataLength);
  210. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  211. public static extern nuint vector_RotatedRect_getSize(IntPtr vector);
  212. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  213. public static extern IntPtr vector_RotatedRect_getPointer(IntPtr vector);
  214. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  215. public static extern void vector_RotatedRect_delete(IntPtr vector);
  216. #endregion
  217. #region cv::KeyPoint
  218. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  219. public static extern IntPtr vector_KeyPoint_new1();
  220. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  221. public static extern IntPtr vector_KeyPoint_new2(nuint size);
  222. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  223. public static extern IntPtr vector_KeyPoint_new3([In]KeyPoint[] data, nuint dataLength);
  224. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  225. public static extern nuint vector_KeyPoint_getSize(IntPtr vector);
  226. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  227. public static extern IntPtr vector_KeyPoint_getPointer(IntPtr vector);
  228. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  229. public static extern void vector_KeyPoint_delete(IntPtr vector);
  230. #endregion
  231. #region cv::KeyPoint
  232. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  233. public static extern IntPtr vector_DMatch_new1();
  234. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  235. public static extern IntPtr vector_DMatch_new2(nuint size);
  236. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  237. public static extern IntPtr vector_DMatch_new3([In] DMatch[] data, nuint dataLength);
  238. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  239. public static extern nuint vector_DMatch_getSize(IntPtr vector);
  240. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  241. public static extern IntPtr vector_DMatch_getPointer(IntPtr vector);
  242. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  243. public static extern void vector_DMatch_delete(IntPtr vector);
  244. #endregion
  245. #region cv::Mat
  246. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  247. public static extern IntPtr vector_Mat_new1();
  248. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  249. public static extern IntPtr vector_Mat_new2(uint size);
  250. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  251. public static extern IntPtr vector_Mat_new3(IntPtr[] data, uint dataLength);
  252. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  253. public static extern nuint vector_Mat_getSize(IntPtr vector);
  254. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  255. public static extern IntPtr vector_Mat_getPointer(IntPtr vector);
  256. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  257. public static extern void vector_Mat_delete(IntPtr vector);
  258. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  259. public static extern void vector_Mat_assignToArray(IntPtr vector, [MarshalAs(UnmanagedType.LPArray)] IntPtr[] arr);
  260. #endregion
  261. #region cv::ml::DTrees::Node
  262. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  263. public static extern IntPtr vector_DTrees_Node_new1();
  264. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  265. public static extern nuint vector_DTrees_Node_getSize(IntPtr vector);
  266. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  267. public static extern IntPtr vector_DTrees_Node_getPointer(IntPtr vector);
  268. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  269. public static extern void vector_DTrees_Node_delete(IntPtr vector);
  270. #endregion
  271. #region cv::ml::DTrees::Split
  272. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  273. public static extern IntPtr vector_DTrees_Split_new1();
  274. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  275. public static extern nuint vector_DTrees_Split_getSize(IntPtr vector);
  276. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  277. public static extern IntPtr vector_DTrees_Split_getPointer(IntPtr vector);
  278. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  279. public static extern void vector_DTrees_Split_delete(IntPtr vector);
  280. #endregion
  281. #region cv::detail::ImageFeatures
  282. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  283. public static extern IntPtr vector_ImageFeatures_new1();
  284. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  285. public static extern nuint vector_ImageFeatures_getSize(IntPtr vector);
  286. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  287. public static extern void vector_ImageFeatures_getKeypointsSize(
  288. IntPtr vector, [Out] nuint[] dst);
  289. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  290. public static extern void vector_ImageFeatures_getElements(IntPtr vector, [Out] WImageFeatures[] dst);
  291. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  292. public static extern void vector_ImageFeatures_delete(IntPtr vector);
  293. #endregion
  294. #region cv::line_descriptor::KeyLine
  295. #if false
  296. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  297. public static extern IntPtr vector_KeyLine_new1();
  298. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  299. public static extern nuint vector_KeyLine_getSize(IntPtr vector);
  300. //[Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  301. //public static extern void vector_KeyLine_getElements(IntPtr vector, [Out] KeyLine[] dst);
  302. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  303. public static extern IntPtr vector_KeyLine_getPointer(IntPtr vector);
  304. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  305. public static extern void vector_KeyLine_delete(IntPtr vector);
  306. #endif
  307. #endregion
  308. #region vector<uchar>
  309. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  310. public static extern IntPtr vector_vector_uchar_new1();
  311. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  312. public static extern nuint vector_vector_uchar_getSize1(IntPtr vector);
  313. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  314. public static extern void vector_vector_uchar_getSize2(IntPtr vector, [In, Out] nuint[] size);
  315. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  316. public static extern void vector_vector_uchar_copy(IntPtr vec, IntPtr[] dst);
  317. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  318. public static extern void vector_vector_uchar_delete(IntPtr vector);
  319. #endregion
  320. #region vector<int>
  321. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  322. public static extern IntPtr vector_vector_int_new1();
  323. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  324. public static extern nuint vector_vector_int_getSize1(IntPtr vector);
  325. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  326. public static extern void vector_vector_int_getSize2(IntPtr vector, [In, Out] nuint[] size);
  327. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  328. public static extern void vector_vector_int_copy(IntPtr vec, IntPtr[] dst);
  329. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  330. public static extern void vector_vector_int_delete(IntPtr vector);
  331. #endregion
  332. #region vector<double>
  333. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  334. public static extern IntPtr vector_vector_double_new1();
  335. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  336. public static extern nuint vector_vector_double_getSize1(IntPtr vector);
  337. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  338. public static extern void vector_vector_double_getSize2(IntPtr vector, [In, Out] nuint[] size);
  339. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  340. public static extern void vector_vector_double_copy(IntPtr vec, IntPtr[] dst);
  341. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  342. public static extern void vector_vector_double_delete(IntPtr vector);
  343. #endregion
  344. #region vector<cv::KeyPoint>
  345. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  346. public static extern IntPtr vector_vector_KeyPoint_new1();
  347. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  348. public static extern IntPtr vector_vector_KeyPoint_new3(
  349. IntPtr[] values, int size1, int[] size2);
  350. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  351. public static extern nuint vector_vector_KeyPoint_getSize1(IntPtr vector);
  352. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  353. public static extern void vector_vector_KeyPoint_getSize2(IntPtr vector, [In, Out] nuint[] size);
  354. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  355. public static extern void vector_vector_KeyPoint_copy(IntPtr vec, IntPtr[] dst);
  356. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  357. public static extern void vector_vector_KeyPoint_delete(IntPtr vector);
  358. #endregion
  359. #region vector<cv::DMatch>
  360. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  361. public static extern IntPtr vector_vector_DMatch_new1();
  362. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  363. public static extern nuint vector_vector_DMatch_getSize1(IntPtr vector);
  364. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  365. public static extern void vector_vector_DMatch_getSize2(IntPtr vector, [In, Out] nuint[] size);
  366. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  367. public static extern void vector_vector_DMatch_copy(IntPtr vec, IntPtr[] dst);
  368. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  369. public static extern void vector_vector_DMatch_delete(IntPtr vector);
  370. #endregion
  371. #region vector<cv::Point>
  372. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  373. public static extern IntPtr vector_vector_Point_new1();
  374. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  375. public static extern IntPtr vector_vector_Point_new2(nuint size);
  376. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  377. public static extern nuint vector_vector_Point_getSize1(IntPtr vector);
  378. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  379. public static extern void vector_vector_Point_getSize2(IntPtr vector, [In, Out] nuint[] size);
  380. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  381. public static extern void vector_vector_Point_copy(IntPtr vec, IntPtr[] dst);
  382. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  383. public static extern void vector_vector_Point_delete(IntPtr vector);
  384. #endregion
  385. #region vector<cv::Point2f>
  386. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  387. public static extern IntPtr vector_vector_Point2f_new1();
  388. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  389. public static extern nuint vector_vector_Point2f_getSize1(IntPtr vector);
  390. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  391. public static extern void vector_vector_Point2f_getSize2(IntPtr vector, [In, Out] nuint[] size);
  392. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  393. public static extern void vector_vector_Point2f_copy(IntPtr vec, IntPtr[] dst);
  394. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  395. public static extern void vector_vector_Point2f_delete(IntPtr vector);
  396. #endregion
  397. #region vector<std::string>
  398. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  399. public static extern IntPtr vector_string_new1();
  400. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  401. public static extern IntPtr vector_string_new2(nuint size);
  402. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  403. public static extern nuint vector_string_getSize(IntPtr vec);
  404. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  405. public static extern void vector_string_getElements(
  406. IntPtr vector,
  407. [MarshalAs(UnmanagedType.LPArray)] IntPtr[] cStringPointers,
  408. [MarshalAs(UnmanagedType.LPArray)] int[] stringLengths);
  409. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  410. public static extern void vector_string_delete(IntPtr vector);
  411. #endregion
  412. #region vector<cv::line_descriptor::KeyLine>
  413. #if false
  414. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  415. public static extern IntPtr vector_vector_KeyLine_new1();
  416. [Pure, DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  417. public static extern nuint vector_vector_KeyLine_getSize1(IntPtr vector);
  418. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  419. public static extern void vector_vector_KeyLine_getSize2(IntPtr vector, [In, Out] nuint[] size);
  420. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  421. public static extern void vector_vector_KeyLine_copy(IntPtr vec, IntPtr[] dst);
  422. [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
  423. public static extern void vector_vector_KeyLine_delete(IntPtr vector);
  424. #endif
  425. #endregion
  426. }