ORB.cs 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667
  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.Features2dModule
  8. {
  9. // C++: class ORB
  10. //javadoc: ORB
  11. public class ORB : Feature2D
  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. features2d_ORB_delete (nativeObj);
  22. nativeObj = IntPtr.Zero;
  23. }
  24. } finally {
  25. base.Dispose (disposing);
  26. }
  27. #else
  28. return;
  29. #endif
  30. }
  31. protected internal ORB (IntPtr addr)
  32. : base (addr)
  33. {
  34. }
  35. // internal usage only
  36. public static new ORB __fromPtr__ (IntPtr addr)
  37. {
  38. return new ORB (addr);
  39. }
  40. // C++: enum ScoreType
  41. public const int HARRIS_SCORE = 0;
  42. public const int FAST_SCORE = 1;
  43. //
  44. // C++: ORB_ScoreType cv::ORB::getScoreType()
  45. //
  46. //javadoc: ORB::getScoreType()
  47. public int getScoreType ()
  48. {
  49. ThrowIfDisposed ();
  50. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  51. int retVal = features2d_ORB_getScoreType_10 (nativeObj);
  52. return retVal;
  53. #else
  54. return -1;
  55. #endif
  56. }
  57. //
  58. // C++: static Ptr_ORB cv::ORB::create(int nfeatures = 500, float scaleFactor = 1.2f, int nlevels = 8, int edgeThreshold = 31, int firstLevel = 0, int WTA_K = 2, ORB_ScoreType scoreType = ORB::HARRIS_SCORE, int patchSize = 31, int fastThreshold = 20)
  59. //
  60. //javadoc: ORB::create(nfeatures, scaleFactor, nlevels, edgeThreshold, firstLevel, WTA_K, scoreType, patchSize, fastThreshold)
  61. public static ORB create (int nfeatures, float scaleFactor, int nlevels, int edgeThreshold, int firstLevel, int WTA_K, int scoreType, int patchSize, int fastThreshold)
  62. {
  63. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  64. ORB retVal = ORB.__fromPtr__ (features2d_ORB_create_10 (nfeatures, scaleFactor, nlevels, edgeThreshold, firstLevel, WTA_K, scoreType, patchSize, fastThreshold));
  65. return retVal;
  66. #else
  67. return null;
  68. #endif
  69. }
  70. //javadoc: ORB::create(nfeatures, scaleFactor, nlevels, edgeThreshold, firstLevel, WTA_K, scoreType, patchSize)
  71. public static ORB create (int nfeatures, float scaleFactor, int nlevels, int edgeThreshold, int firstLevel, int WTA_K, int scoreType, int patchSize)
  72. {
  73. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  74. ORB retVal = ORB.__fromPtr__ (features2d_ORB_create_11 (nfeatures, scaleFactor, nlevels, edgeThreshold, firstLevel, WTA_K, scoreType, patchSize));
  75. return retVal;
  76. #else
  77. return null;
  78. #endif
  79. }
  80. //javadoc: ORB::create(nfeatures, scaleFactor, nlevels, edgeThreshold, firstLevel, WTA_K, scoreType)
  81. public static ORB create (int nfeatures, float scaleFactor, int nlevels, int edgeThreshold, int firstLevel, int WTA_K, int scoreType)
  82. {
  83. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  84. ORB retVal = ORB.__fromPtr__ (features2d_ORB_create_12 (nfeatures, scaleFactor, nlevels, edgeThreshold, firstLevel, WTA_K, scoreType));
  85. return retVal;
  86. #else
  87. return null;
  88. #endif
  89. }
  90. //javadoc: ORB::create(nfeatures, scaleFactor, nlevels, edgeThreshold, firstLevel, WTA_K)
  91. public static ORB create (int nfeatures, float scaleFactor, int nlevels, int edgeThreshold, int firstLevel, int WTA_K)
  92. {
  93. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  94. ORB retVal = ORB.__fromPtr__ (features2d_ORB_create_13 (nfeatures, scaleFactor, nlevels, edgeThreshold, firstLevel, WTA_K));
  95. return retVal;
  96. #else
  97. return null;
  98. #endif
  99. }
  100. //javadoc: ORB::create(nfeatures, scaleFactor, nlevels, edgeThreshold, firstLevel)
  101. public static ORB create (int nfeatures, float scaleFactor, int nlevels, int edgeThreshold, int firstLevel)
  102. {
  103. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  104. ORB retVal = ORB.__fromPtr__ (features2d_ORB_create_14 (nfeatures, scaleFactor, nlevels, edgeThreshold, firstLevel));
  105. return retVal;
  106. #else
  107. return null;
  108. #endif
  109. }
  110. //javadoc: ORB::create(nfeatures, scaleFactor, nlevels, edgeThreshold)
  111. public static ORB create (int nfeatures, float scaleFactor, int nlevels, int edgeThreshold)
  112. {
  113. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  114. ORB retVal = ORB.__fromPtr__ (features2d_ORB_create_15 (nfeatures, scaleFactor, nlevels, edgeThreshold));
  115. return retVal;
  116. #else
  117. return null;
  118. #endif
  119. }
  120. //javadoc: ORB::create(nfeatures, scaleFactor, nlevels)
  121. public static ORB create (int nfeatures, float scaleFactor, int nlevels)
  122. {
  123. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  124. ORB retVal = ORB.__fromPtr__ (features2d_ORB_create_16 (nfeatures, scaleFactor, nlevels));
  125. return retVal;
  126. #else
  127. return null;
  128. #endif
  129. }
  130. //javadoc: ORB::create(nfeatures, scaleFactor)
  131. public static ORB create (int nfeatures, float scaleFactor)
  132. {
  133. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  134. ORB retVal = ORB.__fromPtr__ (features2d_ORB_create_17 (nfeatures, scaleFactor));
  135. return retVal;
  136. #else
  137. return null;
  138. #endif
  139. }
  140. //javadoc: ORB::create(nfeatures)
  141. public static ORB create (int nfeatures)
  142. {
  143. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  144. ORB retVal = ORB.__fromPtr__ (features2d_ORB_create_18 (nfeatures));
  145. return retVal;
  146. #else
  147. return null;
  148. #endif
  149. }
  150. //javadoc: ORB::create()
  151. public static ORB create ()
  152. {
  153. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  154. ORB retVal = ORB.__fromPtr__ (features2d_ORB_create_19 ());
  155. return retVal;
  156. #else
  157. return null;
  158. #endif
  159. }
  160. //
  161. // C++: String cv::ORB::getDefaultName()
  162. //
  163. //javadoc: ORB::getDefaultName()
  164. public override string getDefaultName ()
  165. {
  166. ThrowIfDisposed ();
  167. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  168. string retVal = Marshal.PtrToStringAnsi (features2d_ORB_getDefaultName_10 (nativeObj));
  169. return retVal;
  170. #else
  171. return null;
  172. #endif
  173. }
  174. //
  175. // C++: double cv::ORB::getScaleFactor()
  176. //
  177. //javadoc: ORB::getScaleFactor()
  178. public double getScaleFactor ()
  179. {
  180. ThrowIfDisposed ();
  181. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  182. double retVal = features2d_ORB_getScaleFactor_10 (nativeObj);
  183. return retVal;
  184. #else
  185. return -1;
  186. #endif
  187. }
  188. //
  189. // C++: int cv::ORB::getEdgeThreshold()
  190. //
  191. //javadoc: ORB::getEdgeThreshold()
  192. public int getEdgeThreshold ()
  193. {
  194. ThrowIfDisposed ();
  195. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  196. int retVal = features2d_ORB_getEdgeThreshold_10 (nativeObj);
  197. return retVal;
  198. #else
  199. return -1;
  200. #endif
  201. }
  202. //
  203. // C++: int cv::ORB::getFastThreshold()
  204. //
  205. //javadoc: ORB::getFastThreshold()
  206. public int getFastThreshold ()
  207. {
  208. ThrowIfDisposed ();
  209. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  210. int retVal = features2d_ORB_getFastThreshold_10 (nativeObj);
  211. return retVal;
  212. #else
  213. return -1;
  214. #endif
  215. }
  216. //
  217. // C++: int cv::ORB::getFirstLevel()
  218. //
  219. //javadoc: ORB::getFirstLevel()
  220. public int getFirstLevel ()
  221. {
  222. ThrowIfDisposed ();
  223. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  224. int retVal = features2d_ORB_getFirstLevel_10 (nativeObj);
  225. return retVal;
  226. #else
  227. return -1;
  228. #endif
  229. }
  230. //
  231. // C++: int cv::ORB::getMaxFeatures()
  232. //
  233. //javadoc: ORB::getMaxFeatures()
  234. public int getMaxFeatures ()
  235. {
  236. ThrowIfDisposed ();
  237. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  238. int retVal = features2d_ORB_getMaxFeatures_10 (nativeObj);
  239. return retVal;
  240. #else
  241. return -1;
  242. #endif
  243. }
  244. //
  245. // C++: int cv::ORB::getNLevels()
  246. //
  247. //javadoc: ORB::getNLevels()
  248. public int getNLevels ()
  249. {
  250. ThrowIfDisposed ();
  251. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  252. int retVal = features2d_ORB_getNLevels_10 (nativeObj);
  253. return retVal;
  254. #else
  255. return -1;
  256. #endif
  257. }
  258. //
  259. // C++: int cv::ORB::getPatchSize()
  260. //
  261. //javadoc: ORB::getPatchSize()
  262. public int getPatchSize ()
  263. {
  264. ThrowIfDisposed ();
  265. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  266. int retVal = features2d_ORB_getPatchSize_10 (nativeObj);
  267. return retVal;
  268. #else
  269. return -1;
  270. #endif
  271. }
  272. //
  273. // C++: int cv::ORB::getWTA_K()
  274. //
  275. //javadoc: ORB::getWTA_K()
  276. public int getWTA_K ()
  277. {
  278. ThrowIfDisposed ();
  279. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  280. int retVal = features2d_ORB_getWTA_1K_10 (nativeObj);
  281. return retVal;
  282. #else
  283. return -1;
  284. #endif
  285. }
  286. //
  287. // C++: void cv::ORB::setEdgeThreshold(int edgeThreshold)
  288. //
  289. //javadoc: ORB::setEdgeThreshold(edgeThreshold)
  290. public void setEdgeThreshold (int edgeThreshold)
  291. {
  292. ThrowIfDisposed ();
  293. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  294. features2d_ORB_setEdgeThreshold_10 (nativeObj, edgeThreshold);
  295. return;
  296. #else
  297. return;
  298. #endif
  299. }
  300. //
  301. // C++: void cv::ORB::setFastThreshold(int fastThreshold)
  302. //
  303. //javadoc: ORB::setFastThreshold(fastThreshold)
  304. public void setFastThreshold (int fastThreshold)
  305. {
  306. ThrowIfDisposed ();
  307. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  308. features2d_ORB_setFastThreshold_10 (nativeObj, fastThreshold);
  309. return;
  310. #else
  311. return;
  312. #endif
  313. }
  314. //
  315. // C++: void cv::ORB::setFirstLevel(int firstLevel)
  316. //
  317. //javadoc: ORB::setFirstLevel(firstLevel)
  318. public void setFirstLevel (int firstLevel)
  319. {
  320. ThrowIfDisposed ();
  321. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  322. features2d_ORB_setFirstLevel_10 (nativeObj, firstLevel);
  323. return;
  324. #else
  325. return;
  326. #endif
  327. }
  328. //
  329. // C++: void cv::ORB::setMaxFeatures(int maxFeatures)
  330. //
  331. //javadoc: ORB::setMaxFeatures(maxFeatures)
  332. public void setMaxFeatures (int maxFeatures)
  333. {
  334. ThrowIfDisposed ();
  335. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  336. features2d_ORB_setMaxFeatures_10 (nativeObj, maxFeatures);
  337. return;
  338. #else
  339. return;
  340. #endif
  341. }
  342. //
  343. // C++: void cv::ORB::setNLevels(int nlevels)
  344. //
  345. //javadoc: ORB::setNLevels(nlevels)
  346. public void setNLevels (int nlevels)
  347. {
  348. ThrowIfDisposed ();
  349. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  350. features2d_ORB_setNLevels_10 (nativeObj, nlevels);
  351. return;
  352. #else
  353. return;
  354. #endif
  355. }
  356. //
  357. // C++: void cv::ORB::setPatchSize(int patchSize)
  358. //
  359. //javadoc: ORB::setPatchSize(patchSize)
  360. public void setPatchSize (int patchSize)
  361. {
  362. ThrowIfDisposed ();
  363. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  364. features2d_ORB_setPatchSize_10 (nativeObj, patchSize);
  365. return;
  366. #else
  367. return;
  368. #endif
  369. }
  370. //
  371. // C++: void cv::ORB::setScaleFactor(double scaleFactor)
  372. //
  373. //javadoc: ORB::setScaleFactor(scaleFactor)
  374. public void setScaleFactor (double scaleFactor)
  375. {
  376. ThrowIfDisposed ();
  377. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  378. features2d_ORB_setScaleFactor_10 (nativeObj, scaleFactor);
  379. return;
  380. #else
  381. return;
  382. #endif
  383. }
  384. //
  385. // C++: void cv::ORB::setScoreType(ORB_ScoreType scoreType)
  386. //
  387. //javadoc: ORB::setScoreType(scoreType)
  388. public void setScoreType (int scoreType)
  389. {
  390. ThrowIfDisposed ();
  391. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  392. features2d_ORB_setScoreType_10 (nativeObj, scoreType);
  393. return;
  394. #else
  395. return;
  396. #endif
  397. }
  398. //
  399. // C++: void cv::ORB::setWTA_K(int wta_k)
  400. //
  401. //javadoc: ORB::setWTA_K(wta_k)
  402. public void setWTA_K (int wta_k)
  403. {
  404. ThrowIfDisposed ();
  405. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  406. features2d_ORB_setWTA_1K_10 (nativeObj, wta_k);
  407. return;
  408. #else
  409. return;
  410. #endif
  411. }
  412. #if (UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR
  413. const string LIBNAME = "__Internal";
  414. #else
  415. const string LIBNAME = "opencvforunity";
  416. #endif
  417. // C++: ORB_ScoreType cv::ORB::getScoreType()
  418. [DllImport (LIBNAME)]
  419. private static extern int features2d_ORB_getScoreType_10 (IntPtr nativeObj);
  420. // C++: static Ptr_ORB cv::ORB::create(int nfeatures = 500, float scaleFactor = 1.2f, int nlevels = 8, int edgeThreshold = 31, int firstLevel = 0, int WTA_K = 2, ORB_ScoreType scoreType = ORB::HARRIS_SCORE, int patchSize = 31, int fastThreshold = 20)
  421. [DllImport (LIBNAME)]
  422. private static extern IntPtr features2d_ORB_create_10 (int nfeatures, float scaleFactor, int nlevels, int edgeThreshold, int firstLevel, int WTA_K, int scoreType, int patchSize, int fastThreshold);
  423. [DllImport (LIBNAME)]
  424. private static extern IntPtr features2d_ORB_create_11 (int nfeatures, float scaleFactor, int nlevels, int edgeThreshold, int firstLevel, int WTA_K, int scoreType, int patchSize);
  425. [DllImport (LIBNAME)]
  426. private static extern IntPtr features2d_ORB_create_12 (int nfeatures, float scaleFactor, int nlevels, int edgeThreshold, int firstLevel, int WTA_K, int scoreType);
  427. [DllImport (LIBNAME)]
  428. private static extern IntPtr features2d_ORB_create_13 (int nfeatures, float scaleFactor, int nlevels, int edgeThreshold, int firstLevel, int WTA_K);
  429. [DllImport (LIBNAME)]
  430. private static extern IntPtr features2d_ORB_create_14 (int nfeatures, float scaleFactor, int nlevels, int edgeThreshold, int firstLevel);
  431. [DllImport (LIBNAME)]
  432. private static extern IntPtr features2d_ORB_create_15 (int nfeatures, float scaleFactor, int nlevels, int edgeThreshold);
  433. [DllImport (LIBNAME)]
  434. private static extern IntPtr features2d_ORB_create_16 (int nfeatures, float scaleFactor, int nlevels);
  435. [DllImport (LIBNAME)]
  436. private static extern IntPtr features2d_ORB_create_17 (int nfeatures, float scaleFactor);
  437. [DllImport (LIBNAME)]
  438. private static extern IntPtr features2d_ORB_create_18 (int nfeatures);
  439. [DllImport (LIBNAME)]
  440. private static extern IntPtr features2d_ORB_create_19 ();
  441. // C++: String cv::ORB::getDefaultName()
  442. [DllImport (LIBNAME)]
  443. private static extern IntPtr features2d_ORB_getDefaultName_10 (IntPtr nativeObj);
  444. // C++: double cv::ORB::getScaleFactor()
  445. [DllImport (LIBNAME)]
  446. private static extern double features2d_ORB_getScaleFactor_10 (IntPtr nativeObj);
  447. // C++: int cv::ORB::getEdgeThreshold()
  448. [DllImport (LIBNAME)]
  449. private static extern int features2d_ORB_getEdgeThreshold_10 (IntPtr nativeObj);
  450. // C++: int cv::ORB::getFastThreshold()
  451. [DllImport (LIBNAME)]
  452. private static extern int features2d_ORB_getFastThreshold_10 (IntPtr nativeObj);
  453. // C++: int cv::ORB::getFirstLevel()
  454. [DllImport (LIBNAME)]
  455. private static extern int features2d_ORB_getFirstLevel_10 (IntPtr nativeObj);
  456. // C++: int cv::ORB::getMaxFeatures()
  457. [DllImport (LIBNAME)]
  458. private static extern int features2d_ORB_getMaxFeatures_10 (IntPtr nativeObj);
  459. // C++: int cv::ORB::getNLevels()
  460. [DllImport (LIBNAME)]
  461. private static extern int features2d_ORB_getNLevels_10 (IntPtr nativeObj);
  462. // C++: int cv::ORB::getPatchSize()
  463. [DllImport (LIBNAME)]
  464. private static extern int features2d_ORB_getPatchSize_10 (IntPtr nativeObj);
  465. // C++: int cv::ORB::getWTA_K()
  466. [DllImport (LIBNAME)]
  467. private static extern int features2d_ORB_getWTA_1K_10 (IntPtr nativeObj);
  468. // C++: void cv::ORB::setEdgeThreshold(int edgeThreshold)
  469. [DllImport (LIBNAME)]
  470. private static extern void features2d_ORB_setEdgeThreshold_10 (IntPtr nativeObj, int edgeThreshold);
  471. // C++: void cv::ORB::setFastThreshold(int fastThreshold)
  472. [DllImport (LIBNAME)]
  473. private static extern void features2d_ORB_setFastThreshold_10 (IntPtr nativeObj, int fastThreshold);
  474. // C++: void cv::ORB::setFirstLevel(int firstLevel)
  475. [DllImport (LIBNAME)]
  476. private static extern void features2d_ORB_setFirstLevel_10 (IntPtr nativeObj, int firstLevel);
  477. // C++: void cv::ORB::setMaxFeatures(int maxFeatures)
  478. [DllImport (LIBNAME)]
  479. private static extern void features2d_ORB_setMaxFeatures_10 (IntPtr nativeObj, int maxFeatures);
  480. // C++: void cv::ORB::setNLevels(int nlevels)
  481. [DllImport (LIBNAME)]
  482. private static extern void features2d_ORB_setNLevels_10 (IntPtr nativeObj, int nlevels);
  483. // C++: void cv::ORB::setPatchSize(int patchSize)
  484. [DllImport (LIBNAME)]
  485. private static extern void features2d_ORB_setPatchSize_10 (IntPtr nativeObj, int patchSize);
  486. // C++: void cv::ORB::setScaleFactor(double scaleFactor)
  487. [DllImport (LIBNAME)]
  488. private static extern void features2d_ORB_setScaleFactor_10 (IntPtr nativeObj, double scaleFactor);
  489. // C++: void cv::ORB::setScoreType(ORB_ScoreType scoreType)
  490. [DllImport (LIBNAME)]
  491. private static extern void features2d_ORB_setScoreType_10 (IntPtr nativeObj, int scoreType);
  492. // C++: void cv::ORB::setWTA_K(int wta_k)
  493. [DllImport (LIBNAME)]
  494. private static extern void features2d_ORB_setWTA_1K_10 (IntPtr nativeObj, int wta_k);
  495. // native support for java finalize()
  496. [DllImport (LIBNAME)]
  497. private static extern void features2d_ORB_delete (IntPtr nativeObj);
  498. }
  499. }