ShapeContextDistanceExtractor.cs 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658
  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 ShapeContextDistanceExtractor
  10. //javadoc: ShapeContextDistanceExtractor
  11. public class ShapeContextDistanceExtractor : ShapeDistanceExtractor
  12. {
  13. protected override void Dispose (bool disposing)
  14. {
  15. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  16. try {
  17. if (disposing) {
  18. }
  19. if (IsEnabledDispose) {
  20. if (nativeObj != IntPtr.Zero)
  21. shape_ShapeContextDistanceExtractor_delete(nativeObj);
  22. nativeObj = IntPtr.Zero;
  23. }
  24. } finally {
  25. base.Dispose (disposing);
  26. }
  27. #else
  28. return;
  29. #endif
  30. }
  31. protected internal ShapeContextDistanceExtractor (IntPtr addr) : base (addr) { }
  32. // internal usage only
  33. public static new ShapeContextDistanceExtractor __fromPtr__ (IntPtr addr) { return new ShapeContextDistanceExtractor (addr); }
  34. //
  35. // C++: Ptr_HistogramCostExtractor cv::ShapeContextDistanceExtractor::getCostExtractor()
  36. //
  37. //javadoc: ShapeContextDistanceExtractor::getCostExtractor()
  38. public HistogramCostExtractor getCostExtractor ()
  39. {
  40. ThrowIfDisposed ();
  41. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  42. HistogramCostExtractor retVal = HistogramCostExtractor.__fromPtr__(shape_ShapeContextDistanceExtractor_getCostExtractor_10(nativeObj));
  43. return retVal;
  44. #else
  45. return null;
  46. #endif
  47. }
  48. //
  49. // C++: Ptr_ShapeTransformer cv::ShapeContextDistanceExtractor::getTransformAlgorithm()
  50. //
  51. //javadoc: ShapeContextDistanceExtractor::getTransformAlgorithm()
  52. public ShapeTransformer getTransformAlgorithm ()
  53. {
  54. ThrowIfDisposed ();
  55. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  56. ShapeTransformer retVal = ShapeTransformer.__fromPtr__(shape_ShapeContextDistanceExtractor_getTransformAlgorithm_10(nativeObj));
  57. return retVal;
  58. #else
  59. return null;
  60. #endif
  61. }
  62. //
  63. // C++: bool cv::ShapeContextDistanceExtractor::getRotationInvariant()
  64. //
  65. //javadoc: ShapeContextDistanceExtractor::getRotationInvariant()
  66. public bool getRotationInvariant ()
  67. {
  68. ThrowIfDisposed ();
  69. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  70. bool retVal = shape_ShapeContextDistanceExtractor_getRotationInvariant_10(nativeObj);
  71. return retVal;
  72. #else
  73. return false;
  74. #endif
  75. }
  76. //
  77. // C++: float cv::ShapeContextDistanceExtractor::getBendingEnergyWeight()
  78. //
  79. //javadoc: ShapeContextDistanceExtractor::getBendingEnergyWeight()
  80. public float getBendingEnergyWeight ()
  81. {
  82. ThrowIfDisposed ();
  83. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  84. float retVal = shape_ShapeContextDistanceExtractor_getBendingEnergyWeight_10(nativeObj);
  85. return retVal;
  86. #else
  87. return -1;
  88. #endif
  89. }
  90. //
  91. // C++: float cv::ShapeContextDistanceExtractor::getImageAppearanceWeight()
  92. //
  93. //javadoc: ShapeContextDistanceExtractor::getImageAppearanceWeight()
  94. public float getImageAppearanceWeight ()
  95. {
  96. ThrowIfDisposed ();
  97. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  98. float retVal = shape_ShapeContextDistanceExtractor_getImageAppearanceWeight_10(nativeObj);
  99. return retVal;
  100. #else
  101. return -1;
  102. #endif
  103. }
  104. //
  105. // C++: float cv::ShapeContextDistanceExtractor::getInnerRadius()
  106. //
  107. //javadoc: ShapeContextDistanceExtractor::getInnerRadius()
  108. public float getInnerRadius ()
  109. {
  110. ThrowIfDisposed ();
  111. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  112. float retVal = shape_ShapeContextDistanceExtractor_getInnerRadius_10(nativeObj);
  113. return retVal;
  114. #else
  115. return -1;
  116. #endif
  117. }
  118. //
  119. // C++: float cv::ShapeContextDistanceExtractor::getOuterRadius()
  120. //
  121. //javadoc: ShapeContextDistanceExtractor::getOuterRadius()
  122. public float getOuterRadius ()
  123. {
  124. ThrowIfDisposed ();
  125. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  126. float retVal = shape_ShapeContextDistanceExtractor_getOuterRadius_10(nativeObj);
  127. return retVal;
  128. #else
  129. return -1;
  130. #endif
  131. }
  132. //
  133. // C++: float cv::ShapeContextDistanceExtractor::getShapeContextWeight()
  134. //
  135. //javadoc: ShapeContextDistanceExtractor::getShapeContextWeight()
  136. public float getShapeContextWeight ()
  137. {
  138. ThrowIfDisposed ();
  139. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  140. float retVal = shape_ShapeContextDistanceExtractor_getShapeContextWeight_10(nativeObj);
  141. return retVal;
  142. #else
  143. return -1;
  144. #endif
  145. }
  146. //
  147. // C++: float cv::ShapeContextDistanceExtractor::getStdDev()
  148. //
  149. //javadoc: ShapeContextDistanceExtractor::getStdDev()
  150. public float getStdDev ()
  151. {
  152. ThrowIfDisposed ();
  153. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  154. float retVal = shape_ShapeContextDistanceExtractor_getStdDev_10(nativeObj);
  155. return retVal;
  156. #else
  157. return -1;
  158. #endif
  159. }
  160. //
  161. // C++: int cv::ShapeContextDistanceExtractor::getAngularBins()
  162. //
  163. //javadoc: ShapeContextDistanceExtractor::getAngularBins()
  164. public int getAngularBins ()
  165. {
  166. ThrowIfDisposed ();
  167. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  168. int retVal = shape_ShapeContextDistanceExtractor_getAngularBins_10(nativeObj);
  169. return retVal;
  170. #else
  171. return -1;
  172. #endif
  173. }
  174. //
  175. // C++: int cv::ShapeContextDistanceExtractor::getIterations()
  176. //
  177. //javadoc: ShapeContextDistanceExtractor::getIterations()
  178. public int getIterations ()
  179. {
  180. ThrowIfDisposed ();
  181. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  182. int retVal = shape_ShapeContextDistanceExtractor_getIterations_10(nativeObj);
  183. return retVal;
  184. #else
  185. return -1;
  186. #endif
  187. }
  188. //
  189. // C++: int cv::ShapeContextDistanceExtractor::getRadialBins()
  190. //
  191. //javadoc: ShapeContextDistanceExtractor::getRadialBins()
  192. public int getRadialBins ()
  193. {
  194. ThrowIfDisposed ();
  195. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  196. int retVal = shape_ShapeContextDistanceExtractor_getRadialBins_10(nativeObj);
  197. return retVal;
  198. #else
  199. return -1;
  200. #endif
  201. }
  202. //
  203. // C++: void cv::ShapeContextDistanceExtractor::getImages(Mat& image1, Mat& image2)
  204. //
  205. //javadoc: ShapeContextDistanceExtractor::getImages(image1, image2)
  206. public void getImages (Mat image1, Mat image2)
  207. {
  208. ThrowIfDisposed ();
  209. if (image1 != null) image1.ThrowIfDisposed ();
  210. if (image2 != null) image2.ThrowIfDisposed ();
  211. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  212. shape_ShapeContextDistanceExtractor_getImages_10(nativeObj, image1.nativeObj, image2.nativeObj);
  213. return;
  214. #else
  215. return;
  216. #endif
  217. }
  218. //
  219. // C++: void cv::ShapeContextDistanceExtractor::setAngularBins(int nAngularBins)
  220. //
  221. //javadoc: ShapeContextDistanceExtractor::setAngularBins(nAngularBins)
  222. public void setAngularBins (int nAngularBins)
  223. {
  224. ThrowIfDisposed ();
  225. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  226. shape_ShapeContextDistanceExtractor_setAngularBins_10(nativeObj, nAngularBins);
  227. return;
  228. #else
  229. return;
  230. #endif
  231. }
  232. //
  233. // C++: void cv::ShapeContextDistanceExtractor::setBendingEnergyWeight(float bendingEnergyWeight)
  234. //
  235. //javadoc: ShapeContextDistanceExtractor::setBendingEnergyWeight(bendingEnergyWeight)
  236. public void setBendingEnergyWeight (float bendingEnergyWeight)
  237. {
  238. ThrowIfDisposed ();
  239. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  240. shape_ShapeContextDistanceExtractor_setBendingEnergyWeight_10(nativeObj, bendingEnergyWeight);
  241. return;
  242. #else
  243. return;
  244. #endif
  245. }
  246. //
  247. // C++: void cv::ShapeContextDistanceExtractor::setCostExtractor(Ptr_HistogramCostExtractor comparer)
  248. //
  249. //javadoc: ShapeContextDistanceExtractor::setCostExtractor(comparer)
  250. public void setCostExtractor (HistogramCostExtractor comparer)
  251. {
  252. ThrowIfDisposed ();
  253. if (comparer != null) comparer.ThrowIfDisposed ();
  254. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  255. shape_ShapeContextDistanceExtractor_setCostExtractor_10(nativeObj, comparer.getNativeObjAddr());
  256. return;
  257. #else
  258. return;
  259. #endif
  260. }
  261. //
  262. // C++: void cv::ShapeContextDistanceExtractor::setImageAppearanceWeight(float imageAppearanceWeight)
  263. //
  264. //javadoc: ShapeContextDistanceExtractor::setImageAppearanceWeight(imageAppearanceWeight)
  265. public void setImageAppearanceWeight (float imageAppearanceWeight)
  266. {
  267. ThrowIfDisposed ();
  268. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  269. shape_ShapeContextDistanceExtractor_setImageAppearanceWeight_10(nativeObj, imageAppearanceWeight);
  270. return;
  271. #else
  272. return;
  273. #endif
  274. }
  275. //
  276. // C++: void cv::ShapeContextDistanceExtractor::setImages(Mat image1, Mat image2)
  277. //
  278. //javadoc: ShapeContextDistanceExtractor::setImages(image1, image2)
  279. public void setImages (Mat image1, Mat image2)
  280. {
  281. ThrowIfDisposed ();
  282. if (image1 != null) image1.ThrowIfDisposed ();
  283. if (image2 != null) image2.ThrowIfDisposed ();
  284. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  285. shape_ShapeContextDistanceExtractor_setImages_10(nativeObj, image1.nativeObj, image2.nativeObj);
  286. return;
  287. #else
  288. return;
  289. #endif
  290. }
  291. //
  292. // C++: void cv::ShapeContextDistanceExtractor::setInnerRadius(float innerRadius)
  293. //
  294. //javadoc: ShapeContextDistanceExtractor::setInnerRadius(innerRadius)
  295. public void setInnerRadius (float innerRadius)
  296. {
  297. ThrowIfDisposed ();
  298. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  299. shape_ShapeContextDistanceExtractor_setInnerRadius_10(nativeObj, innerRadius);
  300. return;
  301. #else
  302. return;
  303. #endif
  304. }
  305. //
  306. // C++: void cv::ShapeContextDistanceExtractor::setIterations(int iterations)
  307. //
  308. //javadoc: ShapeContextDistanceExtractor::setIterations(iterations)
  309. public void setIterations (int iterations)
  310. {
  311. ThrowIfDisposed ();
  312. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  313. shape_ShapeContextDistanceExtractor_setIterations_10(nativeObj, iterations);
  314. return;
  315. #else
  316. return;
  317. #endif
  318. }
  319. //
  320. // C++: void cv::ShapeContextDistanceExtractor::setOuterRadius(float outerRadius)
  321. //
  322. //javadoc: ShapeContextDistanceExtractor::setOuterRadius(outerRadius)
  323. public void setOuterRadius (float outerRadius)
  324. {
  325. ThrowIfDisposed ();
  326. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  327. shape_ShapeContextDistanceExtractor_setOuterRadius_10(nativeObj, outerRadius);
  328. return;
  329. #else
  330. return;
  331. #endif
  332. }
  333. //
  334. // C++: void cv::ShapeContextDistanceExtractor::setRadialBins(int nRadialBins)
  335. //
  336. //javadoc: ShapeContextDistanceExtractor::setRadialBins(nRadialBins)
  337. public void setRadialBins (int nRadialBins)
  338. {
  339. ThrowIfDisposed ();
  340. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  341. shape_ShapeContextDistanceExtractor_setRadialBins_10(nativeObj, nRadialBins);
  342. return;
  343. #else
  344. return;
  345. #endif
  346. }
  347. //
  348. // C++: void cv::ShapeContextDistanceExtractor::setRotationInvariant(bool rotationInvariant)
  349. //
  350. //javadoc: ShapeContextDistanceExtractor::setRotationInvariant(rotationInvariant)
  351. public void setRotationInvariant (bool rotationInvariant)
  352. {
  353. ThrowIfDisposed ();
  354. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  355. shape_ShapeContextDistanceExtractor_setRotationInvariant_10(nativeObj, rotationInvariant);
  356. return;
  357. #else
  358. return;
  359. #endif
  360. }
  361. //
  362. // C++: void cv::ShapeContextDistanceExtractor::setShapeContextWeight(float shapeContextWeight)
  363. //
  364. //javadoc: ShapeContextDistanceExtractor::setShapeContextWeight(shapeContextWeight)
  365. public void setShapeContextWeight (float shapeContextWeight)
  366. {
  367. ThrowIfDisposed ();
  368. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  369. shape_ShapeContextDistanceExtractor_setShapeContextWeight_10(nativeObj, shapeContextWeight);
  370. return;
  371. #else
  372. return;
  373. #endif
  374. }
  375. //
  376. // C++: void cv::ShapeContextDistanceExtractor::setStdDev(float sigma)
  377. //
  378. //javadoc: ShapeContextDistanceExtractor::setStdDev(sigma)
  379. public void setStdDev (float sigma)
  380. {
  381. ThrowIfDisposed ();
  382. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  383. shape_ShapeContextDistanceExtractor_setStdDev_10(nativeObj, sigma);
  384. return;
  385. #else
  386. return;
  387. #endif
  388. }
  389. //
  390. // C++: void cv::ShapeContextDistanceExtractor::setTransformAlgorithm(Ptr_ShapeTransformer transformer)
  391. //
  392. //javadoc: ShapeContextDistanceExtractor::setTransformAlgorithm(transformer)
  393. public void setTransformAlgorithm (ShapeTransformer transformer)
  394. {
  395. ThrowIfDisposed ();
  396. if (transformer != null) transformer.ThrowIfDisposed ();
  397. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  398. shape_ShapeContextDistanceExtractor_setTransformAlgorithm_10(nativeObj, transformer.getNativeObjAddr());
  399. return;
  400. #else
  401. return;
  402. #endif
  403. }
  404. #if (UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR
  405. const string LIBNAME = "__Internal";
  406. #else
  407. const string LIBNAME = "opencvforunity";
  408. #endif
  409. // C++: Ptr_HistogramCostExtractor cv::ShapeContextDistanceExtractor::getCostExtractor()
  410. [DllImport (LIBNAME)]
  411. private static extern IntPtr shape_ShapeContextDistanceExtractor_getCostExtractor_10 (IntPtr nativeObj);
  412. // C++: Ptr_ShapeTransformer cv::ShapeContextDistanceExtractor::getTransformAlgorithm()
  413. [DllImport (LIBNAME)]
  414. private static extern IntPtr shape_ShapeContextDistanceExtractor_getTransformAlgorithm_10 (IntPtr nativeObj);
  415. // C++: bool cv::ShapeContextDistanceExtractor::getRotationInvariant()
  416. [DllImport (LIBNAME)]
  417. private static extern bool shape_ShapeContextDistanceExtractor_getRotationInvariant_10 (IntPtr nativeObj);
  418. // C++: float cv::ShapeContextDistanceExtractor::getBendingEnergyWeight()
  419. [DllImport (LIBNAME)]
  420. private static extern float shape_ShapeContextDistanceExtractor_getBendingEnergyWeight_10 (IntPtr nativeObj);
  421. // C++: float cv::ShapeContextDistanceExtractor::getImageAppearanceWeight()
  422. [DllImport (LIBNAME)]
  423. private static extern float shape_ShapeContextDistanceExtractor_getImageAppearanceWeight_10 (IntPtr nativeObj);
  424. // C++: float cv::ShapeContextDistanceExtractor::getInnerRadius()
  425. [DllImport (LIBNAME)]
  426. private static extern float shape_ShapeContextDistanceExtractor_getInnerRadius_10 (IntPtr nativeObj);
  427. // C++: float cv::ShapeContextDistanceExtractor::getOuterRadius()
  428. [DllImport (LIBNAME)]
  429. private static extern float shape_ShapeContextDistanceExtractor_getOuterRadius_10 (IntPtr nativeObj);
  430. // C++: float cv::ShapeContextDistanceExtractor::getShapeContextWeight()
  431. [DllImport (LIBNAME)]
  432. private static extern float shape_ShapeContextDistanceExtractor_getShapeContextWeight_10 (IntPtr nativeObj);
  433. // C++: float cv::ShapeContextDistanceExtractor::getStdDev()
  434. [DllImport (LIBNAME)]
  435. private static extern float shape_ShapeContextDistanceExtractor_getStdDev_10 (IntPtr nativeObj);
  436. // C++: int cv::ShapeContextDistanceExtractor::getAngularBins()
  437. [DllImport (LIBNAME)]
  438. private static extern int shape_ShapeContextDistanceExtractor_getAngularBins_10 (IntPtr nativeObj);
  439. // C++: int cv::ShapeContextDistanceExtractor::getIterations()
  440. [DllImport (LIBNAME)]
  441. private static extern int shape_ShapeContextDistanceExtractor_getIterations_10 (IntPtr nativeObj);
  442. // C++: int cv::ShapeContextDistanceExtractor::getRadialBins()
  443. [DllImport (LIBNAME)]
  444. private static extern int shape_ShapeContextDistanceExtractor_getRadialBins_10 (IntPtr nativeObj);
  445. // C++: void cv::ShapeContextDistanceExtractor::getImages(Mat& image1, Mat& image2)
  446. [DllImport (LIBNAME)]
  447. private static extern void shape_ShapeContextDistanceExtractor_getImages_10 (IntPtr nativeObj, IntPtr image1_nativeObj, IntPtr image2_nativeObj);
  448. // C++: void cv::ShapeContextDistanceExtractor::setAngularBins(int nAngularBins)
  449. [DllImport (LIBNAME)]
  450. private static extern void shape_ShapeContextDistanceExtractor_setAngularBins_10 (IntPtr nativeObj, int nAngularBins);
  451. // C++: void cv::ShapeContextDistanceExtractor::setBendingEnergyWeight(float bendingEnergyWeight)
  452. [DllImport (LIBNAME)]
  453. private static extern void shape_ShapeContextDistanceExtractor_setBendingEnergyWeight_10 (IntPtr nativeObj, float bendingEnergyWeight);
  454. // C++: void cv::ShapeContextDistanceExtractor::setCostExtractor(Ptr_HistogramCostExtractor comparer)
  455. [DllImport (LIBNAME)]
  456. private static extern void shape_ShapeContextDistanceExtractor_setCostExtractor_10 (IntPtr nativeObj, IntPtr comparer_nativeObj);
  457. // C++: void cv::ShapeContextDistanceExtractor::setImageAppearanceWeight(float imageAppearanceWeight)
  458. [DllImport (LIBNAME)]
  459. private static extern void shape_ShapeContextDistanceExtractor_setImageAppearanceWeight_10 (IntPtr nativeObj, float imageAppearanceWeight);
  460. // C++: void cv::ShapeContextDistanceExtractor::setImages(Mat image1, Mat image2)
  461. [DllImport (LIBNAME)]
  462. private static extern void shape_ShapeContextDistanceExtractor_setImages_10 (IntPtr nativeObj, IntPtr image1_nativeObj, IntPtr image2_nativeObj);
  463. // C++: void cv::ShapeContextDistanceExtractor::setInnerRadius(float innerRadius)
  464. [DllImport (LIBNAME)]
  465. private static extern void shape_ShapeContextDistanceExtractor_setInnerRadius_10 (IntPtr nativeObj, float innerRadius);
  466. // C++: void cv::ShapeContextDistanceExtractor::setIterations(int iterations)
  467. [DllImport (LIBNAME)]
  468. private static extern void shape_ShapeContextDistanceExtractor_setIterations_10 (IntPtr nativeObj, int iterations);
  469. // C++: void cv::ShapeContextDistanceExtractor::setOuterRadius(float outerRadius)
  470. [DllImport (LIBNAME)]
  471. private static extern void shape_ShapeContextDistanceExtractor_setOuterRadius_10 (IntPtr nativeObj, float outerRadius);
  472. // C++: void cv::ShapeContextDistanceExtractor::setRadialBins(int nRadialBins)
  473. [DllImport (LIBNAME)]
  474. private static extern void shape_ShapeContextDistanceExtractor_setRadialBins_10 (IntPtr nativeObj, int nRadialBins);
  475. // C++: void cv::ShapeContextDistanceExtractor::setRotationInvariant(bool rotationInvariant)
  476. [DllImport (LIBNAME)]
  477. private static extern void shape_ShapeContextDistanceExtractor_setRotationInvariant_10 (IntPtr nativeObj, bool rotationInvariant);
  478. // C++: void cv::ShapeContextDistanceExtractor::setShapeContextWeight(float shapeContextWeight)
  479. [DllImport (LIBNAME)]
  480. private static extern void shape_ShapeContextDistanceExtractor_setShapeContextWeight_10 (IntPtr nativeObj, float shapeContextWeight);
  481. // C++: void cv::ShapeContextDistanceExtractor::setStdDev(float sigma)
  482. [DllImport (LIBNAME)]
  483. private static extern void shape_ShapeContextDistanceExtractor_setStdDev_10 (IntPtr nativeObj, float sigma);
  484. // C++: void cv::ShapeContextDistanceExtractor::setTransformAlgorithm(Ptr_ShapeTransformer transformer)
  485. [DllImport (LIBNAME)]
  486. private static extern void shape_ShapeContextDistanceExtractor_setTransformAlgorithm_10 (IntPtr nativeObj, IntPtr transformer_nativeObj);
  487. // native support for java finalize()
  488. [DllImport (LIBNAME)]
  489. private static extern void shape_ShapeContextDistanceExtractor_delete (IntPtr nativeObj);
  490. }
  491. }