Shape.cs 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504
  1. 
  2. using OpenCVForUnity.CoreModule;
  3. using OpenCVForUnity.UtilsModule;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Runtime.InteropServices;
  7. namespace OpenCVForUnity.ShapeModule
  8. {
  9. // C++: class Shape
  10. //javadoc: Shape
  11. public class Shape
  12. {
  13. //
  14. // C++: Ptr_AffineTransformer cv::createAffineTransformer(bool fullAffine)
  15. //
  16. //javadoc: createAffineTransformer(fullAffine)
  17. public static AffineTransformer createAffineTransformer (bool fullAffine)
  18. {
  19. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  20. AffineTransformer retVal = AffineTransformer.__fromPtr__(shape_Shape_createAffineTransformer_10(fullAffine));
  21. return retVal;
  22. #else
  23. return null;
  24. #endif
  25. }
  26. //
  27. // C++: Ptr_HausdorffDistanceExtractor cv::createHausdorffDistanceExtractor(int distanceFlag = cv::NORM_L2, float rankProp = 0.6f)
  28. //
  29. //javadoc: createHausdorffDistanceExtractor(distanceFlag, rankProp)
  30. public static HausdorffDistanceExtractor createHausdorffDistanceExtractor (int distanceFlag, float rankProp)
  31. {
  32. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  33. HausdorffDistanceExtractor retVal = HausdorffDistanceExtractor.__fromPtr__(shape_Shape_createHausdorffDistanceExtractor_10(distanceFlag, rankProp));
  34. return retVal;
  35. #else
  36. return null;
  37. #endif
  38. }
  39. //javadoc: createHausdorffDistanceExtractor(distanceFlag)
  40. public static HausdorffDistanceExtractor createHausdorffDistanceExtractor (int distanceFlag)
  41. {
  42. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  43. HausdorffDistanceExtractor retVal = HausdorffDistanceExtractor.__fromPtr__(shape_Shape_createHausdorffDistanceExtractor_11(distanceFlag));
  44. return retVal;
  45. #else
  46. return null;
  47. #endif
  48. }
  49. //javadoc: createHausdorffDistanceExtractor()
  50. public static HausdorffDistanceExtractor createHausdorffDistanceExtractor ()
  51. {
  52. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  53. HausdorffDistanceExtractor retVal = HausdorffDistanceExtractor.__fromPtr__(shape_Shape_createHausdorffDistanceExtractor_12());
  54. return retVal;
  55. #else
  56. return null;
  57. #endif
  58. }
  59. //
  60. // C++: Ptr_HistogramCostExtractor cv::createChiHistogramCostExtractor(int nDummies = 25, float defaultCost = 0.2f)
  61. //
  62. //javadoc: createChiHistogramCostExtractor(nDummies, defaultCost)
  63. public static HistogramCostExtractor createChiHistogramCostExtractor (int nDummies, float defaultCost)
  64. {
  65. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  66. HistogramCostExtractor retVal = HistogramCostExtractor.__fromPtr__(shape_Shape_createChiHistogramCostExtractor_10(nDummies, defaultCost));
  67. return retVal;
  68. #else
  69. return null;
  70. #endif
  71. }
  72. //javadoc: createChiHistogramCostExtractor(nDummies)
  73. public static HistogramCostExtractor createChiHistogramCostExtractor (int nDummies)
  74. {
  75. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  76. HistogramCostExtractor retVal = HistogramCostExtractor.__fromPtr__(shape_Shape_createChiHistogramCostExtractor_11(nDummies));
  77. return retVal;
  78. #else
  79. return null;
  80. #endif
  81. }
  82. //javadoc: createChiHistogramCostExtractor()
  83. public static HistogramCostExtractor createChiHistogramCostExtractor ()
  84. {
  85. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  86. HistogramCostExtractor retVal = HistogramCostExtractor.__fromPtr__(shape_Shape_createChiHistogramCostExtractor_12());
  87. return retVal;
  88. #else
  89. return null;
  90. #endif
  91. }
  92. //
  93. // C++: Ptr_HistogramCostExtractor cv::createEMDHistogramCostExtractor(int flag = DIST_L2, int nDummies = 25, float defaultCost = 0.2f)
  94. //
  95. //javadoc: createEMDHistogramCostExtractor(flag, nDummies, defaultCost)
  96. public static HistogramCostExtractor createEMDHistogramCostExtractor (int flag, int nDummies, float defaultCost)
  97. {
  98. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  99. HistogramCostExtractor retVal = HistogramCostExtractor.__fromPtr__(shape_Shape_createEMDHistogramCostExtractor_10(flag, nDummies, defaultCost));
  100. return retVal;
  101. #else
  102. return null;
  103. #endif
  104. }
  105. //javadoc: createEMDHistogramCostExtractor(flag, nDummies)
  106. public static HistogramCostExtractor createEMDHistogramCostExtractor (int flag, int nDummies)
  107. {
  108. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  109. HistogramCostExtractor retVal = HistogramCostExtractor.__fromPtr__(shape_Shape_createEMDHistogramCostExtractor_11(flag, nDummies));
  110. return retVal;
  111. #else
  112. return null;
  113. #endif
  114. }
  115. //javadoc: createEMDHistogramCostExtractor(flag)
  116. public static HistogramCostExtractor createEMDHistogramCostExtractor (int flag)
  117. {
  118. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  119. HistogramCostExtractor retVal = HistogramCostExtractor.__fromPtr__(shape_Shape_createEMDHistogramCostExtractor_12(flag));
  120. return retVal;
  121. #else
  122. return null;
  123. #endif
  124. }
  125. //javadoc: createEMDHistogramCostExtractor()
  126. public static HistogramCostExtractor createEMDHistogramCostExtractor ()
  127. {
  128. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  129. HistogramCostExtractor retVal = HistogramCostExtractor.__fromPtr__(shape_Shape_createEMDHistogramCostExtractor_13());
  130. return retVal;
  131. #else
  132. return null;
  133. #endif
  134. }
  135. //
  136. // C++: Ptr_HistogramCostExtractor cv::createEMDL1HistogramCostExtractor(int nDummies = 25, float defaultCost = 0.2f)
  137. //
  138. //javadoc: createEMDL1HistogramCostExtractor(nDummies, defaultCost)
  139. public static HistogramCostExtractor createEMDL1HistogramCostExtractor (int nDummies, float defaultCost)
  140. {
  141. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  142. HistogramCostExtractor retVal = HistogramCostExtractor.__fromPtr__(shape_Shape_createEMDL1HistogramCostExtractor_10(nDummies, defaultCost));
  143. return retVal;
  144. #else
  145. return null;
  146. #endif
  147. }
  148. //javadoc: createEMDL1HistogramCostExtractor(nDummies)
  149. public static HistogramCostExtractor createEMDL1HistogramCostExtractor (int nDummies)
  150. {
  151. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  152. HistogramCostExtractor retVal = HistogramCostExtractor.__fromPtr__(shape_Shape_createEMDL1HistogramCostExtractor_11(nDummies));
  153. return retVal;
  154. #else
  155. return null;
  156. #endif
  157. }
  158. //javadoc: createEMDL1HistogramCostExtractor()
  159. public static HistogramCostExtractor createEMDL1HistogramCostExtractor ()
  160. {
  161. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  162. HistogramCostExtractor retVal = HistogramCostExtractor.__fromPtr__(shape_Shape_createEMDL1HistogramCostExtractor_12());
  163. return retVal;
  164. #else
  165. return null;
  166. #endif
  167. }
  168. //
  169. // C++: Ptr_HistogramCostExtractor cv::createNormHistogramCostExtractor(int flag = DIST_L2, int nDummies = 25, float defaultCost = 0.2f)
  170. //
  171. //javadoc: createNormHistogramCostExtractor(flag, nDummies, defaultCost)
  172. public static HistogramCostExtractor createNormHistogramCostExtractor (int flag, int nDummies, float defaultCost)
  173. {
  174. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  175. HistogramCostExtractor retVal = HistogramCostExtractor.__fromPtr__(shape_Shape_createNormHistogramCostExtractor_10(flag, nDummies, defaultCost));
  176. return retVal;
  177. #else
  178. return null;
  179. #endif
  180. }
  181. //javadoc: createNormHistogramCostExtractor(flag, nDummies)
  182. public static HistogramCostExtractor createNormHistogramCostExtractor (int flag, int nDummies)
  183. {
  184. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  185. HistogramCostExtractor retVal = HistogramCostExtractor.__fromPtr__(shape_Shape_createNormHistogramCostExtractor_11(flag, nDummies));
  186. return retVal;
  187. #else
  188. return null;
  189. #endif
  190. }
  191. //javadoc: createNormHistogramCostExtractor(flag)
  192. public static HistogramCostExtractor createNormHistogramCostExtractor (int flag)
  193. {
  194. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  195. HistogramCostExtractor retVal = HistogramCostExtractor.__fromPtr__(shape_Shape_createNormHistogramCostExtractor_12(flag));
  196. return retVal;
  197. #else
  198. return null;
  199. #endif
  200. }
  201. //javadoc: createNormHistogramCostExtractor()
  202. public static HistogramCostExtractor createNormHistogramCostExtractor ()
  203. {
  204. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  205. HistogramCostExtractor retVal = HistogramCostExtractor.__fromPtr__(shape_Shape_createNormHistogramCostExtractor_13());
  206. return retVal;
  207. #else
  208. return null;
  209. #endif
  210. }
  211. //
  212. // C++: Ptr_ShapeContextDistanceExtractor cv::createShapeContextDistanceExtractor(int nAngularBins = 12, int nRadialBins = 4, float innerRadius = 0.2f, float outerRadius = 2, int iterations = 3, Ptr_HistogramCostExtractor comparer = createChiHistogramCostExtractor(), Ptr_ShapeTransformer transformer = createThinPlateSplineShapeTransformer())
  213. //
  214. //javadoc: createShapeContextDistanceExtractor(nAngularBins, nRadialBins, innerRadius, outerRadius, iterations, comparer, transformer)
  215. public static ShapeContextDistanceExtractor createShapeContextDistanceExtractor (int nAngularBins, int nRadialBins, float innerRadius, float outerRadius, int iterations, HistogramCostExtractor comparer, ShapeTransformer transformer)
  216. {
  217. if (comparer != null) comparer.ThrowIfDisposed ();
  218. if (transformer != null) transformer.ThrowIfDisposed ();
  219. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  220. ShapeContextDistanceExtractor retVal = ShapeContextDistanceExtractor.__fromPtr__(shape_Shape_createShapeContextDistanceExtractor_10(nAngularBins, nRadialBins, innerRadius, outerRadius, iterations, comparer.getNativeObjAddr(), transformer.getNativeObjAddr()));
  221. return retVal;
  222. #else
  223. return null;
  224. #endif
  225. }
  226. //javadoc: createShapeContextDistanceExtractor(nAngularBins, nRadialBins, innerRadius, outerRadius, iterations, comparer)
  227. public static ShapeContextDistanceExtractor createShapeContextDistanceExtractor (int nAngularBins, int nRadialBins, float innerRadius, float outerRadius, int iterations, HistogramCostExtractor comparer)
  228. {
  229. if (comparer != null) comparer.ThrowIfDisposed ();
  230. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  231. ShapeContextDistanceExtractor retVal = ShapeContextDistanceExtractor.__fromPtr__(shape_Shape_createShapeContextDistanceExtractor_11(nAngularBins, nRadialBins, innerRadius, outerRadius, iterations, comparer.getNativeObjAddr()));
  232. return retVal;
  233. #else
  234. return null;
  235. #endif
  236. }
  237. //javadoc: createShapeContextDistanceExtractor(nAngularBins, nRadialBins, innerRadius, outerRadius, iterations)
  238. public static ShapeContextDistanceExtractor createShapeContextDistanceExtractor (int nAngularBins, int nRadialBins, float innerRadius, float outerRadius, int iterations)
  239. {
  240. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  241. ShapeContextDistanceExtractor retVal = ShapeContextDistanceExtractor.__fromPtr__(shape_Shape_createShapeContextDistanceExtractor_12(nAngularBins, nRadialBins, innerRadius, outerRadius, iterations));
  242. return retVal;
  243. #else
  244. return null;
  245. #endif
  246. }
  247. //javadoc: createShapeContextDistanceExtractor(nAngularBins, nRadialBins, innerRadius, outerRadius)
  248. public static ShapeContextDistanceExtractor createShapeContextDistanceExtractor (int nAngularBins, int nRadialBins, float innerRadius, float outerRadius)
  249. {
  250. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  251. ShapeContextDistanceExtractor retVal = ShapeContextDistanceExtractor.__fromPtr__(shape_Shape_createShapeContextDistanceExtractor_13(nAngularBins, nRadialBins, innerRadius, outerRadius));
  252. return retVal;
  253. #else
  254. return null;
  255. #endif
  256. }
  257. //javadoc: createShapeContextDistanceExtractor(nAngularBins, nRadialBins, innerRadius)
  258. public static ShapeContextDistanceExtractor createShapeContextDistanceExtractor (int nAngularBins, int nRadialBins, float innerRadius)
  259. {
  260. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  261. ShapeContextDistanceExtractor retVal = ShapeContextDistanceExtractor.__fromPtr__(shape_Shape_createShapeContextDistanceExtractor_14(nAngularBins, nRadialBins, innerRadius));
  262. return retVal;
  263. #else
  264. return null;
  265. #endif
  266. }
  267. //javadoc: createShapeContextDistanceExtractor(nAngularBins, nRadialBins)
  268. public static ShapeContextDistanceExtractor createShapeContextDistanceExtractor (int nAngularBins, int nRadialBins)
  269. {
  270. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  271. ShapeContextDistanceExtractor retVal = ShapeContextDistanceExtractor.__fromPtr__(shape_Shape_createShapeContextDistanceExtractor_15(nAngularBins, nRadialBins));
  272. return retVal;
  273. #else
  274. return null;
  275. #endif
  276. }
  277. //javadoc: createShapeContextDistanceExtractor(nAngularBins)
  278. public static ShapeContextDistanceExtractor createShapeContextDistanceExtractor (int nAngularBins)
  279. {
  280. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  281. ShapeContextDistanceExtractor retVal = ShapeContextDistanceExtractor.__fromPtr__(shape_Shape_createShapeContextDistanceExtractor_16(nAngularBins));
  282. return retVal;
  283. #else
  284. return null;
  285. #endif
  286. }
  287. //javadoc: createShapeContextDistanceExtractor()
  288. public static ShapeContextDistanceExtractor createShapeContextDistanceExtractor ()
  289. {
  290. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  291. ShapeContextDistanceExtractor retVal = ShapeContextDistanceExtractor.__fromPtr__(shape_Shape_createShapeContextDistanceExtractor_17());
  292. return retVal;
  293. #else
  294. return null;
  295. #endif
  296. }
  297. //
  298. // C++: Ptr_ThinPlateSplineShapeTransformer cv::createThinPlateSplineShapeTransformer(double regularizationParameter = 0)
  299. //
  300. //javadoc: createThinPlateSplineShapeTransformer(regularizationParameter)
  301. public static ThinPlateSplineShapeTransformer createThinPlateSplineShapeTransformer (double regularizationParameter)
  302. {
  303. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  304. ThinPlateSplineShapeTransformer retVal = ThinPlateSplineShapeTransformer.__fromPtr__(shape_Shape_createThinPlateSplineShapeTransformer_10(regularizationParameter));
  305. return retVal;
  306. #else
  307. return null;
  308. #endif
  309. }
  310. //javadoc: createThinPlateSplineShapeTransformer()
  311. public static ThinPlateSplineShapeTransformer createThinPlateSplineShapeTransformer ()
  312. {
  313. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  314. ThinPlateSplineShapeTransformer retVal = ThinPlateSplineShapeTransformer.__fromPtr__(shape_Shape_createThinPlateSplineShapeTransformer_11());
  315. return retVal;
  316. #else
  317. return null;
  318. #endif
  319. }
  320. #if (UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR
  321. const string LIBNAME = "__Internal";
  322. #else
  323. const string LIBNAME = "opencvforunity";
  324. #endif
  325. // C++: Ptr_AffineTransformer cv::createAffineTransformer(bool fullAffine)
  326. [DllImport (LIBNAME)]
  327. private static extern IntPtr shape_Shape_createAffineTransformer_10 (bool fullAffine);
  328. // C++: Ptr_HausdorffDistanceExtractor cv::createHausdorffDistanceExtractor(int distanceFlag = cv::NORM_L2, float rankProp = 0.6f)
  329. [DllImport (LIBNAME)]
  330. private static extern IntPtr shape_Shape_createHausdorffDistanceExtractor_10 (int distanceFlag, float rankProp);
  331. [DllImport (LIBNAME)]
  332. private static extern IntPtr shape_Shape_createHausdorffDistanceExtractor_11 (int distanceFlag);
  333. [DllImport (LIBNAME)]
  334. private static extern IntPtr shape_Shape_createHausdorffDistanceExtractor_12 ();
  335. // C++: Ptr_HistogramCostExtractor cv::createChiHistogramCostExtractor(int nDummies = 25, float defaultCost = 0.2f)
  336. [DllImport (LIBNAME)]
  337. private static extern IntPtr shape_Shape_createChiHistogramCostExtractor_10 (int nDummies, float defaultCost);
  338. [DllImport (LIBNAME)]
  339. private static extern IntPtr shape_Shape_createChiHistogramCostExtractor_11 (int nDummies);
  340. [DllImport (LIBNAME)]
  341. private static extern IntPtr shape_Shape_createChiHistogramCostExtractor_12 ();
  342. // C++: Ptr_HistogramCostExtractor cv::createEMDHistogramCostExtractor(int flag = DIST_L2, int nDummies = 25, float defaultCost = 0.2f)
  343. [DllImport (LIBNAME)]
  344. private static extern IntPtr shape_Shape_createEMDHistogramCostExtractor_10 (int flag, int nDummies, float defaultCost);
  345. [DllImport (LIBNAME)]
  346. private static extern IntPtr shape_Shape_createEMDHistogramCostExtractor_11 (int flag, int nDummies);
  347. [DllImport (LIBNAME)]
  348. private static extern IntPtr shape_Shape_createEMDHistogramCostExtractor_12 (int flag);
  349. [DllImport (LIBNAME)]
  350. private static extern IntPtr shape_Shape_createEMDHistogramCostExtractor_13 ();
  351. // C++: Ptr_HistogramCostExtractor cv::createEMDL1HistogramCostExtractor(int nDummies = 25, float defaultCost = 0.2f)
  352. [DllImport (LIBNAME)]
  353. private static extern IntPtr shape_Shape_createEMDL1HistogramCostExtractor_10 (int nDummies, float defaultCost);
  354. [DllImport (LIBNAME)]
  355. private static extern IntPtr shape_Shape_createEMDL1HistogramCostExtractor_11 (int nDummies);
  356. [DllImport (LIBNAME)]
  357. private static extern IntPtr shape_Shape_createEMDL1HistogramCostExtractor_12 ();
  358. // C++: Ptr_HistogramCostExtractor cv::createNormHistogramCostExtractor(int flag = DIST_L2, int nDummies = 25, float defaultCost = 0.2f)
  359. [DllImport (LIBNAME)]
  360. private static extern IntPtr shape_Shape_createNormHistogramCostExtractor_10 (int flag, int nDummies, float defaultCost);
  361. [DllImport (LIBNAME)]
  362. private static extern IntPtr shape_Shape_createNormHistogramCostExtractor_11 (int flag, int nDummies);
  363. [DllImport (LIBNAME)]
  364. private static extern IntPtr shape_Shape_createNormHistogramCostExtractor_12 (int flag);
  365. [DllImport (LIBNAME)]
  366. private static extern IntPtr shape_Shape_createNormHistogramCostExtractor_13 ();
  367. // C++: Ptr_ShapeContextDistanceExtractor cv::createShapeContextDistanceExtractor(int nAngularBins = 12, int nRadialBins = 4, float innerRadius = 0.2f, float outerRadius = 2, int iterations = 3, Ptr_HistogramCostExtractor comparer = createChiHistogramCostExtractor(), Ptr_ShapeTransformer transformer = createThinPlateSplineShapeTransformer())
  368. [DllImport (LIBNAME)]
  369. private static extern IntPtr shape_Shape_createShapeContextDistanceExtractor_10 (int nAngularBins, int nRadialBins, float innerRadius, float outerRadius, int iterations, IntPtr comparer_nativeObj, IntPtr transformer_nativeObj);
  370. [DllImport (LIBNAME)]
  371. private static extern IntPtr shape_Shape_createShapeContextDistanceExtractor_11 (int nAngularBins, int nRadialBins, float innerRadius, float outerRadius, int iterations, IntPtr comparer_nativeObj);
  372. [DllImport (LIBNAME)]
  373. private static extern IntPtr shape_Shape_createShapeContextDistanceExtractor_12 (int nAngularBins, int nRadialBins, float innerRadius, float outerRadius, int iterations);
  374. [DllImport (LIBNAME)]
  375. private static extern IntPtr shape_Shape_createShapeContextDistanceExtractor_13 (int nAngularBins, int nRadialBins, float innerRadius, float outerRadius);
  376. [DllImport (LIBNAME)]
  377. private static extern IntPtr shape_Shape_createShapeContextDistanceExtractor_14 (int nAngularBins, int nRadialBins, float innerRadius);
  378. [DllImport (LIBNAME)]
  379. private static extern IntPtr shape_Shape_createShapeContextDistanceExtractor_15 (int nAngularBins, int nRadialBins);
  380. [DllImport (LIBNAME)]
  381. private static extern IntPtr shape_Shape_createShapeContextDistanceExtractor_16 (int nAngularBins);
  382. [DllImport (LIBNAME)]
  383. private static extern IntPtr shape_Shape_createShapeContextDistanceExtractor_17 ();
  384. // C++: Ptr_ThinPlateSplineShapeTransformer cv::createThinPlateSplineShapeTransformer(double regularizationParameter = 0)
  385. [DllImport (LIBNAME)]
  386. private static extern IntPtr shape_Shape_createThinPlateSplineShapeTransformer_10 (double regularizationParameter);
  387. [DllImport (LIBNAME)]
  388. private static extern IntPtr shape_Shape_createThinPlateSplineShapeTransformer_11 ();
  389. }
  390. }