DetectorParameters.cs 44 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367
  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.ArucoModule
  8. {
  9. // C++: class DetectorParameters
  10. //javadoc: DetectorParameters
  11. public class DetectorParameters : 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. aruco_DetectorParameters_delete(nativeObj);
  22. nativeObj = IntPtr.Zero;
  23. }
  24. } finally {
  25. base.Dispose (disposing);
  26. }
  27. #else
  28. return;
  29. #endif
  30. }
  31. protected internal DetectorParameters (IntPtr addr) : base (addr) { }
  32. public IntPtr getNativeObjAddr () { return nativeObj; }
  33. // internal usage only
  34. public static DetectorParameters __fromPtr__ (IntPtr addr) { return new DetectorParameters (addr); }
  35. //
  36. // C++: static Ptr_DetectorParameters cv::aruco::DetectorParameters::create()
  37. //
  38. //javadoc: DetectorParameters::create()
  39. public static DetectorParameters create ()
  40. {
  41. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  42. DetectorParameters retVal = DetectorParameters.__fromPtr__(aruco_DetectorParameters_create_10());
  43. return retVal;
  44. #else
  45. return null;
  46. #endif
  47. }
  48. //
  49. // C++: int DetectorParameters::adaptiveThreshWinSizeMin
  50. //
  51. //javadoc: DetectorParameters::get_adaptiveThreshWinSizeMin()
  52. public int get_adaptiveThreshWinSizeMin ()
  53. {
  54. ThrowIfDisposed ();
  55. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  56. int retVal = aruco_DetectorParameters_get_1adaptiveThreshWinSizeMin_10(nativeObj);
  57. return retVal;
  58. #else
  59. return -1;
  60. #endif
  61. }
  62. //
  63. // C++: void DetectorParameters::adaptiveThreshWinSizeMin
  64. //
  65. //javadoc: DetectorParameters::set_adaptiveThreshWinSizeMin(adaptiveThreshWinSizeMin)
  66. public void set_adaptiveThreshWinSizeMin (int adaptiveThreshWinSizeMin)
  67. {
  68. ThrowIfDisposed ();
  69. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  70. aruco_DetectorParameters_set_1adaptiveThreshWinSizeMin_10(nativeObj, adaptiveThreshWinSizeMin);
  71. return;
  72. #else
  73. return;
  74. #endif
  75. }
  76. //
  77. // C++: int DetectorParameters::adaptiveThreshWinSizeMax
  78. //
  79. //javadoc: DetectorParameters::get_adaptiveThreshWinSizeMax()
  80. public int get_adaptiveThreshWinSizeMax ()
  81. {
  82. ThrowIfDisposed ();
  83. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  84. int retVal = aruco_DetectorParameters_get_1adaptiveThreshWinSizeMax_10(nativeObj);
  85. return retVal;
  86. #else
  87. return -1;
  88. #endif
  89. }
  90. //
  91. // C++: void DetectorParameters::adaptiveThreshWinSizeMax
  92. //
  93. //javadoc: DetectorParameters::set_adaptiveThreshWinSizeMax(adaptiveThreshWinSizeMax)
  94. public void set_adaptiveThreshWinSizeMax (int adaptiveThreshWinSizeMax)
  95. {
  96. ThrowIfDisposed ();
  97. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  98. aruco_DetectorParameters_set_1adaptiveThreshWinSizeMax_10(nativeObj, adaptiveThreshWinSizeMax);
  99. return;
  100. #else
  101. return;
  102. #endif
  103. }
  104. //
  105. // C++: int DetectorParameters::adaptiveThreshWinSizeStep
  106. //
  107. //javadoc: DetectorParameters::get_adaptiveThreshWinSizeStep()
  108. public int get_adaptiveThreshWinSizeStep ()
  109. {
  110. ThrowIfDisposed ();
  111. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  112. int retVal = aruco_DetectorParameters_get_1adaptiveThreshWinSizeStep_10(nativeObj);
  113. return retVal;
  114. #else
  115. return -1;
  116. #endif
  117. }
  118. //
  119. // C++: void DetectorParameters::adaptiveThreshWinSizeStep
  120. //
  121. //javadoc: DetectorParameters::set_adaptiveThreshWinSizeStep(adaptiveThreshWinSizeStep)
  122. public void set_adaptiveThreshWinSizeStep (int adaptiveThreshWinSizeStep)
  123. {
  124. ThrowIfDisposed ();
  125. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  126. aruco_DetectorParameters_set_1adaptiveThreshWinSizeStep_10(nativeObj, adaptiveThreshWinSizeStep);
  127. return;
  128. #else
  129. return;
  130. #endif
  131. }
  132. //
  133. // C++: double DetectorParameters::adaptiveThreshConstant
  134. //
  135. //javadoc: DetectorParameters::get_adaptiveThreshConstant()
  136. public double get_adaptiveThreshConstant ()
  137. {
  138. ThrowIfDisposed ();
  139. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  140. double retVal = aruco_DetectorParameters_get_1adaptiveThreshConstant_10(nativeObj);
  141. return retVal;
  142. #else
  143. return -1;
  144. #endif
  145. }
  146. //
  147. // C++: void DetectorParameters::adaptiveThreshConstant
  148. //
  149. //javadoc: DetectorParameters::set_adaptiveThreshConstant(adaptiveThreshConstant)
  150. public void set_adaptiveThreshConstant (double adaptiveThreshConstant)
  151. {
  152. ThrowIfDisposed ();
  153. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  154. aruco_DetectorParameters_set_1adaptiveThreshConstant_10(nativeObj, adaptiveThreshConstant);
  155. return;
  156. #else
  157. return;
  158. #endif
  159. }
  160. //
  161. // C++: double DetectorParameters::minMarkerPerimeterRate
  162. //
  163. //javadoc: DetectorParameters::get_minMarkerPerimeterRate()
  164. public double get_minMarkerPerimeterRate ()
  165. {
  166. ThrowIfDisposed ();
  167. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  168. double retVal = aruco_DetectorParameters_get_1minMarkerPerimeterRate_10(nativeObj);
  169. return retVal;
  170. #else
  171. return -1;
  172. #endif
  173. }
  174. //
  175. // C++: void DetectorParameters::minMarkerPerimeterRate
  176. //
  177. //javadoc: DetectorParameters::set_minMarkerPerimeterRate(minMarkerPerimeterRate)
  178. public void set_minMarkerPerimeterRate (double minMarkerPerimeterRate)
  179. {
  180. ThrowIfDisposed ();
  181. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  182. aruco_DetectorParameters_set_1minMarkerPerimeterRate_10(nativeObj, minMarkerPerimeterRate);
  183. return;
  184. #else
  185. return;
  186. #endif
  187. }
  188. //
  189. // C++: double DetectorParameters::maxMarkerPerimeterRate
  190. //
  191. //javadoc: DetectorParameters::get_maxMarkerPerimeterRate()
  192. public double get_maxMarkerPerimeterRate ()
  193. {
  194. ThrowIfDisposed ();
  195. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  196. double retVal = aruco_DetectorParameters_get_1maxMarkerPerimeterRate_10(nativeObj);
  197. return retVal;
  198. #else
  199. return -1;
  200. #endif
  201. }
  202. //
  203. // C++: void DetectorParameters::maxMarkerPerimeterRate
  204. //
  205. //javadoc: DetectorParameters::set_maxMarkerPerimeterRate(maxMarkerPerimeterRate)
  206. public void set_maxMarkerPerimeterRate (double maxMarkerPerimeterRate)
  207. {
  208. ThrowIfDisposed ();
  209. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  210. aruco_DetectorParameters_set_1maxMarkerPerimeterRate_10(nativeObj, maxMarkerPerimeterRate);
  211. return;
  212. #else
  213. return;
  214. #endif
  215. }
  216. //
  217. // C++: double DetectorParameters::polygonalApproxAccuracyRate
  218. //
  219. //javadoc: DetectorParameters::get_polygonalApproxAccuracyRate()
  220. public double get_polygonalApproxAccuracyRate ()
  221. {
  222. ThrowIfDisposed ();
  223. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  224. double retVal = aruco_DetectorParameters_get_1polygonalApproxAccuracyRate_10(nativeObj);
  225. return retVal;
  226. #else
  227. return -1;
  228. #endif
  229. }
  230. //
  231. // C++: void DetectorParameters::polygonalApproxAccuracyRate
  232. //
  233. //javadoc: DetectorParameters::set_polygonalApproxAccuracyRate(polygonalApproxAccuracyRate)
  234. public void set_polygonalApproxAccuracyRate (double polygonalApproxAccuracyRate)
  235. {
  236. ThrowIfDisposed ();
  237. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  238. aruco_DetectorParameters_set_1polygonalApproxAccuracyRate_10(nativeObj, polygonalApproxAccuracyRate);
  239. return;
  240. #else
  241. return;
  242. #endif
  243. }
  244. //
  245. // C++: double DetectorParameters::minCornerDistanceRate
  246. //
  247. //javadoc: DetectorParameters::get_minCornerDistanceRate()
  248. public double get_minCornerDistanceRate ()
  249. {
  250. ThrowIfDisposed ();
  251. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  252. double retVal = aruco_DetectorParameters_get_1minCornerDistanceRate_10(nativeObj);
  253. return retVal;
  254. #else
  255. return -1;
  256. #endif
  257. }
  258. //
  259. // C++: void DetectorParameters::minCornerDistanceRate
  260. //
  261. //javadoc: DetectorParameters::set_minCornerDistanceRate(minCornerDistanceRate)
  262. public void set_minCornerDistanceRate (double minCornerDistanceRate)
  263. {
  264. ThrowIfDisposed ();
  265. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  266. aruco_DetectorParameters_set_1minCornerDistanceRate_10(nativeObj, minCornerDistanceRate);
  267. return;
  268. #else
  269. return;
  270. #endif
  271. }
  272. //
  273. // C++: int DetectorParameters::minDistanceToBorder
  274. //
  275. //javadoc: DetectorParameters::get_minDistanceToBorder()
  276. public int get_minDistanceToBorder ()
  277. {
  278. ThrowIfDisposed ();
  279. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  280. int retVal = aruco_DetectorParameters_get_1minDistanceToBorder_10(nativeObj);
  281. return retVal;
  282. #else
  283. return -1;
  284. #endif
  285. }
  286. //
  287. // C++: void DetectorParameters::minDistanceToBorder
  288. //
  289. //javadoc: DetectorParameters::set_minDistanceToBorder(minDistanceToBorder)
  290. public void set_minDistanceToBorder (int minDistanceToBorder)
  291. {
  292. ThrowIfDisposed ();
  293. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  294. aruco_DetectorParameters_set_1minDistanceToBorder_10(nativeObj, minDistanceToBorder);
  295. return;
  296. #else
  297. return;
  298. #endif
  299. }
  300. //
  301. // C++: double DetectorParameters::minMarkerDistanceRate
  302. //
  303. //javadoc: DetectorParameters::get_minMarkerDistanceRate()
  304. public double get_minMarkerDistanceRate ()
  305. {
  306. ThrowIfDisposed ();
  307. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  308. double retVal = aruco_DetectorParameters_get_1minMarkerDistanceRate_10(nativeObj);
  309. return retVal;
  310. #else
  311. return -1;
  312. #endif
  313. }
  314. //
  315. // C++: void DetectorParameters::minMarkerDistanceRate
  316. //
  317. //javadoc: DetectorParameters::set_minMarkerDistanceRate(minMarkerDistanceRate)
  318. public void set_minMarkerDistanceRate (double minMarkerDistanceRate)
  319. {
  320. ThrowIfDisposed ();
  321. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  322. aruco_DetectorParameters_set_1minMarkerDistanceRate_10(nativeObj, minMarkerDistanceRate);
  323. return;
  324. #else
  325. return;
  326. #endif
  327. }
  328. //
  329. // C++: int DetectorParameters::cornerRefinementMethod
  330. //
  331. //javadoc: DetectorParameters::get_cornerRefinementMethod()
  332. public int get_cornerRefinementMethod ()
  333. {
  334. ThrowIfDisposed ();
  335. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  336. int retVal = aruco_DetectorParameters_get_1cornerRefinementMethod_10(nativeObj);
  337. return retVal;
  338. #else
  339. return -1;
  340. #endif
  341. }
  342. //
  343. // C++: void DetectorParameters::cornerRefinementMethod
  344. //
  345. //javadoc: DetectorParameters::set_cornerRefinementMethod(cornerRefinementMethod)
  346. public void set_cornerRefinementMethod (int cornerRefinementMethod)
  347. {
  348. ThrowIfDisposed ();
  349. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  350. aruco_DetectorParameters_set_1cornerRefinementMethod_10(nativeObj, cornerRefinementMethod);
  351. return;
  352. #else
  353. return;
  354. #endif
  355. }
  356. //
  357. // C++: int DetectorParameters::cornerRefinementWinSize
  358. //
  359. //javadoc: DetectorParameters::get_cornerRefinementWinSize()
  360. public int get_cornerRefinementWinSize ()
  361. {
  362. ThrowIfDisposed ();
  363. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  364. int retVal = aruco_DetectorParameters_get_1cornerRefinementWinSize_10(nativeObj);
  365. return retVal;
  366. #else
  367. return -1;
  368. #endif
  369. }
  370. //
  371. // C++: void DetectorParameters::cornerRefinementWinSize
  372. //
  373. //javadoc: DetectorParameters::set_cornerRefinementWinSize(cornerRefinementWinSize)
  374. public void set_cornerRefinementWinSize (int cornerRefinementWinSize)
  375. {
  376. ThrowIfDisposed ();
  377. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  378. aruco_DetectorParameters_set_1cornerRefinementWinSize_10(nativeObj, cornerRefinementWinSize);
  379. return;
  380. #else
  381. return;
  382. #endif
  383. }
  384. //
  385. // C++: int DetectorParameters::cornerRefinementMaxIterations
  386. //
  387. //javadoc: DetectorParameters::get_cornerRefinementMaxIterations()
  388. public int get_cornerRefinementMaxIterations ()
  389. {
  390. ThrowIfDisposed ();
  391. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  392. int retVal = aruco_DetectorParameters_get_1cornerRefinementMaxIterations_10(nativeObj);
  393. return retVal;
  394. #else
  395. return -1;
  396. #endif
  397. }
  398. //
  399. // C++: void DetectorParameters::cornerRefinementMaxIterations
  400. //
  401. //javadoc: DetectorParameters::set_cornerRefinementMaxIterations(cornerRefinementMaxIterations)
  402. public void set_cornerRefinementMaxIterations (int cornerRefinementMaxIterations)
  403. {
  404. ThrowIfDisposed ();
  405. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  406. aruco_DetectorParameters_set_1cornerRefinementMaxIterations_10(nativeObj, cornerRefinementMaxIterations);
  407. return;
  408. #else
  409. return;
  410. #endif
  411. }
  412. //
  413. // C++: double DetectorParameters::cornerRefinementMinAccuracy
  414. //
  415. //javadoc: DetectorParameters::get_cornerRefinementMinAccuracy()
  416. public double get_cornerRefinementMinAccuracy ()
  417. {
  418. ThrowIfDisposed ();
  419. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  420. double retVal = aruco_DetectorParameters_get_1cornerRefinementMinAccuracy_10(nativeObj);
  421. return retVal;
  422. #else
  423. return -1;
  424. #endif
  425. }
  426. //
  427. // C++: void DetectorParameters::cornerRefinementMinAccuracy
  428. //
  429. //javadoc: DetectorParameters::set_cornerRefinementMinAccuracy(cornerRefinementMinAccuracy)
  430. public void set_cornerRefinementMinAccuracy (double cornerRefinementMinAccuracy)
  431. {
  432. ThrowIfDisposed ();
  433. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  434. aruco_DetectorParameters_set_1cornerRefinementMinAccuracy_10(nativeObj, cornerRefinementMinAccuracy);
  435. return;
  436. #else
  437. return;
  438. #endif
  439. }
  440. //
  441. // C++: int DetectorParameters::markerBorderBits
  442. //
  443. //javadoc: DetectorParameters::get_markerBorderBits()
  444. public int get_markerBorderBits ()
  445. {
  446. ThrowIfDisposed ();
  447. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  448. int retVal = aruco_DetectorParameters_get_1markerBorderBits_10(nativeObj);
  449. return retVal;
  450. #else
  451. return -1;
  452. #endif
  453. }
  454. //
  455. // C++: void DetectorParameters::markerBorderBits
  456. //
  457. //javadoc: DetectorParameters::set_markerBorderBits(markerBorderBits)
  458. public void set_markerBorderBits (int markerBorderBits)
  459. {
  460. ThrowIfDisposed ();
  461. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  462. aruco_DetectorParameters_set_1markerBorderBits_10(nativeObj, markerBorderBits);
  463. return;
  464. #else
  465. return;
  466. #endif
  467. }
  468. //
  469. // C++: int DetectorParameters::perspectiveRemovePixelPerCell
  470. //
  471. //javadoc: DetectorParameters::get_perspectiveRemovePixelPerCell()
  472. public int get_perspectiveRemovePixelPerCell ()
  473. {
  474. ThrowIfDisposed ();
  475. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  476. int retVal = aruco_DetectorParameters_get_1perspectiveRemovePixelPerCell_10(nativeObj);
  477. return retVal;
  478. #else
  479. return -1;
  480. #endif
  481. }
  482. //
  483. // C++: void DetectorParameters::perspectiveRemovePixelPerCell
  484. //
  485. //javadoc: DetectorParameters::set_perspectiveRemovePixelPerCell(perspectiveRemovePixelPerCell)
  486. public void set_perspectiveRemovePixelPerCell (int perspectiveRemovePixelPerCell)
  487. {
  488. ThrowIfDisposed ();
  489. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  490. aruco_DetectorParameters_set_1perspectiveRemovePixelPerCell_10(nativeObj, perspectiveRemovePixelPerCell);
  491. return;
  492. #else
  493. return;
  494. #endif
  495. }
  496. //
  497. // C++: double DetectorParameters::perspectiveRemoveIgnoredMarginPerCell
  498. //
  499. //javadoc: DetectorParameters::get_perspectiveRemoveIgnoredMarginPerCell()
  500. public double get_perspectiveRemoveIgnoredMarginPerCell ()
  501. {
  502. ThrowIfDisposed ();
  503. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  504. double retVal = aruco_DetectorParameters_get_1perspectiveRemoveIgnoredMarginPerCell_10(nativeObj);
  505. return retVal;
  506. #else
  507. return -1;
  508. #endif
  509. }
  510. //
  511. // C++: void DetectorParameters::perspectiveRemoveIgnoredMarginPerCell
  512. //
  513. //javadoc: DetectorParameters::set_perspectiveRemoveIgnoredMarginPerCell(perspectiveRemoveIgnoredMarginPerCell)
  514. public void set_perspectiveRemoveIgnoredMarginPerCell (double perspectiveRemoveIgnoredMarginPerCell)
  515. {
  516. ThrowIfDisposed ();
  517. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  518. aruco_DetectorParameters_set_1perspectiveRemoveIgnoredMarginPerCell_10(nativeObj, perspectiveRemoveIgnoredMarginPerCell);
  519. return;
  520. #else
  521. return;
  522. #endif
  523. }
  524. //
  525. // C++: double DetectorParameters::maxErroneousBitsInBorderRate
  526. //
  527. //javadoc: DetectorParameters::get_maxErroneousBitsInBorderRate()
  528. public double get_maxErroneousBitsInBorderRate ()
  529. {
  530. ThrowIfDisposed ();
  531. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  532. double retVal = aruco_DetectorParameters_get_1maxErroneousBitsInBorderRate_10(nativeObj);
  533. return retVal;
  534. #else
  535. return -1;
  536. #endif
  537. }
  538. //
  539. // C++: void DetectorParameters::maxErroneousBitsInBorderRate
  540. //
  541. //javadoc: DetectorParameters::set_maxErroneousBitsInBorderRate(maxErroneousBitsInBorderRate)
  542. public void set_maxErroneousBitsInBorderRate (double maxErroneousBitsInBorderRate)
  543. {
  544. ThrowIfDisposed ();
  545. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  546. aruco_DetectorParameters_set_1maxErroneousBitsInBorderRate_10(nativeObj, maxErroneousBitsInBorderRate);
  547. return;
  548. #else
  549. return;
  550. #endif
  551. }
  552. //
  553. // C++: double DetectorParameters::minOtsuStdDev
  554. //
  555. //javadoc: DetectorParameters::get_minOtsuStdDev()
  556. public double get_minOtsuStdDev ()
  557. {
  558. ThrowIfDisposed ();
  559. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  560. double retVal = aruco_DetectorParameters_get_1minOtsuStdDev_10(nativeObj);
  561. return retVal;
  562. #else
  563. return -1;
  564. #endif
  565. }
  566. //
  567. // C++: void DetectorParameters::minOtsuStdDev
  568. //
  569. //javadoc: DetectorParameters::set_minOtsuStdDev(minOtsuStdDev)
  570. public void set_minOtsuStdDev (double minOtsuStdDev)
  571. {
  572. ThrowIfDisposed ();
  573. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  574. aruco_DetectorParameters_set_1minOtsuStdDev_10(nativeObj, minOtsuStdDev);
  575. return;
  576. #else
  577. return;
  578. #endif
  579. }
  580. //
  581. // C++: double DetectorParameters::errorCorrectionRate
  582. //
  583. //javadoc: DetectorParameters::get_errorCorrectionRate()
  584. public double get_errorCorrectionRate ()
  585. {
  586. ThrowIfDisposed ();
  587. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  588. double retVal = aruco_DetectorParameters_get_1errorCorrectionRate_10(nativeObj);
  589. return retVal;
  590. #else
  591. return -1;
  592. #endif
  593. }
  594. //
  595. // C++: void DetectorParameters::errorCorrectionRate
  596. //
  597. //javadoc: DetectorParameters::set_errorCorrectionRate(errorCorrectionRate)
  598. public void set_errorCorrectionRate (double errorCorrectionRate)
  599. {
  600. ThrowIfDisposed ();
  601. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  602. aruco_DetectorParameters_set_1errorCorrectionRate_10(nativeObj, errorCorrectionRate);
  603. return;
  604. #else
  605. return;
  606. #endif
  607. }
  608. //
  609. // C++: float DetectorParameters::aprilTagQuadDecimate
  610. //
  611. //javadoc: DetectorParameters::get_aprilTagQuadDecimate()
  612. public float get_aprilTagQuadDecimate ()
  613. {
  614. ThrowIfDisposed ();
  615. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  616. float retVal = aruco_DetectorParameters_get_1aprilTagQuadDecimate_10(nativeObj);
  617. return retVal;
  618. #else
  619. return -1;
  620. #endif
  621. }
  622. //
  623. // C++: void DetectorParameters::aprilTagQuadDecimate
  624. //
  625. //javadoc: DetectorParameters::set_aprilTagQuadDecimate(aprilTagQuadDecimate)
  626. public void set_aprilTagQuadDecimate (float aprilTagQuadDecimate)
  627. {
  628. ThrowIfDisposed ();
  629. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  630. aruco_DetectorParameters_set_1aprilTagQuadDecimate_10(nativeObj, aprilTagQuadDecimate);
  631. return;
  632. #else
  633. return;
  634. #endif
  635. }
  636. //
  637. // C++: float DetectorParameters::aprilTagQuadSigma
  638. //
  639. //javadoc: DetectorParameters::get_aprilTagQuadSigma()
  640. public float get_aprilTagQuadSigma ()
  641. {
  642. ThrowIfDisposed ();
  643. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  644. float retVal = aruco_DetectorParameters_get_1aprilTagQuadSigma_10(nativeObj);
  645. return retVal;
  646. #else
  647. return -1;
  648. #endif
  649. }
  650. //
  651. // C++: void DetectorParameters::aprilTagQuadSigma
  652. //
  653. //javadoc: DetectorParameters::set_aprilTagQuadSigma(aprilTagQuadSigma)
  654. public void set_aprilTagQuadSigma (float aprilTagQuadSigma)
  655. {
  656. ThrowIfDisposed ();
  657. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  658. aruco_DetectorParameters_set_1aprilTagQuadSigma_10(nativeObj, aprilTagQuadSigma);
  659. return;
  660. #else
  661. return;
  662. #endif
  663. }
  664. //
  665. // C++: int DetectorParameters::aprilTagMinClusterPixels
  666. //
  667. //javadoc: DetectorParameters::get_aprilTagMinClusterPixels()
  668. public int get_aprilTagMinClusterPixels ()
  669. {
  670. ThrowIfDisposed ();
  671. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  672. int retVal = aruco_DetectorParameters_get_1aprilTagMinClusterPixels_10(nativeObj);
  673. return retVal;
  674. #else
  675. return -1;
  676. #endif
  677. }
  678. //
  679. // C++: void DetectorParameters::aprilTagMinClusterPixels
  680. //
  681. //javadoc: DetectorParameters::set_aprilTagMinClusterPixels(aprilTagMinClusterPixels)
  682. public void set_aprilTagMinClusterPixels (int aprilTagMinClusterPixels)
  683. {
  684. ThrowIfDisposed ();
  685. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  686. aruco_DetectorParameters_set_1aprilTagMinClusterPixels_10(nativeObj, aprilTagMinClusterPixels);
  687. return;
  688. #else
  689. return;
  690. #endif
  691. }
  692. //
  693. // C++: int DetectorParameters::aprilTagMaxNmaxima
  694. //
  695. //javadoc: DetectorParameters::get_aprilTagMaxNmaxima()
  696. public int get_aprilTagMaxNmaxima ()
  697. {
  698. ThrowIfDisposed ();
  699. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  700. int retVal = aruco_DetectorParameters_get_1aprilTagMaxNmaxima_10(nativeObj);
  701. return retVal;
  702. #else
  703. return -1;
  704. #endif
  705. }
  706. //
  707. // C++: void DetectorParameters::aprilTagMaxNmaxima
  708. //
  709. //javadoc: DetectorParameters::set_aprilTagMaxNmaxima(aprilTagMaxNmaxima)
  710. public void set_aprilTagMaxNmaxima (int aprilTagMaxNmaxima)
  711. {
  712. ThrowIfDisposed ();
  713. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  714. aruco_DetectorParameters_set_1aprilTagMaxNmaxima_10(nativeObj, aprilTagMaxNmaxima);
  715. return;
  716. #else
  717. return;
  718. #endif
  719. }
  720. //
  721. // C++: float DetectorParameters::aprilTagCriticalRad
  722. //
  723. //javadoc: DetectorParameters::get_aprilTagCriticalRad()
  724. public float get_aprilTagCriticalRad ()
  725. {
  726. ThrowIfDisposed ();
  727. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  728. float retVal = aruco_DetectorParameters_get_1aprilTagCriticalRad_10(nativeObj);
  729. return retVal;
  730. #else
  731. return -1;
  732. #endif
  733. }
  734. //
  735. // C++: void DetectorParameters::aprilTagCriticalRad
  736. //
  737. //javadoc: DetectorParameters::set_aprilTagCriticalRad(aprilTagCriticalRad)
  738. public void set_aprilTagCriticalRad (float aprilTagCriticalRad)
  739. {
  740. ThrowIfDisposed ();
  741. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  742. aruco_DetectorParameters_set_1aprilTagCriticalRad_10(nativeObj, aprilTagCriticalRad);
  743. return;
  744. #else
  745. return;
  746. #endif
  747. }
  748. //
  749. // C++: float DetectorParameters::aprilTagMaxLineFitMse
  750. //
  751. //javadoc: DetectorParameters::get_aprilTagMaxLineFitMse()
  752. public float get_aprilTagMaxLineFitMse ()
  753. {
  754. ThrowIfDisposed ();
  755. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  756. float retVal = aruco_DetectorParameters_get_1aprilTagMaxLineFitMse_10(nativeObj);
  757. return retVal;
  758. #else
  759. return -1;
  760. #endif
  761. }
  762. //
  763. // C++: void DetectorParameters::aprilTagMaxLineFitMse
  764. //
  765. //javadoc: DetectorParameters::set_aprilTagMaxLineFitMse(aprilTagMaxLineFitMse)
  766. public void set_aprilTagMaxLineFitMse (float aprilTagMaxLineFitMse)
  767. {
  768. ThrowIfDisposed ();
  769. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  770. aruco_DetectorParameters_set_1aprilTagMaxLineFitMse_10(nativeObj, aprilTagMaxLineFitMse);
  771. return;
  772. #else
  773. return;
  774. #endif
  775. }
  776. //
  777. // C++: int DetectorParameters::aprilTagMinWhiteBlackDiff
  778. //
  779. //javadoc: DetectorParameters::get_aprilTagMinWhiteBlackDiff()
  780. public int get_aprilTagMinWhiteBlackDiff ()
  781. {
  782. ThrowIfDisposed ();
  783. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  784. int retVal = aruco_DetectorParameters_get_1aprilTagMinWhiteBlackDiff_10(nativeObj);
  785. return retVal;
  786. #else
  787. return -1;
  788. #endif
  789. }
  790. //
  791. // C++: void DetectorParameters::aprilTagMinWhiteBlackDiff
  792. //
  793. //javadoc: DetectorParameters::set_aprilTagMinWhiteBlackDiff(aprilTagMinWhiteBlackDiff)
  794. public void set_aprilTagMinWhiteBlackDiff (int aprilTagMinWhiteBlackDiff)
  795. {
  796. ThrowIfDisposed ();
  797. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  798. aruco_DetectorParameters_set_1aprilTagMinWhiteBlackDiff_10(nativeObj, aprilTagMinWhiteBlackDiff);
  799. return;
  800. #else
  801. return;
  802. #endif
  803. }
  804. //
  805. // C++: int DetectorParameters::aprilTagDeglitch
  806. //
  807. //javadoc: DetectorParameters::get_aprilTagDeglitch()
  808. public int get_aprilTagDeglitch ()
  809. {
  810. ThrowIfDisposed ();
  811. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  812. int retVal = aruco_DetectorParameters_get_1aprilTagDeglitch_10(nativeObj);
  813. return retVal;
  814. #else
  815. return -1;
  816. #endif
  817. }
  818. //
  819. // C++: void DetectorParameters::aprilTagDeglitch
  820. //
  821. //javadoc: DetectorParameters::set_aprilTagDeglitch(aprilTagDeglitch)
  822. public void set_aprilTagDeglitch (int aprilTagDeglitch)
  823. {
  824. ThrowIfDisposed ();
  825. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  826. aruco_DetectorParameters_set_1aprilTagDeglitch_10(nativeObj, aprilTagDeglitch);
  827. return;
  828. #else
  829. return;
  830. #endif
  831. }
  832. #if (UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR
  833. const string LIBNAME = "__Internal";
  834. #else
  835. const string LIBNAME = "opencvforunity";
  836. #endif
  837. // C++: static Ptr_DetectorParameters cv::aruco::DetectorParameters::create()
  838. [DllImport (LIBNAME)]
  839. private static extern IntPtr aruco_DetectorParameters_create_10 ();
  840. // C++: int DetectorParameters::adaptiveThreshWinSizeMin
  841. [DllImport (LIBNAME)]
  842. private static extern int aruco_DetectorParameters_get_1adaptiveThreshWinSizeMin_10 (IntPtr nativeObj);
  843. // C++: void DetectorParameters::adaptiveThreshWinSizeMin
  844. [DllImport (LIBNAME)]
  845. private static extern void aruco_DetectorParameters_set_1adaptiveThreshWinSizeMin_10 (IntPtr nativeObj, int adaptiveThreshWinSizeMin);
  846. // C++: int DetectorParameters::adaptiveThreshWinSizeMax
  847. [DllImport (LIBNAME)]
  848. private static extern int aruco_DetectorParameters_get_1adaptiveThreshWinSizeMax_10 (IntPtr nativeObj);
  849. // C++: void DetectorParameters::adaptiveThreshWinSizeMax
  850. [DllImport (LIBNAME)]
  851. private static extern void aruco_DetectorParameters_set_1adaptiveThreshWinSizeMax_10 (IntPtr nativeObj, int adaptiveThreshWinSizeMax);
  852. // C++: int DetectorParameters::adaptiveThreshWinSizeStep
  853. [DllImport (LIBNAME)]
  854. private static extern int aruco_DetectorParameters_get_1adaptiveThreshWinSizeStep_10 (IntPtr nativeObj);
  855. // C++: void DetectorParameters::adaptiveThreshWinSizeStep
  856. [DllImport (LIBNAME)]
  857. private static extern void aruco_DetectorParameters_set_1adaptiveThreshWinSizeStep_10 (IntPtr nativeObj, int adaptiveThreshWinSizeStep);
  858. // C++: double DetectorParameters::adaptiveThreshConstant
  859. [DllImport (LIBNAME)]
  860. private static extern double aruco_DetectorParameters_get_1adaptiveThreshConstant_10 (IntPtr nativeObj);
  861. // C++: void DetectorParameters::adaptiveThreshConstant
  862. [DllImport (LIBNAME)]
  863. private static extern void aruco_DetectorParameters_set_1adaptiveThreshConstant_10 (IntPtr nativeObj, double adaptiveThreshConstant);
  864. // C++: double DetectorParameters::minMarkerPerimeterRate
  865. [DllImport (LIBNAME)]
  866. private static extern double aruco_DetectorParameters_get_1minMarkerPerimeterRate_10 (IntPtr nativeObj);
  867. // C++: void DetectorParameters::minMarkerPerimeterRate
  868. [DllImport (LIBNAME)]
  869. private static extern void aruco_DetectorParameters_set_1minMarkerPerimeterRate_10 (IntPtr nativeObj, double minMarkerPerimeterRate);
  870. // C++: double DetectorParameters::maxMarkerPerimeterRate
  871. [DllImport (LIBNAME)]
  872. private static extern double aruco_DetectorParameters_get_1maxMarkerPerimeterRate_10 (IntPtr nativeObj);
  873. // C++: void DetectorParameters::maxMarkerPerimeterRate
  874. [DllImport (LIBNAME)]
  875. private static extern void aruco_DetectorParameters_set_1maxMarkerPerimeterRate_10 (IntPtr nativeObj, double maxMarkerPerimeterRate);
  876. // C++: double DetectorParameters::polygonalApproxAccuracyRate
  877. [DllImport (LIBNAME)]
  878. private static extern double aruco_DetectorParameters_get_1polygonalApproxAccuracyRate_10 (IntPtr nativeObj);
  879. // C++: void DetectorParameters::polygonalApproxAccuracyRate
  880. [DllImport (LIBNAME)]
  881. private static extern void aruco_DetectorParameters_set_1polygonalApproxAccuracyRate_10 (IntPtr nativeObj, double polygonalApproxAccuracyRate);
  882. // C++: double DetectorParameters::minCornerDistanceRate
  883. [DllImport (LIBNAME)]
  884. private static extern double aruco_DetectorParameters_get_1minCornerDistanceRate_10 (IntPtr nativeObj);
  885. // C++: void DetectorParameters::minCornerDistanceRate
  886. [DllImport (LIBNAME)]
  887. private static extern void aruco_DetectorParameters_set_1minCornerDistanceRate_10 (IntPtr nativeObj, double minCornerDistanceRate);
  888. // C++: int DetectorParameters::minDistanceToBorder
  889. [DllImport (LIBNAME)]
  890. private static extern int aruco_DetectorParameters_get_1minDistanceToBorder_10 (IntPtr nativeObj);
  891. // C++: void DetectorParameters::minDistanceToBorder
  892. [DllImport (LIBNAME)]
  893. private static extern void aruco_DetectorParameters_set_1minDistanceToBorder_10 (IntPtr nativeObj, int minDistanceToBorder);
  894. // C++: double DetectorParameters::minMarkerDistanceRate
  895. [DllImport (LIBNAME)]
  896. private static extern double aruco_DetectorParameters_get_1minMarkerDistanceRate_10 (IntPtr nativeObj);
  897. // C++: void DetectorParameters::minMarkerDistanceRate
  898. [DllImport (LIBNAME)]
  899. private static extern void aruco_DetectorParameters_set_1minMarkerDistanceRate_10 (IntPtr nativeObj, double minMarkerDistanceRate);
  900. // C++: int DetectorParameters::cornerRefinementMethod
  901. [DllImport (LIBNAME)]
  902. private static extern int aruco_DetectorParameters_get_1cornerRefinementMethod_10 (IntPtr nativeObj);
  903. // C++: void DetectorParameters::cornerRefinementMethod
  904. [DllImport (LIBNAME)]
  905. private static extern void aruco_DetectorParameters_set_1cornerRefinementMethod_10 (IntPtr nativeObj, int cornerRefinementMethod);
  906. // C++: int DetectorParameters::cornerRefinementWinSize
  907. [DllImport (LIBNAME)]
  908. private static extern int aruco_DetectorParameters_get_1cornerRefinementWinSize_10 (IntPtr nativeObj);
  909. // C++: void DetectorParameters::cornerRefinementWinSize
  910. [DllImport (LIBNAME)]
  911. private static extern void aruco_DetectorParameters_set_1cornerRefinementWinSize_10 (IntPtr nativeObj, int cornerRefinementWinSize);
  912. // C++: int DetectorParameters::cornerRefinementMaxIterations
  913. [DllImport (LIBNAME)]
  914. private static extern int aruco_DetectorParameters_get_1cornerRefinementMaxIterations_10 (IntPtr nativeObj);
  915. // C++: void DetectorParameters::cornerRefinementMaxIterations
  916. [DllImport (LIBNAME)]
  917. private static extern void aruco_DetectorParameters_set_1cornerRefinementMaxIterations_10 (IntPtr nativeObj, int cornerRefinementMaxIterations);
  918. // C++: double DetectorParameters::cornerRefinementMinAccuracy
  919. [DllImport (LIBNAME)]
  920. private static extern double aruco_DetectorParameters_get_1cornerRefinementMinAccuracy_10 (IntPtr nativeObj);
  921. // C++: void DetectorParameters::cornerRefinementMinAccuracy
  922. [DllImport (LIBNAME)]
  923. private static extern void aruco_DetectorParameters_set_1cornerRefinementMinAccuracy_10 (IntPtr nativeObj, double cornerRefinementMinAccuracy);
  924. // C++: int DetectorParameters::markerBorderBits
  925. [DllImport (LIBNAME)]
  926. private static extern int aruco_DetectorParameters_get_1markerBorderBits_10 (IntPtr nativeObj);
  927. // C++: void DetectorParameters::markerBorderBits
  928. [DllImport (LIBNAME)]
  929. private static extern void aruco_DetectorParameters_set_1markerBorderBits_10 (IntPtr nativeObj, int markerBorderBits);
  930. // C++: int DetectorParameters::perspectiveRemovePixelPerCell
  931. [DllImport (LIBNAME)]
  932. private static extern int aruco_DetectorParameters_get_1perspectiveRemovePixelPerCell_10 (IntPtr nativeObj);
  933. // C++: void DetectorParameters::perspectiveRemovePixelPerCell
  934. [DllImport (LIBNAME)]
  935. private static extern void aruco_DetectorParameters_set_1perspectiveRemovePixelPerCell_10 (IntPtr nativeObj, int perspectiveRemovePixelPerCell);
  936. // C++: double DetectorParameters::perspectiveRemoveIgnoredMarginPerCell
  937. [DllImport (LIBNAME)]
  938. private static extern double aruco_DetectorParameters_get_1perspectiveRemoveIgnoredMarginPerCell_10 (IntPtr nativeObj);
  939. // C++: void DetectorParameters::perspectiveRemoveIgnoredMarginPerCell
  940. [DllImport (LIBNAME)]
  941. private static extern void aruco_DetectorParameters_set_1perspectiveRemoveIgnoredMarginPerCell_10 (IntPtr nativeObj, double perspectiveRemoveIgnoredMarginPerCell);
  942. // C++: double DetectorParameters::maxErroneousBitsInBorderRate
  943. [DllImport (LIBNAME)]
  944. private static extern double aruco_DetectorParameters_get_1maxErroneousBitsInBorderRate_10 (IntPtr nativeObj);
  945. // C++: void DetectorParameters::maxErroneousBitsInBorderRate
  946. [DllImport (LIBNAME)]
  947. private static extern void aruco_DetectorParameters_set_1maxErroneousBitsInBorderRate_10 (IntPtr nativeObj, double maxErroneousBitsInBorderRate);
  948. // C++: double DetectorParameters::minOtsuStdDev
  949. [DllImport (LIBNAME)]
  950. private static extern double aruco_DetectorParameters_get_1minOtsuStdDev_10 (IntPtr nativeObj);
  951. // C++: void DetectorParameters::minOtsuStdDev
  952. [DllImport (LIBNAME)]
  953. private static extern void aruco_DetectorParameters_set_1minOtsuStdDev_10 (IntPtr nativeObj, double minOtsuStdDev);
  954. // C++: double DetectorParameters::errorCorrectionRate
  955. [DllImport (LIBNAME)]
  956. private static extern double aruco_DetectorParameters_get_1errorCorrectionRate_10 (IntPtr nativeObj);
  957. // C++: void DetectorParameters::errorCorrectionRate
  958. [DllImport (LIBNAME)]
  959. private static extern void aruco_DetectorParameters_set_1errorCorrectionRate_10 (IntPtr nativeObj, double errorCorrectionRate);
  960. // C++: float DetectorParameters::aprilTagQuadDecimate
  961. [DllImport (LIBNAME)]
  962. private static extern float aruco_DetectorParameters_get_1aprilTagQuadDecimate_10 (IntPtr nativeObj);
  963. // C++: void DetectorParameters::aprilTagQuadDecimate
  964. [DllImport (LIBNAME)]
  965. private static extern void aruco_DetectorParameters_set_1aprilTagQuadDecimate_10 (IntPtr nativeObj, float aprilTagQuadDecimate);
  966. // C++: float DetectorParameters::aprilTagQuadSigma
  967. [DllImport (LIBNAME)]
  968. private static extern float aruco_DetectorParameters_get_1aprilTagQuadSigma_10 (IntPtr nativeObj);
  969. // C++: void DetectorParameters::aprilTagQuadSigma
  970. [DllImport (LIBNAME)]
  971. private static extern void aruco_DetectorParameters_set_1aprilTagQuadSigma_10 (IntPtr nativeObj, float aprilTagQuadSigma);
  972. // C++: int DetectorParameters::aprilTagMinClusterPixels
  973. [DllImport (LIBNAME)]
  974. private static extern int aruco_DetectorParameters_get_1aprilTagMinClusterPixels_10 (IntPtr nativeObj);
  975. // C++: void DetectorParameters::aprilTagMinClusterPixels
  976. [DllImport (LIBNAME)]
  977. private static extern void aruco_DetectorParameters_set_1aprilTagMinClusterPixels_10 (IntPtr nativeObj, int aprilTagMinClusterPixels);
  978. // C++: int DetectorParameters::aprilTagMaxNmaxima
  979. [DllImport (LIBNAME)]
  980. private static extern int aruco_DetectorParameters_get_1aprilTagMaxNmaxima_10 (IntPtr nativeObj);
  981. // C++: void DetectorParameters::aprilTagMaxNmaxima
  982. [DllImport (LIBNAME)]
  983. private static extern void aruco_DetectorParameters_set_1aprilTagMaxNmaxima_10 (IntPtr nativeObj, int aprilTagMaxNmaxima);
  984. // C++: float DetectorParameters::aprilTagCriticalRad
  985. [DllImport (LIBNAME)]
  986. private static extern float aruco_DetectorParameters_get_1aprilTagCriticalRad_10 (IntPtr nativeObj);
  987. // C++: void DetectorParameters::aprilTagCriticalRad
  988. [DllImport (LIBNAME)]
  989. private static extern void aruco_DetectorParameters_set_1aprilTagCriticalRad_10 (IntPtr nativeObj, float aprilTagCriticalRad);
  990. // C++: float DetectorParameters::aprilTagMaxLineFitMse
  991. [DllImport (LIBNAME)]
  992. private static extern float aruco_DetectorParameters_get_1aprilTagMaxLineFitMse_10 (IntPtr nativeObj);
  993. // C++: void DetectorParameters::aprilTagMaxLineFitMse
  994. [DllImport (LIBNAME)]
  995. private static extern void aruco_DetectorParameters_set_1aprilTagMaxLineFitMse_10 (IntPtr nativeObj, float aprilTagMaxLineFitMse);
  996. // C++: int DetectorParameters::aprilTagMinWhiteBlackDiff
  997. [DllImport (LIBNAME)]
  998. private static extern int aruco_DetectorParameters_get_1aprilTagMinWhiteBlackDiff_10 (IntPtr nativeObj);
  999. // C++: void DetectorParameters::aprilTagMinWhiteBlackDiff
  1000. [DllImport (LIBNAME)]
  1001. private static extern void aruco_DetectorParameters_set_1aprilTagMinWhiteBlackDiff_10 (IntPtr nativeObj, int aprilTagMinWhiteBlackDiff);
  1002. // C++: int DetectorParameters::aprilTagDeglitch
  1003. [DllImport (LIBNAME)]
  1004. private static extern int aruco_DetectorParameters_get_1aprilTagDeglitch_10 (IntPtr nativeObj);
  1005. // C++: void DetectorParameters::aprilTagDeglitch
  1006. [DllImport (LIBNAME)]
  1007. private static extern void aruco_DetectorParameters_set_1aprilTagDeglitch_10 (IntPtr nativeObj, int aprilTagDeglitch);
  1008. // native support for java finalize()
  1009. [DllImport (LIBNAME)]
  1010. private static extern void aruco_DetectorParameters_delete (IntPtr nativeObj);
  1011. }
  1012. }