DetectorParameters.cs 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248
  1. using OpenCVForUnity.CoreModule;
  2. using OpenCVForUnity.UtilsModule;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Runtime.InteropServices;
  6. namespace OpenCVForUnity.ObjdetectModule
  7. {
  8. // C++: class DetectorParameters
  9. /**
  10. * struct DetectorParameters is used by ArucoDetector
  11. */
  12. public class DetectorParameters : DisposableOpenCVObject
  13. {
  14. protected override void Dispose(bool disposing)
  15. {
  16. try
  17. {
  18. if (disposing)
  19. {
  20. }
  21. if (IsEnabledDispose)
  22. {
  23. if (nativeObj != IntPtr.Zero)
  24. objdetect_DetectorParameters_delete(nativeObj);
  25. nativeObj = IntPtr.Zero;
  26. }
  27. }
  28. finally
  29. {
  30. base.Dispose(disposing);
  31. }
  32. }
  33. protected internal DetectorParameters(IntPtr addr) : base(addr) { }
  34. public IntPtr getNativeObjAddr() { return nativeObj; }
  35. // internal usage only
  36. public static DetectorParameters __fromPtr__(IntPtr addr) { return new DetectorParameters(addr); }
  37. //
  38. // C++: cv::aruco::DetectorParameters::DetectorParameters()
  39. //
  40. public DetectorParameters()
  41. {
  42. nativeObj = DisposableObject.ThrowIfNullIntPtr(objdetect_DetectorParameters_DetectorParameters_10());
  43. }
  44. //
  45. // C++: bool cv::aruco::DetectorParameters::readDetectorParameters(FileNode fn)
  46. //
  47. // Unknown type 'FileNode' (I), skipping the function
  48. //
  49. // C++: bool cv::aruco::DetectorParameters::writeDetectorParameters(FileStorage fs, String name = String())
  50. //
  51. // Unknown type 'FileStorage' (I), skipping the function
  52. //
  53. // C++: int DetectorParameters::adaptiveThreshWinSizeMin
  54. //
  55. public int get_adaptiveThreshWinSizeMin()
  56. {
  57. ThrowIfDisposed();
  58. return objdetect_DetectorParameters_get_1adaptiveThreshWinSizeMin_10(nativeObj);
  59. }
  60. //
  61. // C++: void DetectorParameters::adaptiveThreshWinSizeMin
  62. //
  63. public void set_adaptiveThreshWinSizeMin(int adaptiveThreshWinSizeMin)
  64. {
  65. ThrowIfDisposed();
  66. objdetect_DetectorParameters_set_1adaptiveThreshWinSizeMin_10(nativeObj, adaptiveThreshWinSizeMin);
  67. }
  68. //
  69. // C++: int DetectorParameters::adaptiveThreshWinSizeMax
  70. //
  71. public int get_adaptiveThreshWinSizeMax()
  72. {
  73. ThrowIfDisposed();
  74. return objdetect_DetectorParameters_get_1adaptiveThreshWinSizeMax_10(nativeObj);
  75. }
  76. //
  77. // C++: void DetectorParameters::adaptiveThreshWinSizeMax
  78. //
  79. public void set_adaptiveThreshWinSizeMax(int adaptiveThreshWinSizeMax)
  80. {
  81. ThrowIfDisposed();
  82. objdetect_DetectorParameters_set_1adaptiveThreshWinSizeMax_10(nativeObj, adaptiveThreshWinSizeMax);
  83. }
  84. //
  85. // C++: int DetectorParameters::adaptiveThreshWinSizeStep
  86. //
  87. public int get_adaptiveThreshWinSizeStep()
  88. {
  89. ThrowIfDisposed();
  90. return objdetect_DetectorParameters_get_1adaptiveThreshWinSizeStep_10(nativeObj);
  91. }
  92. //
  93. // C++: void DetectorParameters::adaptiveThreshWinSizeStep
  94. //
  95. public void set_adaptiveThreshWinSizeStep(int adaptiveThreshWinSizeStep)
  96. {
  97. ThrowIfDisposed();
  98. objdetect_DetectorParameters_set_1adaptiveThreshWinSizeStep_10(nativeObj, adaptiveThreshWinSizeStep);
  99. }
  100. //
  101. // C++: double DetectorParameters::adaptiveThreshConstant
  102. //
  103. public double get_adaptiveThreshConstant()
  104. {
  105. ThrowIfDisposed();
  106. return objdetect_DetectorParameters_get_1adaptiveThreshConstant_10(nativeObj);
  107. }
  108. //
  109. // C++: void DetectorParameters::adaptiveThreshConstant
  110. //
  111. public void set_adaptiveThreshConstant(double adaptiveThreshConstant)
  112. {
  113. ThrowIfDisposed();
  114. objdetect_DetectorParameters_set_1adaptiveThreshConstant_10(nativeObj, adaptiveThreshConstant);
  115. }
  116. //
  117. // C++: double DetectorParameters::minMarkerPerimeterRate
  118. //
  119. public double get_minMarkerPerimeterRate()
  120. {
  121. ThrowIfDisposed();
  122. return objdetect_DetectorParameters_get_1minMarkerPerimeterRate_10(nativeObj);
  123. }
  124. //
  125. // C++: void DetectorParameters::minMarkerPerimeterRate
  126. //
  127. public void set_minMarkerPerimeterRate(double minMarkerPerimeterRate)
  128. {
  129. ThrowIfDisposed();
  130. objdetect_DetectorParameters_set_1minMarkerPerimeterRate_10(nativeObj, minMarkerPerimeterRate);
  131. }
  132. //
  133. // C++: double DetectorParameters::maxMarkerPerimeterRate
  134. //
  135. public double get_maxMarkerPerimeterRate()
  136. {
  137. ThrowIfDisposed();
  138. return objdetect_DetectorParameters_get_1maxMarkerPerimeterRate_10(nativeObj);
  139. }
  140. //
  141. // C++: void DetectorParameters::maxMarkerPerimeterRate
  142. //
  143. public void set_maxMarkerPerimeterRate(double maxMarkerPerimeterRate)
  144. {
  145. ThrowIfDisposed();
  146. objdetect_DetectorParameters_set_1maxMarkerPerimeterRate_10(nativeObj, maxMarkerPerimeterRate);
  147. }
  148. //
  149. // C++: double DetectorParameters::polygonalApproxAccuracyRate
  150. //
  151. public double get_polygonalApproxAccuracyRate()
  152. {
  153. ThrowIfDisposed();
  154. return objdetect_DetectorParameters_get_1polygonalApproxAccuracyRate_10(nativeObj);
  155. }
  156. //
  157. // C++: void DetectorParameters::polygonalApproxAccuracyRate
  158. //
  159. public void set_polygonalApproxAccuracyRate(double polygonalApproxAccuracyRate)
  160. {
  161. ThrowIfDisposed();
  162. objdetect_DetectorParameters_set_1polygonalApproxAccuracyRate_10(nativeObj, polygonalApproxAccuracyRate);
  163. }
  164. //
  165. // C++: double DetectorParameters::minCornerDistanceRate
  166. //
  167. public double get_minCornerDistanceRate()
  168. {
  169. ThrowIfDisposed();
  170. return objdetect_DetectorParameters_get_1minCornerDistanceRate_10(nativeObj);
  171. }
  172. //
  173. // C++: void DetectorParameters::minCornerDistanceRate
  174. //
  175. public void set_minCornerDistanceRate(double minCornerDistanceRate)
  176. {
  177. ThrowIfDisposed();
  178. objdetect_DetectorParameters_set_1minCornerDistanceRate_10(nativeObj, minCornerDistanceRate);
  179. }
  180. //
  181. // C++: int DetectorParameters::minDistanceToBorder
  182. //
  183. public int get_minDistanceToBorder()
  184. {
  185. ThrowIfDisposed();
  186. return objdetect_DetectorParameters_get_1minDistanceToBorder_10(nativeObj);
  187. }
  188. //
  189. // C++: void DetectorParameters::minDistanceToBorder
  190. //
  191. public void set_minDistanceToBorder(int minDistanceToBorder)
  192. {
  193. ThrowIfDisposed();
  194. objdetect_DetectorParameters_set_1minDistanceToBorder_10(nativeObj, minDistanceToBorder);
  195. }
  196. //
  197. // C++: double DetectorParameters::minMarkerDistanceRate
  198. //
  199. public double get_minMarkerDistanceRate()
  200. {
  201. ThrowIfDisposed();
  202. return objdetect_DetectorParameters_get_1minMarkerDistanceRate_10(nativeObj);
  203. }
  204. //
  205. // C++: void DetectorParameters::minMarkerDistanceRate
  206. //
  207. public void set_minMarkerDistanceRate(double minMarkerDistanceRate)
  208. {
  209. ThrowIfDisposed();
  210. objdetect_DetectorParameters_set_1minMarkerDistanceRate_10(nativeObj, minMarkerDistanceRate);
  211. }
  212. //
  213. // C++: int DetectorParameters::cornerRefinementMethod
  214. //
  215. public int get_cornerRefinementMethod()
  216. {
  217. ThrowIfDisposed();
  218. return objdetect_DetectorParameters_get_1cornerRefinementMethod_10(nativeObj);
  219. }
  220. //
  221. // C++: void DetectorParameters::cornerRefinementMethod
  222. //
  223. public void set_cornerRefinementMethod(int cornerRefinementMethod)
  224. {
  225. ThrowIfDisposed();
  226. objdetect_DetectorParameters_set_1cornerRefinementMethod_10(nativeObj, cornerRefinementMethod);
  227. }
  228. //
  229. // C++: int DetectorParameters::cornerRefinementWinSize
  230. //
  231. public int get_cornerRefinementWinSize()
  232. {
  233. ThrowIfDisposed();
  234. return objdetect_DetectorParameters_get_1cornerRefinementWinSize_10(nativeObj);
  235. }
  236. //
  237. // C++: void DetectorParameters::cornerRefinementWinSize
  238. //
  239. public void set_cornerRefinementWinSize(int cornerRefinementWinSize)
  240. {
  241. ThrowIfDisposed();
  242. objdetect_DetectorParameters_set_1cornerRefinementWinSize_10(nativeObj, cornerRefinementWinSize);
  243. }
  244. //
  245. // C++: int DetectorParameters::cornerRefinementMaxIterations
  246. //
  247. public int get_cornerRefinementMaxIterations()
  248. {
  249. ThrowIfDisposed();
  250. return objdetect_DetectorParameters_get_1cornerRefinementMaxIterations_10(nativeObj);
  251. }
  252. //
  253. // C++: void DetectorParameters::cornerRefinementMaxIterations
  254. //
  255. public void set_cornerRefinementMaxIterations(int cornerRefinementMaxIterations)
  256. {
  257. ThrowIfDisposed();
  258. objdetect_DetectorParameters_set_1cornerRefinementMaxIterations_10(nativeObj, cornerRefinementMaxIterations);
  259. }
  260. //
  261. // C++: double DetectorParameters::cornerRefinementMinAccuracy
  262. //
  263. public double get_cornerRefinementMinAccuracy()
  264. {
  265. ThrowIfDisposed();
  266. return objdetect_DetectorParameters_get_1cornerRefinementMinAccuracy_10(nativeObj);
  267. }
  268. //
  269. // C++: void DetectorParameters::cornerRefinementMinAccuracy
  270. //
  271. public void set_cornerRefinementMinAccuracy(double cornerRefinementMinAccuracy)
  272. {
  273. ThrowIfDisposed();
  274. objdetect_DetectorParameters_set_1cornerRefinementMinAccuracy_10(nativeObj, cornerRefinementMinAccuracy);
  275. }
  276. //
  277. // C++: int DetectorParameters::markerBorderBits
  278. //
  279. public int get_markerBorderBits()
  280. {
  281. ThrowIfDisposed();
  282. return objdetect_DetectorParameters_get_1markerBorderBits_10(nativeObj);
  283. }
  284. //
  285. // C++: void DetectorParameters::markerBorderBits
  286. //
  287. public void set_markerBorderBits(int markerBorderBits)
  288. {
  289. ThrowIfDisposed();
  290. objdetect_DetectorParameters_set_1markerBorderBits_10(nativeObj, markerBorderBits);
  291. }
  292. //
  293. // C++: int DetectorParameters::perspectiveRemovePixelPerCell
  294. //
  295. public int get_perspectiveRemovePixelPerCell()
  296. {
  297. ThrowIfDisposed();
  298. return objdetect_DetectorParameters_get_1perspectiveRemovePixelPerCell_10(nativeObj);
  299. }
  300. //
  301. // C++: void DetectorParameters::perspectiveRemovePixelPerCell
  302. //
  303. public void set_perspectiveRemovePixelPerCell(int perspectiveRemovePixelPerCell)
  304. {
  305. ThrowIfDisposed();
  306. objdetect_DetectorParameters_set_1perspectiveRemovePixelPerCell_10(nativeObj, perspectiveRemovePixelPerCell);
  307. }
  308. //
  309. // C++: double DetectorParameters::perspectiveRemoveIgnoredMarginPerCell
  310. //
  311. public double get_perspectiveRemoveIgnoredMarginPerCell()
  312. {
  313. ThrowIfDisposed();
  314. return objdetect_DetectorParameters_get_1perspectiveRemoveIgnoredMarginPerCell_10(nativeObj);
  315. }
  316. //
  317. // C++: void DetectorParameters::perspectiveRemoveIgnoredMarginPerCell
  318. //
  319. public void set_perspectiveRemoveIgnoredMarginPerCell(double perspectiveRemoveIgnoredMarginPerCell)
  320. {
  321. ThrowIfDisposed();
  322. objdetect_DetectorParameters_set_1perspectiveRemoveIgnoredMarginPerCell_10(nativeObj, perspectiveRemoveIgnoredMarginPerCell);
  323. }
  324. //
  325. // C++: double DetectorParameters::maxErroneousBitsInBorderRate
  326. //
  327. public double get_maxErroneousBitsInBorderRate()
  328. {
  329. ThrowIfDisposed();
  330. return objdetect_DetectorParameters_get_1maxErroneousBitsInBorderRate_10(nativeObj);
  331. }
  332. //
  333. // C++: void DetectorParameters::maxErroneousBitsInBorderRate
  334. //
  335. public void set_maxErroneousBitsInBorderRate(double maxErroneousBitsInBorderRate)
  336. {
  337. ThrowIfDisposed();
  338. objdetect_DetectorParameters_set_1maxErroneousBitsInBorderRate_10(nativeObj, maxErroneousBitsInBorderRate);
  339. }
  340. //
  341. // C++: double DetectorParameters::minOtsuStdDev
  342. //
  343. public double get_minOtsuStdDev()
  344. {
  345. ThrowIfDisposed();
  346. return objdetect_DetectorParameters_get_1minOtsuStdDev_10(nativeObj);
  347. }
  348. //
  349. // C++: void DetectorParameters::minOtsuStdDev
  350. //
  351. public void set_minOtsuStdDev(double minOtsuStdDev)
  352. {
  353. ThrowIfDisposed();
  354. objdetect_DetectorParameters_set_1minOtsuStdDev_10(nativeObj, minOtsuStdDev);
  355. }
  356. //
  357. // C++: double DetectorParameters::errorCorrectionRate
  358. //
  359. public double get_errorCorrectionRate()
  360. {
  361. ThrowIfDisposed();
  362. return objdetect_DetectorParameters_get_1errorCorrectionRate_10(nativeObj);
  363. }
  364. //
  365. // C++: void DetectorParameters::errorCorrectionRate
  366. //
  367. public void set_errorCorrectionRate(double errorCorrectionRate)
  368. {
  369. ThrowIfDisposed();
  370. objdetect_DetectorParameters_set_1errorCorrectionRate_10(nativeObj, errorCorrectionRate);
  371. }
  372. //
  373. // C++: float DetectorParameters::aprilTagQuadDecimate
  374. //
  375. public float get_aprilTagQuadDecimate()
  376. {
  377. ThrowIfDisposed();
  378. return objdetect_DetectorParameters_get_1aprilTagQuadDecimate_10(nativeObj);
  379. }
  380. //
  381. // C++: void DetectorParameters::aprilTagQuadDecimate
  382. //
  383. public void set_aprilTagQuadDecimate(float aprilTagQuadDecimate)
  384. {
  385. ThrowIfDisposed();
  386. objdetect_DetectorParameters_set_1aprilTagQuadDecimate_10(nativeObj, aprilTagQuadDecimate);
  387. }
  388. //
  389. // C++: float DetectorParameters::aprilTagQuadSigma
  390. //
  391. public float get_aprilTagQuadSigma()
  392. {
  393. ThrowIfDisposed();
  394. return objdetect_DetectorParameters_get_1aprilTagQuadSigma_10(nativeObj);
  395. }
  396. //
  397. // C++: void DetectorParameters::aprilTagQuadSigma
  398. //
  399. public void set_aprilTagQuadSigma(float aprilTagQuadSigma)
  400. {
  401. ThrowIfDisposed();
  402. objdetect_DetectorParameters_set_1aprilTagQuadSigma_10(nativeObj, aprilTagQuadSigma);
  403. }
  404. //
  405. // C++: int DetectorParameters::aprilTagMinClusterPixels
  406. //
  407. public int get_aprilTagMinClusterPixels()
  408. {
  409. ThrowIfDisposed();
  410. return objdetect_DetectorParameters_get_1aprilTagMinClusterPixels_10(nativeObj);
  411. }
  412. //
  413. // C++: void DetectorParameters::aprilTagMinClusterPixels
  414. //
  415. public void set_aprilTagMinClusterPixels(int aprilTagMinClusterPixels)
  416. {
  417. ThrowIfDisposed();
  418. objdetect_DetectorParameters_set_1aprilTagMinClusterPixels_10(nativeObj, aprilTagMinClusterPixels);
  419. }
  420. //
  421. // C++: int DetectorParameters::aprilTagMaxNmaxima
  422. //
  423. public int get_aprilTagMaxNmaxima()
  424. {
  425. ThrowIfDisposed();
  426. return objdetect_DetectorParameters_get_1aprilTagMaxNmaxima_10(nativeObj);
  427. }
  428. //
  429. // C++: void DetectorParameters::aprilTagMaxNmaxima
  430. //
  431. public void set_aprilTagMaxNmaxima(int aprilTagMaxNmaxima)
  432. {
  433. ThrowIfDisposed();
  434. objdetect_DetectorParameters_set_1aprilTagMaxNmaxima_10(nativeObj, aprilTagMaxNmaxima);
  435. }
  436. //
  437. // C++: float DetectorParameters::aprilTagCriticalRad
  438. //
  439. public float get_aprilTagCriticalRad()
  440. {
  441. ThrowIfDisposed();
  442. return objdetect_DetectorParameters_get_1aprilTagCriticalRad_10(nativeObj);
  443. }
  444. //
  445. // C++: void DetectorParameters::aprilTagCriticalRad
  446. //
  447. public void set_aprilTagCriticalRad(float aprilTagCriticalRad)
  448. {
  449. ThrowIfDisposed();
  450. objdetect_DetectorParameters_set_1aprilTagCriticalRad_10(nativeObj, aprilTagCriticalRad);
  451. }
  452. //
  453. // C++: float DetectorParameters::aprilTagMaxLineFitMse
  454. //
  455. public float get_aprilTagMaxLineFitMse()
  456. {
  457. ThrowIfDisposed();
  458. return objdetect_DetectorParameters_get_1aprilTagMaxLineFitMse_10(nativeObj);
  459. }
  460. //
  461. // C++: void DetectorParameters::aprilTagMaxLineFitMse
  462. //
  463. public void set_aprilTagMaxLineFitMse(float aprilTagMaxLineFitMse)
  464. {
  465. ThrowIfDisposed();
  466. objdetect_DetectorParameters_set_1aprilTagMaxLineFitMse_10(nativeObj, aprilTagMaxLineFitMse);
  467. }
  468. //
  469. // C++: int DetectorParameters::aprilTagMinWhiteBlackDiff
  470. //
  471. public int get_aprilTagMinWhiteBlackDiff()
  472. {
  473. ThrowIfDisposed();
  474. return objdetect_DetectorParameters_get_1aprilTagMinWhiteBlackDiff_10(nativeObj);
  475. }
  476. //
  477. // C++: void DetectorParameters::aprilTagMinWhiteBlackDiff
  478. //
  479. public void set_aprilTagMinWhiteBlackDiff(int aprilTagMinWhiteBlackDiff)
  480. {
  481. ThrowIfDisposed();
  482. objdetect_DetectorParameters_set_1aprilTagMinWhiteBlackDiff_10(nativeObj, aprilTagMinWhiteBlackDiff);
  483. }
  484. //
  485. // C++: int DetectorParameters::aprilTagDeglitch
  486. //
  487. public int get_aprilTagDeglitch()
  488. {
  489. ThrowIfDisposed();
  490. return objdetect_DetectorParameters_get_1aprilTagDeglitch_10(nativeObj);
  491. }
  492. //
  493. // C++: void DetectorParameters::aprilTagDeglitch
  494. //
  495. public void set_aprilTagDeglitch(int aprilTagDeglitch)
  496. {
  497. ThrowIfDisposed();
  498. objdetect_DetectorParameters_set_1aprilTagDeglitch_10(nativeObj, aprilTagDeglitch);
  499. }
  500. //
  501. // C++: bool DetectorParameters::detectInvertedMarker
  502. //
  503. public bool get_detectInvertedMarker()
  504. {
  505. ThrowIfDisposed();
  506. return objdetect_DetectorParameters_get_1detectInvertedMarker_10(nativeObj);
  507. }
  508. //
  509. // C++: void DetectorParameters::detectInvertedMarker
  510. //
  511. public void set_detectInvertedMarker(bool detectInvertedMarker)
  512. {
  513. ThrowIfDisposed();
  514. objdetect_DetectorParameters_set_1detectInvertedMarker_10(nativeObj, detectInvertedMarker);
  515. }
  516. //
  517. // C++: bool DetectorParameters::useAruco3Detection
  518. //
  519. public bool get_useAruco3Detection()
  520. {
  521. ThrowIfDisposed();
  522. return objdetect_DetectorParameters_get_1useAruco3Detection_10(nativeObj);
  523. }
  524. //
  525. // C++: void DetectorParameters::useAruco3Detection
  526. //
  527. public void set_useAruco3Detection(bool useAruco3Detection)
  528. {
  529. ThrowIfDisposed();
  530. objdetect_DetectorParameters_set_1useAruco3Detection_10(nativeObj, useAruco3Detection);
  531. }
  532. //
  533. // C++: int DetectorParameters::minSideLengthCanonicalImg
  534. //
  535. public int get_minSideLengthCanonicalImg()
  536. {
  537. ThrowIfDisposed();
  538. return objdetect_DetectorParameters_get_1minSideLengthCanonicalImg_10(nativeObj);
  539. }
  540. //
  541. // C++: void DetectorParameters::minSideLengthCanonicalImg
  542. //
  543. public void set_minSideLengthCanonicalImg(int minSideLengthCanonicalImg)
  544. {
  545. ThrowIfDisposed();
  546. objdetect_DetectorParameters_set_1minSideLengthCanonicalImg_10(nativeObj, minSideLengthCanonicalImg);
  547. }
  548. //
  549. // C++: float DetectorParameters::minMarkerLengthRatioOriginalImg
  550. //
  551. public float get_minMarkerLengthRatioOriginalImg()
  552. {
  553. ThrowIfDisposed();
  554. return objdetect_DetectorParameters_get_1minMarkerLengthRatioOriginalImg_10(nativeObj);
  555. }
  556. //
  557. // C++: void DetectorParameters::minMarkerLengthRatioOriginalImg
  558. //
  559. public void set_minMarkerLengthRatioOriginalImg(float minMarkerLengthRatioOriginalImg)
  560. {
  561. ThrowIfDisposed();
  562. objdetect_DetectorParameters_set_1minMarkerLengthRatioOriginalImg_10(nativeObj, minMarkerLengthRatioOriginalImg);
  563. }
  564. #if (UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR
  565. const string LIBNAME = "__Internal";
  566. #else
  567. const string LIBNAME = "opencvforunity";
  568. #endif
  569. // C++: cv::aruco::DetectorParameters::DetectorParameters()
  570. [DllImport(LIBNAME)]
  571. private static extern IntPtr objdetect_DetectorParameters_DetectorParameters_10();
  572. // C++: int DetectorParameters::adaptiveThreshWinSizeMin
  573. [DllImport(LIBNAME)]
  574. private static extern int objdetect_DetectorParameters_get_1adaptiveThreshWinSizeMin_10(IntPtr nativeObj);
  575. // C++: void DetectorParameters::adaptiveThreshWinSizeMin
  576. [DllImport(LIBNAME)]
  577. private static extern void objdetect_DetectorParameters_set_1adaptiveThreshWinSizeMin_10(IntPtr nativeObj, int adaptiveThreshWinSizeMin);
  578. // C++: int DetectorParameters::adaptiveThreshWinSizeMax
  579. [DllImport(LIBNAME)]
  580. private static extern int objdetect_DetectorParameters_get_1adaptiveThreshWinSizeMax_10(IntPtr nativeObj);
  581. // C++: void DetectorParameters::adaptiveThreshWinSizeMax
  582. [DllImport(LIBNAME)]
  583. private static extern void objdetect_DetectorParameters_set_1adaptiveThreshWinSizeMax_10(IntPtr nativeObj, int adaptiveThreshWinSizeMax);
  584. // C++: int DetectorParameters::adaptiveThreshWinSizeStep
  585. [DllImport(LIBNAME)]
  586. private static extern int objdetect_DetectorParameters_get_1adaptiveThreshWinSizeStep_10(IntPtr nativeObj);
  587. // C++: void DetectorParameters::adaptiveThreshWinSizeStep
  588. [DllImport(LIBNAME)]
  589. private static extern void objdetect_DetectorParameters_set_1adaptiveThreshWinSizeStep_10(IntPtr nativeObj, int adaptiveThreshWinSizeStep);
  590. // C++: double DetectorParameters::adaptiveThreshConstant
  591. [DllImport(LIBNAME)]
  592. private static extern double objdetect_DetectorParameters_get_1adaptiveThreshConstant_10(IntPtr nativeObj);
  593. // C++: void DetectorParameters::adaptiveThreshConstant
  594. [DllImport(LIBNAME)]
  595. private static extern void objdetect_DetectorParameters_set_1adaptiveThreshConstant_10(IntPtr nativeObj, double adaptiveThreshConstant);
  596. // C++: double DetectorParameters::minMarkerPerimeterRate
  597. [DllImport(LIBNAME)]
  598. private static extern double objdetect_DetectorParameters_get_1minMarkerPerimeterRate_10(IntPtr nativeObj);
  599. // C++: void DetectorParameters::minMarkerPerimeterRate
  600. [DllImport(LIBNAME)]
  601. private static extern void objdetect_DetectorParameters_set_1minMarkerPerimeterRate_10(IntPtr nativeObj, double minMarkerPerimeterRate);
  602. // C++: double DetectorParameters::maxMarkerPerimeterRate
  603. [DllImport(LIBNAME)]
  604. private static extern double objdetect_DetectorParameters_get_1maxMarkerPerimeterRate_10(IntPtr nativeObj);
  605. // C++: void DetectorParameters::maxMarkerPerimeterRate
  606. [DllImport(LIBNAME)]
  607. private static extern void objdetect_DetectorParameters_set_1maxMarkerPerimeterRate_10(IntPtr nativeObj, double maxMarkerPerimeterRate);
  608. // C++: double DetectorParameters::polygonalApproxAccuracyRate
  609. [DllImport(LIBNAME)]
  610. private static extern double objdetect_DetectorParameters_get_1polygonalApproxAccuracyRate_10(IntPtr nativeObj);
  611. // C++: void DetectorParameters::polygonalApproxAccuracyRate
  612. [DllImport(LIBNAME)]
  613. private static extern void objdetect_DetectorParameters_set_1polygonalApproxAccuracyRate_10(IntPtr nativeObj, double polygonalApproxAccuracyRate);
  614. // C++: double DetectorParameters::minCornerDistanceRate
  615. [DllImport(LIBNAME)]
  616. private static extern double objdetect_DetectorParameters_get_1minCornerDistanceRate_10(IntPtr nativeObj);
  617. // C++: void DetectorParameters::minCornerDistanceRate
  618. [DllImport(LIBNAME)]
  619. private static extern void objdetect_DetectorParameters_set_1minCornerDistanceRate_10(IntPtr nativeObj, double minCornerDistanceRate);
  620. // C++: int DetectorParameters::minDistanceToBorder
  621. [DllImport(LIBNAME)]
  622. private static extern int objdetect_DetectorParameters_get_1minDistanceToBorder_10(IntPtr nativeObj);
  623. // C++: void DetectorParameters::minDistanceToBorder
  624. [DllImport(LIBNAME)]
  625. private static extern void objdetect_DetectorParameters_set_1minDistanceToBorder_10(IntPtr nativeObj, int minDistanceToBorder);
  626. // C++: double DetectorParameters::minMarkerDistanceRate
  627. [DllImport(LIBNAME)]
  628. private static extern double objdetect_DetectorParameters_get_1minMarkerDistanceRate_10(IntPtr nativeObj);
  629. // C++: void DetectorParameters::minMarkerDistanceRate
  630. [DllImport(LIBNAME)]
  631. private static extern void objdetect_DetectorParameters_set_1minMarkerDistanceRate_10(IntPtr nativeObj, double minMarkerDistanceRate);
  632. // C++: int DetectorParameters::cornerRefinementMethod
  633. [DllImport(LIBNAME)]
  634. private static extern int objdetect_DetectorParameters_get_1cornerRefinementMethod_10(IntPtr nativeObj);
  635. // C++: void DetectorParameters::cornerRefinementMethod
  636. [DllImport(LIBNAME)]
  637. private static extern void objdetect_DetectorParameters_set_1cornerRefinementMethod_10(IntPtr nativeObj, int cornerRefinementMethod);
  638. // C++: int DetectorParameters::cornerRefinementWinSize
  639. [DllImport(LIBNAME)]
  640. private static extern int objdetect_DetectorParameters_get_1cornerRefinementWinSize_10(IntPtr nativeObj);
  641. // C++: void DetectorParameters::cornerRefinementWinSize
  642. [DllImport(LIBNAME)]
  643. private static extern void objdetect_DetectorParameters_set_1cornerRefinementWinSize_10(IntPtr nativeObj, int cornerRefinementWinSize);
  644. // C++: int DetectorParameters::cornerRefinementMaxIterations
  645. [DllImport(LIBNAME)]
  646. private static extern int objdetect_DetectorParameters_get_1cornerRefinementMaxIterations_10(IntPtr nativeObj);
  647. // C++: void DetectorParameters::cornerRefinementMaxIterations
  648. [DllImport(LIBNAME)]
  649. private static extern void objdetect_DetectorParameters_set_1cornerRefinementMaxIterations_10(IntPtr nativeObj, int cornerRefinementMaxIterations);
  650. // C++: double DetectorParameters::cornerRefinementMinAccuracy
  651. [DllImport(LIBNAME)]
  652. private static extern double objdetect_DetectorParameters_get_1cornerRefinementMinAccuracy_10(IntPtr nativeObj);
  653. // C++: void DetectorParameters::cornerRefinementMinAccuracy
  654. [DllImport(LIBNAME)]
  655. private static extern void objdetect_DetectorParameters_set_1cornerRefinementMinAccuracy_10(IntPtr nativeObj, double cornerRefinementMinAccuracy);
  656. // C++: int DetectorParameters::markerBorderBits
  657. [DllImport(LIBNAME)]
  658. private static extern int objdetect_DetectorParameters_get_1markerBorderBits_10(IntPtr nativeObj);
  659. // C++: void DetectorParameters::markerBorderBits
  660. [DllImport(LIBNAME)]
  661. private static extern void objdetect_DetectorParameters_set_1markerBorderBits_10(IntPtr nativeObj, int markerBorderBits);
  662. // C++: int DetectorParameters::perspectiveRemovePixelPerCell
  663. [DllImport(LIBNAME)]
  664. private static extern int objdetect_DetectorParameters_get_1perspectiveRemovePixelPerCell_10(IntPtr nativeObj);
  665. // C++: void DetectorParameters::perspectiveRemovePixelPerCell
  666. [DllImport(LIBNAME)]
  667. private static extern void objdetect_DetectorParameters_set_1perspectiveRemovePixelPerCell_10(IntPtr nativeObj, int perspectiveRemovePixelPerCell);
  668. // C++: double DetectorParameters::perspectiveRemoveIgnoredMarginPerCell
  669. [DllImport(LIBNAME)]
  670. private static extern double objdetect_DetectorParameters_get_1perspectiveRemoveIgnoredMarginPerCell_10(IntPtr nativeObj);
  671. // C++: void DetectorParameters::perspectiveRemoveIgnoredMarginPerCell
  672. [DllImport(LIBNAME)]
  673. private static extern void objdetect_DetectorParameters_set_1perspectiveRemoveIgnoredMarginPerCell_10(IntPtr nativeObj, double perspectiveRemoveIgnoredMarginPerCell);
  674. // C++: double DetectorParameters::maxErroneousBitsInBorderRate
  675. [DllImport(LIBNAME)]
  676. private static extern double objdetect_DetectorParameters_get_1maxErroneousBitsInBorderRate_10(IntPtr nativeObj);
  677. // C++: void DetectorParameters::maxErroneousBitsInBorderRate
  678. [DllImport(LIBNAME)]
  679. private static extern void objdetect_DetectorParameters_set_1maxErroneousBitsInBorderRate_10(IntPtr nativeObj, double maxErroneousBitsInBorderRate);
  680. // C++: double DetectorParameters::minOtsuStdDev
  681. [DllImport(LIBNAME)]
  682. private static extern double objdetect_DetectorParameters_get_1minOtsuStdDev_10(IntPtr nativeObj);
  683. // C++: void DetectorParameters::minOtsuStdDev
  684. [DllImport(LIBNAME)]
  685. private static extern void objdetect_DetectorParameters_set_1minOtsuStdDev_10(IntPtr nativeObj, double minOtsuStdDev);
  686. // C++: double DetectorParameters::errorCorrectionRate
  687. [DllImport(LIBNAME)]
  688. private static extern double objdetect_DetectorParameters_get_1errorCorrectionRate_10(IntPtr nativeObj);
  689. // C++: void DetectorParameters::errorCorrectionRate
  690. [DllImport(LIBNAME)]
  691. private static extern void objdetect_DetectorParameters_set_1errorCorrectionRate_10(IntPtr nativeObj, double errorCorrectionRate);
  692. // C++: float DetectorParameters::aprilTagQuadDecimate
  693. [DllImport(LIBNAME)]
  694. private static extern float objdetect_DetectorParameters_get_1aprilTagQuadDecimate_10(IntPtr nativeObj);
  695. // C++: void DetectorParameters::aprilTagQuadDecimate
  696. [DllImport(LIBNAME)]
  697. private static extern void objdetect_DetectorParameters_set_1aprilTagQuadDecimate_10(IntPtr nativeObj, float aprilTagQuadDecimate);
  698. // C++: float DetectorParameters::aprilTagQuadSigma
  699. [DllImport(LIBNAME)]
  700. private static extern float objdetect_DetectorParameters_get_1aprilTagQuadSigma_10(IntPtr nativeObj);
  701. // C++: void DetectorParameters::aprilTagQuadSigma
  702. [DllImport(LIBNAME)]
  703. private static extern void objdetect_DetectorParameters_set_1aprilTagQuadSigma_10(IntPtr nativeObj, float aprilTagQuadSigma);
  704. // C++: int DetectorParameters::aprilTagMinClusterPixels
  705. [DllImport(LIBNAME)]
  706. private static extern int objdetect_DetectorParameters_get_1aprilTagMinClusterPixels_10(IntPtr nativeObj);
  707. // C++: void DetectorParameters::aprilTagMinClusterPixels
  708. [DllImport(LIBNAME)]
  709. private static extern void objdetect_DetectorParameters_set_1aprilTagMinClusterPixels_10(IntPtr nativeObj, int aprilTagMinClusterPixels);
  710. // C++: int DetectorParameters::aprilTagMaxNmaxima
  711. [DllImport(LIBNAME)]
  712. private static extern int objdetect_DetectorParameters_get_1aprilTagMaxNmaxima_10(IntPtr nativeObj);
  713. // C++: void DetectorParameters::aprilTagMaxNmaxima
  714. [DllImport(LIBNAME)]
  715. private static extern void objdetect_DetectorParameters_set_1aprilTagMaxNmaxima_10(IntPtr nativeObj, int aprilTagMaxNmaxima);
  716. // C++: float DetectorParameters::aprilTagCriticalRad
  717. [DllImport(LIBNAME)]
  718. private static extern float objdetect_DetectorParameters_get_1aprilTagCriticalRad_10(IntPtr nativeObj);
  719. // C++: void DetectorParameters::aprilTagCriticalRad
  720. [DllImport(LIBNAME)]
  721. private static extern void objdetect_DetectorParameters_set_1aprilTagCriticalRad_10(IntPtr nativeObj, float aprilTagCriticalRad);
  722. // C++: float DetectorParameters::aprilTagMaxLineFitMse
  723. [DllImport(LIBNAME)]
  724. private static extern float objdetect_DetectorParameters_get_1aprilTagMaxLineFitMse_10(IntPtr nativeObj);
  725. // C++: void DetectorParameters::aprilTagMaxLineFitMse
  726. [DllImport(LIBNAME)]
  727. private static extern void objdetect_DetectorParameters_set_1aprilTagMaxLineFitMse_10(IntPtr nativeObj, float aprilTagMaxLineFitMse);
  728. // C++: int DetectorParameters::aprilTagMinWhiteBlackDiff
  729. [DllImport(LIBNAME)]
  730. private static extern int objdetect_DetectorParameters_get_1aprilTagMinWhiteBlackDiff_10(IntPtr nativeObj);
  731. // C++: void DetectorParameters::aprilTagMinWhiteBlackDiff
  732. [DllImport(LIBNAME)]
  733. private static extern void objdetect_DetectorParameters_set_1aprilTagMinWhiteBlackDiff_10(IntPtr nativeObj, int aprilTagMinWhiteBlackDiff);
  734. // C++: int DetectorParameters::aprilTagDeglitch
  735. [DllImport(LIBNAME)]
  736. private static extern int objdetect_DetectorParameters_get_1aprilTagDeglitch_10(IntPtr nativeObj);
  737. // C++: void DetectorParameters::aprilTagDeglitch
  738. [DllImport(LIBNAME)]
  739. private static extern void objdetect_DetectorParameters_set_1aprilTagDeglitch_10(IntPtr nativeObj, int aprilTagDeglitch);
  740. // C++: bool DetectorParameters::detectInvertedMarker
  741. [DllImport(LIBNAME)]
  742. [return: MarshalAs(UnmanagedType.U1)]
  743. private static extern bool objdetect_DetectorParameters_get_1detectInvertedMarker_10(IntPtr nativeObj);
  744. // C++: void DetectorParameters::detectInvertedMarker
  745. [DllImport(LIBNAME)]
  746. private static extern void objdetect_DetectorParameters_set_1detectInvertedMarker_10(IntPtr nativeObj, [MarshalAs(UnmanagedType.U1)] bool detectInvertedMarker);
  747. // C++: bool DetectorParameters::useAruco3Detection
  748. [DllImport(LIBNAME)]
  749. [return: MarshalAs(UnmanagedType.U1)]
  750. private static extern bool objdetect_DetectorParameters_get_1useAruco3Detection_10(IntPtr nativeObj);
  751. // C++: void DetectorParameters::useAruco3Detection
  752. [DllImport(LIBNAME)]
  753. private static extern void objdetect_DetectorParameters_set_1useAruco3Detection_10(IntPtr nativeObj, [MarshalAs(UnmanagedType.U1)] bool useAruco3Detection);
  754. // C++: int DetectorParameters::minSideLengthCanonicalImg
  755. [DllImport(LIBNAME)]
  756. private static extern int objdetect_DetectorParameters_get_1minSideLengthCanonicalImg_10(IntPtr nativeObj);
  757. // C++: void DetectorParameters::minSideLengthCanonicalImg
  758. [DllImport(LIBNAME)]
  759. private static extern void objdetect_DetectorParameters_set_1minSideLengthCanonicalImg_10(IntPtr nativeObj, int minSideLengthCanonicalImg);
  760. // C++: float DetectorParameters::minMarkerLengthRatioOriginalImg
  761. [DllImport(LIBNAME)]
  762. private static extern float objdetect_DetectorParameters_get_1minMarkerLengthRatioOriginalImg_10(IntPtr nativeObj);
  763. // C++: void DetectorParameters::minMarkerLengthRatioOriginalImg
  764. [DllImport(LIBNAME)]
  765. private static extern void objdetect_DetectorParameters_set_1minMarkerLengthRatioOriginalImg_10(IntPtr nativeObj, float minMarkerLengthRatioOriginalImg);
  766. // native support for java finalize()
  767. [DllImport(LIBNAME)]
  768. private static extern void objdetect_DetectorParameters_delete(IntPtr nativeObj);
  769. }
  770. }