Params.cs 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921
  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 Params
  10. //javadoc: Params
  11. public class Params : DisposableOpenCVObject
  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_Params_delete(nativeObj);
  22. nativeObj = IntPtr.Zero;
  23. }
  24. } finally {
  25. base.Dispose (disposing);
  26. }
  27. #else
  28. return;
  29. #endif
  30. }
  31. protected internal Params (IntPtr addr) : base (addr) { }
  32. public IntPtr getNativeObjAddr () { return nativeObj; }
  33. // internal usage only
  34. public static Params __fromPtr__ (IntPtr addr) { return new Params (addr); }
  35. //
  36. // C++: cv::SimpleBlobDetector::Params::Params()
  37. //
  38. //javadoc: Params::Params()
  39. public Params ()
  40. {
  41. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  42. nativeObj = features2d_Params_Params_10();
  43. return;
  44. #else
  45. return null;
  46. #endif
  47. }
  48. //
  49. // C++: float Params::thresholdStep
  50. //
  51. //javadoc: Params::get_thresholdStep()
  52. public float get_thresholdStep ()
  53. {
  54. ThrowIfDisposed ();
  55. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  56. float retVal = features2d_Params_get_1thresholdStep_10(nativeObj);
  57. return retVal;
  58. #else
  59. return -1;
  60. #endif
  61. }
  62. //
  63. // C++: void Params::thresholdStep
  64. //
  65. //javadoc: Params::set_thresholdStep(thresholdStep)
  66. public void set_thresholdStep (float thresholdStep)
  67. {
  68. ThrowIfDisposed ();
  69. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  70. features2d_Params_set_1thresholdStep_10(nativeObj, thresholdStep);
  71. return;
  72. #else
  73. return;
  74. #endif
  75. }
  76. //
  77. // C++: float Params::minThreshold
  78. //
  79. //javadoc: Params::get_minThreshold()
  80. public float get_minThreshold ()
  81. {
  82. ThrowIfDisposed ();
  83. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  84. float retVal = features2d_Params_get_1minThreshold_10(nativeObj);
  85. return retVal;
  86. #else
  87. return -1;
  88. #endif
  89. }
  90. //
  91. // C++: void Params::minThreshold
  92. //
  93. //javadoc: Params::set_minThreshold(minThreshold)
  94. public void set_minThreshold (float minThreshold)
  95. {
  96. ThrowIfDisposed ();
  97. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  98. features2d_Params_set_1minThreshold_10(nativeObj, minThreshold);
  99. return;
  100. #else
  101. return;
  102. #endif
  103. }
  104. //
  105. // C++: float Params::maxThreshold
  106. //
  107. //javadoc: Params::get_maxThreshold()
  108. public float get_maxThreshold ()
  109. {
  110. ThrowIfDisposed ();
  111. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  112. float retVal = features2d_Params_get_1maxThreshold_10(nativeObj);
  113. return retVal;
  114. #else
  115. return -1;
  116. #endif
  117. }
  118. //
  119. // C++: void Params::maxThreshold
  120. //
  121. //javadoc: Params::set_maxThreshold(maxThreshold)
  122. public void set_maxThreshold (float maxThreshold)
  123. {
  124. ThrowIfDisposed ();
  125. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  126. features2d_Params_set_1maxThreshold_10(nativeObj, maxThreshold);
  127. return;
  128. #else
  129. return;
  130. #endif
  131. }
  132. //
  133. // C++: size_t Params::minRepeatability
  134. //
  135. //javadoc: Params::get_minRepeatability()
  136. public long get_minRepeatability ()
  137. {
  138. ThrowIfDisposed ();
  139. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  140. long retVal = features2d_Params_get_1minRepeatability_10(nativeObj);
  141. return retVal;
  142. #else
  143. return -1;
  144. #endif
  145. }
  146. //
  147. // C++: void Params::minRepeatability
  148. //
  149. //javadoc: Params::set_minRepeatability(minRepeatability)
  150. public void set_minRepeatability (long minRepeatability)
  151. {
  152. ThrowIfDisposed ();
  153. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  154. features2d_Params_set_1minRepeatability_10(nativeObj, minRepeatability);
  155. return;
  156. #else
  157. return;
  158. #endif
  159. }
  160. //
  161. // C++: float Params::minDistBetweenBlobs
  162. //
  163. //javadoc: Params::get_minDistBetweenBlobs()
  164. public float get_minDistBetweenBlobs ()
  165. {
  166. ThrowIfDisposed ();
  167. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  168. float retVal = features2d_Params_get_1minDistBetweenBlobs_10(nativeObj);
  169. return retVal;
  170. #else
  171. return -1;
  172. #endif
  173. }
  174. //
  175. // C++: void Params::minDistBetweenBlobs
  176. //
  177. //javadoc: Params::set_minDistBetweenBlobs(minDistBetweenBlobs)
  178. public void set_minDistBetweenBlobs (float minDistBetweenBlobs)
  179. {
  180. ThrowIfDisposed ();
  181. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  182. features2d_Params_set_1minDistBetweenBlobs_10(nativeObj, minDistBetweenBlobs);
  183. return;
  184. #else
  185. return;
  186. #endif
  187. }
  188. //
  189. // C++: bool Params::filterByColor
  190. //
  191. //javadoc: Params::get_filterByColor()
  192. public bool get_filterByColor ()
  193. {
  194. ThrowIfDisposed ();
  195. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  196. bool retVal = features2d_Params_get_1filterByColor_10(nativeObj);
  197. return retVal;
  198. #else
  199. return false;
  200. #endif
  201. }
  202. //
  203. // C++: void Params::filterByColor
  204. //
  205. //javadoc: Params::set_filterByColor(filterByColor)
  206. public void set_filterByColor (bool filterByColor)
  207. {
  208. ThrowIfDisposed ();
  209. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  210. features2d_Params_set_1filterByColor_10(nativeObj, filterByColor);
  211. return;
  212. #else
  213. return;
  214. #endif
  215. }
  216. //
  217. // C++: uchar Params::blobColor
  218. //
  219. // Return type 'uchar' is not supported, skipping the function
  220. //
  221. // C++: void Params::blobColor
  222. //
  223. // Unknown type 'uchar' (I), skipping the function
  224. //
  225. // C++: bool Params::filterByArea
  226. //
  227. //javadoc: Params::get_filterByArea()
  228. public bool get_filterByArea ()
  229. {
  230. ThrowIfDisposed ();
  231. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  232. bool retVal = features2d_Params_get_1filterByArea_10(nativeObj);
  233. return retVal;
  234. #else
  235. return false;
  236. #endif
  237. }
  238. //
  239. // C++: void Params::filterByArea
  240. //
  241. //javadoc: Params::set_filterByArea(filterByArea)
  242. public void set_filterByArea (bool filterByArea)
  243. {
  244. ThrowIfDisposed ();
  245. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  246. features2d_Params_set_1filterByArea_10(nativeObj, filterByArea);
  247. return;
  248. #else
  249. return;
  250. #endif
  251. }
  252. //
  253. // C++: float Params::minArea
  254. //
  255. //javadoc: Params::get_minArea()
  256. public float get_minArea ()
  257. {
  258. ThrowIfDisposed ();
  259. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  260. float retVal = features2d_Params_get_1minArea_10(nativeObj);
  261. return retVal;
  262. #else
  263. return -1;
  264. #endif
  265. }
  266. //
  267. // C++: void Params::minArea
  268. //
  269. //javadoc: Params::set_minArea(minArea)
  270. public void set_minArea (float minArea)
  271. {
  272. ThrowIfDisposed ();
  273. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  274. features2d_Params_set_1minArea_10(nativeObj, minArea);
  275. return;
  276. #else
  277. return;
  278. #endif
  279. }
  280. //
  281. // C++: float Params::maxArea
  282. //
  283. //javadoc: Params::get_maxArea()
  284. public float get_maxArea ()
  285. {
  286. ThrowIfDisposed ();
  287. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  288. float retVal = features2d_Params_get_1maxArea_10(nativeObj);
  289. return retVal;
  290. #else
  291. return -1;
  292. #endif
  293. }
  294. //
  295. // C++: void Params::maxArea
  296. //
  297. //javadoc: Params::set_maxArea(maxArea)
  298. public void set_maxArea (float maxArea)
  299. {
  300. ThrowIfDisposed ();
  301. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  302. features2d_Params_set_1maxArea_10(nativeObj, maxArea);
  303. return;
  304. #else
  305. return;
  306. #endif
  307. }
  308. //
  309. // C++: bool Params::filterByCircularity
  310. //
  311. //javadoc: Params::get_filterByCircularity()
  312. public bool get_filterByCircularity ()
  313. {
  314. ThrowIfDisposed ();
  315. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  316. bool retVal = features2d_Params_get_1filterByCircularity_10(nativeObj);
  317. return retVal;
  318. #else
  319. return false;
  320. #endif
  321. }
  322. //
  323. // C++: void Params::filterByCircularity
  324. //
  325. //javadoc: Params::set_filterByCircularity(filterByCircularity)
  326. public void set_filterByCircularity (bool filterByCircularity)
  327. {
  328. ThrowIfDisposed ();
  329. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  330. features2d_Params_set_1filterByCircularity_10(nativeObj, filterByCircularity);
  331. return;
  332. #else
  333. return;
  334. #endif
  335. }
  336. //
  337. // C++: float Params::minCircularity
  338. //
  339. //javadoc: Params::get_minCircularity()
  340. public float get_minCircularity ()
  341. {
  342. ThrowIfDisposed ();
  343. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  344. float retVal = features2d_Params_get_1minCircularity_10(nativeObj);
  345. return retVal;
  346. #else
  347. return -1;
  348. #endif
  349. }
  350. //
  351. // C++: void Params::minCircularity
  352. //
  353. //javadoc: Params::set_minCircularity(minCircularity)
  354. public void set_minCircularity (float minCircularity)
  355. {
  356. ThrowIfDisposed ();
  357. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  358. features2d_Params_set_1minCircularity_10(nativeObj, minCircularity);
  359. return;
  360. #else
  361. return;
  362. #endif
  363. }
  364. //
  365. // C++: float Params::maxCircularity
  366. //
  367. //javadoc: Params::get_maxCircularity()
  368. public float get_maxCircularity ()
  369. {
  370. ThrowIfDisposed ();
  371. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  372. float retVal = features2d_Params_get_1maxCircularity_10(nativeObj);
  373. return retVal;
  374. #else
  375. return -1;
  376. #endif
  377. }
  378. //
  379. // C++: void Params::maxCircularity
  380. //
  381. //javadoc: Params::set_maxCircularity(maxCircularity)
  382. public void set_maxCircularity (float maxCircularity)
  383. {
  384. ThrowIfDisposed ();
  385. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  386. features2d_Params_set_1maxCircularity_10(nativeObj, maxCircularity);
  387. return;
  388. #else
  389. return;
  390. #endif
  391. }
  392. //
  393. // C++: bool Params::filterByInertia
  394. //
  395. //javadoc: Params::get_filterByInertia()
  396. public bool get_filterByInertia ()
  397. {
  398. ThrowIfDisposed ();
  399. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  400. bool retVal = features2d_Params_get_1filterByInertia_10(nativeObj);
  401. return retVal;
  402. #else
  403. return false;
  404. #endif
  405. }
  406. //
  407. // C++: void Params::filterByInertia
  408. //
  409. //javadoc: Params::set_filterByInertia(filterByInertia)
  410. public void set_filterByInertia (bool filterByInertia)
  411. {
  412. ThrowIfDisposed ();
  413. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  414. features2d_Params_set_1filterByInertia_10(nativeObj, filterByInertia);
  415. return;
  416. #else
  417. return;
  418. #endif
  419. }
  420. //
  421. // C++: float Params::minInertiaRatio
  422. //
  423. //javadoc: Params::get_minInertiaRatio()
  424. public float get_minInertiaRatio ()
  425. {
  426. ThrowIfDisposed ();
  427. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  428. float retVal = features2d_Params_get_1minInertiaRatio_10(nativeObj);
  429. return retVal;
  430. #else
  431. return -1;
  432. #endif
  433. }
  434. //
  435. // C++: void Params::minInertiaRatio
  436. //
  437. //javadoc: Params::set_minInertiaRatio(minInertiaRatio)
  438. public void set_minInertiaRatio (float minInertiaRatio)
  439. {
  440. ThrowIfDisposed ();
  441. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  442. features2d_Params_set_1minInertiaRatio_10(nativeObj, minInertiaRatio);
  443. return;
  444. #else
  445. return;
  446. #endif
  447. }
  448. //
  449. // C++: float Params::maxInertiaRatio
  450. //
  451. //javadoc: Params::get_maxInertiaRatio()
  452. public float get_maxInertiaRatio ()
  453. {
  454. ThrowIfDisposed ();
  455. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  456. float retVal = features2d_Params_get_1maxInertiaRatio_10(nativeObj);
  457. return retVal;
  458. #else
  459. return -1;
  460. #endif
  461. }
  462. //
  463. // C++: void Params::maxInertiaRatio
  464. //
  465. //javadoc: Params::set_maxInertiaRatio(maxInertiaRatio)
  466. public void set_maxInertiaRatio (float maxInertiaRatio)
  467. {
  468. ThrowIfDisposed ();
  469. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  470. features2d_Params_set_1maxInertiaRatio_10(nativeObj, maxInertiaRatio);
  471. return;
  472. #else
  473. return;
  474. #endif
  475. }
  476. //
  477. // C++: bool Params::filterByConvexity
  478. //
  479. //javadoc: Params::get_filterByConvexity()
  480. public bool get_filterByConvexity ()
  481. {
  482. ThrowIfDisposed ();
  483. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  484. bool retVal = features2d_Params_get_1filterByConvexity_10(nativeObj);
  485. return retVal;
  486. #else
  487. return false;
  488. #endif
  489. }
  490. //
  491. // C++: void Params::filterByConvexity
  492. //
  493. //javadoc: Params::set_filterByConvexity(filterByConvexity)
  494. public void set_filterByConvexity (bool filterByConvexity)
  495. {
  496. ThrowIfDisposed ();
  497. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  498. features2d_Params_set_1filterByConvexity_10(nativeObj, filterByConvexity);
  499. return;
  500. #else
  501. return;
  502. #endif
  503. }
  504. //
  505. // C++: float Params::minConvexity
  506. //
  507. //javadoc: Params::get_minConvexity()
  508. public float get_minConvexity ()
  509. {
  510. ThrowIfDisposed ();
  511. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  512. float retVal = features2d_Params_get_1minConvexity_10(nativeObj);
  513. return retVal;
  514. #else
  515. return -1;
  516. #endif
  517. }
  518. //
  519. // C++: void Params::minConvexity
  520. //
  521. //javadoc: Params::set_minConvexity(minConvexity)
  522. public void set_minConvexity (float minConvexity)
  523. {
  524. ThrowIfDisposed ();
  525. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  526. features2d_Params_set_1minConvexity_10(nativeObj, minConvexity);
  527. return;
  528. #else
  529. return;
  530. #endif
  531. }
  532. //
  533. // C++: float Params::maxConvexity
  534. //
  535. //javadoc: Params::get_maxConvexity()
  536. public float get_maxConvexity ()
  537. {
  538. ThrowIfDisposed ();
  539. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  540. float retVal = features2d_Params_get_1maxConvexity_10(nativeObj);
  541. return retVal;
  542. #else
  543. return -1;
  544. #endif
  545. }
  546. //
  547. // C++: void Params::maxConvexity
  548. //
  549. //javadoc: Params::set_maxConvexity(maxConvexity)
  550. public void set_maxConvexity (float maxConvexity)
  551. {
  552. ThrowIfDisposed ();
  553. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  554. features2d_Params_set_1maxConvexity_10(nativeObj, maxConvexity);
  555. return;
  556. #else
  557. return;
  558. #endif
  559. }
  560. #if (UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR
  561. const string LIBNAME = "__Internal";
  562. #else
  563. const string LIBNAME = "opencvforunity";
  564. #endif
  565. // C++: cv::SimpleBlobDetector::Params::Params()
  566. [DllImport (LIBNAME)]
  567. private static extern IntPtr features2d_Params_Params_10 ();
  568. // C++: float Params::thresholdStep
  569. [DllImport (LIBNAME)]
  570. private static extern float features2d_Params_get_1thresholdStep_10 (IntPtr nativeObj);
  571. // C++: void Params::thresholdStep
  572. [DllImport (LIBNAME)]
  573. private static extern void features2d_Params_set_1thresholdStep_10 (IntPtr nativeObj, float thresholdStep);
  574. // C++: float Params::minThreshold
  575. [DllImport (LIBNAME)]
  576. private static extern float features2d_Params_get_1minThreshold_10 (IntPtr nativeObj);
  577. // C++: void Params::minThreshold
  578. [DllImport (LIBNAME)]
  579. private static extern void features2d_Params_set_1minThreshold_10 (IntPtr nativeObj, float minThreshold);
  580. // C++: float Params::maxThreshold
  581. [DllImport (LIBNAME)]
  582. private static extern float features2d_Params_get_1maxThreshold_10 (IntPtr nativeObj);
  583. // C++: void Params::maxThreshold
  584. [DllImport (LIBNAME)]
  585. private static extern void features2d_Params_set_1maxThreshold_10 (IntPtr nativeObj, float maxThreshold);
  586. // C++: size_t Params::minRepeatability
  587. [DllImport (LIBNAME)]
  588. private static extern long features2d_Params_get_1minRepeatability_10 (IntPtr nativeObj);
  589. // C++: void Params::minRepeatability
  590. [DllImport (LIBNAME)]
  591. private static extern void features2d_Params_set_1minRepeatability_10 (IntPtr nativeObj, long minRepeatability);
  592. // C++: float Params::minDistBetweenBlobs
  593. [DllImport (LIBNAME)]
  594. private static extern float features2d_Params_get_1minDistBetweenBlobs_10 (IntPtr nativeObj);
  595. // C++: void Params::minDistBetweenBlobs
  596. [DllImport (LIBNAME)]
  597. private static extern void features2d_Params_set_1minDistBetweenBlobs_10 (IntPtr nativeObj, float minDistBetweenBlobs);
  598. // C++: bool Params::filterByColor
  599. [DllImport (LIBNAME)]
  600. private static extern bool features2d_Params_get_1filterByColor_10 (IntPtr nativeObj);
  601. // C++: void Params::filterByColor
  602. [DllImport (LIBNAME)]
  603. private static extern void features2d_Params_set_1filterByColor_10 (IntPtr nativeObj, bool filterByColor);
  604. // C++: bool Params::filterByArea
  605. [DllImport (LIBNAME)]
  606. private static extern bool features2d_Params_get_1filterByArea_10 (IntPtr nativeObj);
  607. // C++: void Params::filterByArea
  608. [DllImport (LIBNAME)]
  609. private static extern void features2d_Params_set_1filterByArea_10 (IntPtr nativeObj, bool filterByArea);
  610. // C++: float Params::minArea
  611. [DllImport (LIBNAME)]
  612. private static extern float features2d_Params_get_1minArea_10 (IntPtr nativeObj);
  613. // C++: void Params::minArea
  614. [DllImport (LIBNAME)]
  615. private static extern void features2d_Params_set_1minArea_10 (IntPtr nativeObj, float minArea);
  616. // C++: float Params::maxArea
  617. [DllImport (LIBNAME)]
  618. private static extern float features2d_Params_get_1maxArea_10 (IntPtr nativeObj);
  619. // C++: void Params::maxArea
  620. [DllImport (LIBNAME)]
  621. private static extern void features2d_Params_set_1maxArea_10 (IntPtr nativeObj, float maxArea);
  622. // C++: bool Params::filterByCircularity
  623. [DllImport (LIBNAME)]
  624. private static extern bool features2d_Params_get_1filterByCircularity_10 (IntPtr nativeObj);
  625. // C++: void Params::filterByCircularity
  626. [DllImport (LIBNAME)]
  627. private static extern void features2d_Params_set_1filterByCircularity_10 (IntPtr nativeObj, bool filterByCircularity);
  628. // C++: float Params::minCircularity
  629. [DllImport (LIBNAME)]
  630. private static extern float features2d_Params_get_1minCircularity_10 (IntPtr nativeObj);
  631. // C++: void Params::minCircularity
  632. [DllImport (LIBNAME)]
  633. private static extern void features2d_Params_set_1minCircularity_10 (IntPtr nativeObj, float minCircularity);
  634. // C++: float Params::maxCircularity
  635. [DllImport (LIBNAME)]
  636. private static extern float features2d_Params_get_1maxCircularity_10 (IntPtr nativeObj);
  637. // C++: void Params::maxCircularity
  638. [DllImport (LIBNAME)]
  639. private static extern void features2d_Params_set_1maxCircularity_10 (IntPtr nativeObj, float maxCircularity);
  640. // C++: bool Params::filterByInertia
  641. [DllImport (LIBNAME)]
  642. private static extern bool features2d_Params_get_1filterByInertia_10 (IntPtr nativeObj);
  643. // C++: void Params::filterByInertia
  644. [DllImport (LIBNAME)]
  645. private static extern void features2d_Params_set_1filterByInertia_10 (IntPtr nativeObj, bool filterByInertia);
  646. // C++: float Params::minInertiaRatio
  647. [DllImport (LIBNAME)]
  648. private static extern float features2d_Params_get_1minInertiaRatio_10 (IntPtr nativeObj);
  649. // C++: void Params::minInertiaRatio
  650. [DllImport (LIBNAME)]
  651. private static extern void features2d_Params_set_1minInertiaRatio_10 (IntPtr nativeObj, float minInertiaRatio);
  652. // C++: float Params::maxInertiaRatio
  653. [DllImport (LIBNAME)]
  654. private static extern float features2d_Params_get_1maxInertiaRatio_10 (IntPtr nativeObj);
  655. // C++: void Params::maxInertiaRatio
  656. [DllImport (LIBNAME)]
  657. private static extern void features2d_Params_set_1maxInertiaRatio_10 (IntPtr nativeObj, float maxInertiaRatio);
  658. // C++: bool Params::filterByConvexity
  659. [DllImport (LIBNAME)]
  660. private static extern bool features2d_Params_get_1filterByConvexity_10 (IntPtr nativeObj);
  661. // C++: void Params::filterByConvexity
  662. [DllImport (LIBNAME)]
  663. private static extern void features2d_Params_set_1filterByConvexity_10 (IntPtr nativeObj, bool filterByConvexity);
  664. // C++: float Params::minConvexity
  665. [DllImport (LIBNAME)]
  666. private static extern float features2d_Params_get_1minConvexity_10 (IntPtr nativeObj);
  667. // C++: void Params::minConvexity
  668. [DllImport (LIBNAME)]
  669. private static extern void features2d_Params_set_1minConvexity_10 (IntPtr nativeObj, float minConvexity);
  670. // C++: float Params::maxConvexity
  671. [DllImport (LIBNAME)]
  672. private static extern float features2d_Params_get_1maxConvexity_10 (IntPtr nativeObj);
  673. // C++: void Params::maxConvexity
  674. [DllImport (LIBNAME)]
  675. private static extern void features2d_Params_set_1maxConvexity_10 (IntPtr nativeObj, float maxConvexity);
  676. // native support for java finalize()
  677. [DllImport (LIBNAME)]
  678. private static extern void features2d_Params_delete (IntPtr nativeObj);
  679. }
  680. }