DualTVL1OpticalFlow.cs 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809
  1. 
  2. using OpenCVForUnity.CoreModule;
  3. using OpenCVForUnity.VideoModule;
  4. using OpenCVForUnity.UtilsModule;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.Runtime.InteropServices;
  8. namespace OpenCVForUnity.OptflowModule
  9. {
  10. // C++: class DualTVL1OpticalFlow
  11. //javadoc: DualTVL1OpticalFlow
  12. public class DualTVL1OpticalFlow : DenseOpticalFlow
  13. {
  14. protected override void Dispose (bool disposing)
  15. {
  16. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  17. try {
  18. if (disposing) {
  19. }
  20. if (IsEnabledDispose) {
  21. if (nativeObj != IntPtr.Zero)
  22. optflow_DualTVL1OpticalFlow_delete(nativeObj);
  23. nativeObj = IntPtr.Zero;
  24. }
  25. } finally {
  26. base.Dispose (disposing);
  27. }
  28. #else
  29. return;
  30. #endif
  31. }
  32. protected internal DualTVL1OpticalFlow (IntPtr addr) : base (addr) { }
  33. // internal usage only
  34. public static new DualTVL1OpticalFlow __fromPtr__ (IntPtr addr) { return new DualTVL1OpticalFlow (addr); }
  35. //
  36. // C++: static Ptr_DualTVL1OpticalFlow cv::optflow::DualTVL1OpticalFlow::create(double tau = 0.25, double lambda = 0.15, double theta = 0.3, int nscales = 5, int warps = 5, double epsilon = 0.01, int innnerIterations = 30, int outerIterations = 10, double scaleStep = 0.8, double gamma = 0.0, int medianFiltering = 5, bool useInitialFlow = false)
  37. //
  38. //javadoc: DualTVL1OpticalFlow::create(tau, lambda, theta, nscales, warps, epsilon, innnerIterations, outerIterations, scaleStep, gamma, medianFiltering, useInitialFlow)
  39. public static DualTVL1OpticalFlow create (double tau, double lambda, double theta, int nscales, int warps, double epsilon, int innnerIterations, int outerIterations, double scaleStep, double gamma, int medianFiltering, bool useInitialFlow)
  40. {
  41. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  42. DualTVL1OpticalFlow retVal = DualTVL1OpticalFlow.__fromPtr__(optflow_DualTVL1OpticalFlow_create_10(tau, lambda, theta, nscales, warps, epsilon, innnerIterations, outerIterations, scaleStep, gamma, medianFiltering, useInitialFlow));
  43. return retVal;
  44. #else
  45. return null;
  46. #endif
  47. }
  48. //javadoc: DualTVL1OpticalFlow::create(tau, lambda, theta, nscales, warps, epsilon, innnerIterations, outerIterations, scaleStep, gamma, medianFiltering)
  49. public static DualTVL1OpticalFlow create (double tau, double lambda, double theta, int nscales, int warps, double epsilon, int innnerIterations, int outerIterations, double scaleStep, double gamma, int medianFiltering)
  50. {
  51. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  52. DualTVL1OpticalFlow retVal = DualTVL1OpticalFlow.__fromPtr__(optflow_DualTVL1OpticalFlow_create_11(tau, lambda, theta, nscales, warps, epsilon, innnerIterations, outerIterations, scaleStep, gamma, medianFiltering));
  53. return retVal;
  54. #else
  55. return null;
  56. #endif
  57. }
  58. //javadoc: DualTVL1OpticalFlow::create(tau, lambda, theta, nscales, warps, epsilon, innnerIterations, outerIterations, scaleStep, gamma)
  59. public static DualTVL1OpticalFlow create (double tau, double lambda, double theta, int nscales, int warps, double epsilon, int innnerIterations, int outerIterations, double scaleStep, double gamma)
  60. {
  61. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  62. DualTVL1OpticalFlow retVal = DualTVL1OpticalFlow.__fromPtr__(optflow_DualTVL1OpticalFlow_create_12(tau, lambda, theta, nscales, warps, epsilon, innnerIterations, outerIterations, scaleStep, gamma));
  63. return retVal;
  64. #else
  65. return null;
  66. #endif
  67. }
  68. //javadoc: DualTVL1OpticalFlow::create(tau, lambda, theta, nscales, warps, epsilon, innnerIterations, outerIterations, scaleStep)
  69. public static DualTVL1OpticalFlow create (double tau, double lambda, double theta, int nscales, int warps, double epsilon, int innnerIterations, int outerIterations, double scaleStep)
  70. {
  71. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  72. DualTVL1OpticalFlow retVal = DualTVL1OpticalFlow.__fromPtr__(optflow_DualTVL1OpticalFlow_create_13(tau, lambda, theta, nscales, warps, epsilon, innnerIterations, outerIterations, scaleStep));
  73. return retVal;
  74. #else
  75. return null;
  76. #endif
  77. }
  78. //javadoc: DualTVL1OpticalFlow::create(tau, lambda, theta, nscales, warps, epsilon, innnerIterations, outerIterations)
  79. public static DualTVL1OpticalFlow create (double tau, double lambda, double theta, int nscales, int warps, double epsilon, int innnerIterations, int outerIterations)
  80. {
  81. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  82. DualTVL1OpticalFlow retVal = DualTVL1OpticalFlow.__fromPtr__(optflow_DualTVL1OpticalFlow_create_14(tau, lambda, theta, nscales, warps, epsilon, innnerIterations, outerIterations));
  83. return retVal;
  84. #else
  85. return null;
  86. #endif
  87. }
  88. //javadoc: DualTVL1OpticalFlow::create(tau, lambda, theta, nscales, warps, epsilon, innnerIterations)
  89. public static DualTVL1OpticalFlow create (double tau, double lambda, double theta, int nscales, int warps, double epsilon, int innnerIterations)
  90. {
  91. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  92. DualTVL1OpticalFlow retVal = DualTVL1OpticalFlow.__fromPtr__(optflow_DualTVL1OpticalFlow_create_15(tau, lambda, theta, nscales, warps, epsilon, innnerIterations));
  93. return retVal;
  94. #else
  95. return null;
  96. #endif
  97. }
  98. //javadoc: DualTVL1OpticalFlow::create(tau, lambda, theta, nscales, warps, epsilon)
  99. public static DualTVL1OpticalFlow create (double tau, double lambda, double theta, int nscales, int warps, double epsilon)
  100. {
  101. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  102. DualTVL1OpticalFlow retVal = DualTVL1OpticalFlow.__fromPtr__(optflow_DualTVL1OpticalFlow_create_16(tau, lambda, theta, nscales, warps, epsilon));
  103. return retVal;
  104. #else
  105. return null;
  106. #endif
  107. }
  108. //javadoc: DualTVL1OpticalFlow::create(tau, lambda, theta, nscales, warps)
  109. public static DualTVL1OpticalFlow create (double tau, double lambda, double theta, int nscales, int warps)
  110. {
  111. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  112. DualTVL1OpticalFlow retVal = DualTVL1OpticalFlow.__fromPtr__(optflow_DualTVL1OpticalFlow_create_17(tau, lambda, theta, nscales, warps));
  113. return retVal;
  114. #else
  115. return null;
  116. #endif
  117. }
  118. //javadoc: DualTVL1OpticalFlow::create(tau, lambda, theta, nscales)
  119. public static DualTVL1OpticalFlow create (double tau, double lambda, double theta, int nscales)
  120. {
  121. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  122. DualTVL1OpticalFlow retVal = DualTVL1OpticalFlow.__fromPtr__(optflow_DualTVL1OpticalFlow_create_18(tau, lambda, theta, nscales));
  123. return retVal;
  124. #else
  125. return null;
  126. #endif
  127. }
  128. //javadoc: DualTVL1OpticalFlow::create(tau, lambda, theta)
  129. public static DualTVL1OpticalFlow create (double tau, double lambda, double theta)
  130. {
  131. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  132. DualTVL1OpticalFlow retVal = DualTVL1OpticalFlow.__fromPtr__(optflow_DualTVL1OpticalFlow_create_19(tau, lambda, theta));
  133. return retVal;
  134. #else
  135. return null;
  136. #endif
  137. }
  138. //javadoc: DualTVL1OpticalFlow::create(tau, lambda)
  139. public static DualTVL1OpticalFlow create (double tau, double lambda)
  140. {
  141. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  142. DualTVL1OpticalFlow retVal = DualTVL1OpticalFlow.__fromPtr__(optflow_DualTVL1OpticalFlow_create_110(tau, lambda));
  143. return retVal;
  144. #else
  145. return null;
  146. #endif
  147. }
  148. //javadoc: DualTVL1OpticalFlow::create(tau)
  149. public static DualTVL1OpticalFlow create (double tau)
  150. {
  151. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  152. DualTVL1OpticalFlow retVal = DualTVL1OpticalFlow.__fromPtr__(optflow_DualTVL1OpticalFlow_create_111(tau));
  153. return retVal;
  154. #else
  155. return null;
  156. #endif
  157. }
  158. //javadoc: DualTVL1OpticalFlow::create()
  159. public static DualTVL1OpticalFlow create ()
  160. {
  161. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  162. DualTVL1OpticalFlow retVal = DualTVL1OpticalFlow.__fromPtr__(optflow_DualTVL1OpticalFlow_create_112());
  163. return retVal;
  164. #else
  165. return null;
  166. #endif
  167. }
  168. //
  169. // C++: bool cv::optflow::DualTVL1OpticalFlow::getUseInitialFlow()
  170. //
  171. //javadoc: DualTVL1OpticalFlow::getUseInitialFlow()
  172. public bool getUseInitialFlow ()
  173. {
  174. ThrowIfDisposed ();
  175. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  176. bool retVal = optflow_DualTVL1OpticalFlow_getUseInitialFlow_10(nativeObj);
  177. return retVal;
  178. #else
  179. return false;
  180. #endif
  181. }
  182. //
  183. // C++: double cv::optflow::DualTVL1OpticalFlow::getEpsilon()
  184. //
  185. //javadoc: DualTVL1OpticalFlow::getEpsilon()
  186. public double getEpsilon ()
  187. {
  188. ThrowIfDisposed ();
  189. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  190. double retVal = optflow_DualTVL1OpticalFlow_getEpsilon_10(nativeObj);
  191. return retVal;
  192. #else
  193. return -1;
  194. #endif
  195. }
  196. //
  197. // C++: double cv::optflow::DualTVL1OpticalFlow::getGamma()
  198. //
  199. //javadoc: DualTVL1OpticalFlow::getGamma()
  200. public double getGamma ()
  201. {
  202. ThrowIfDisposed ();
  203. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  204. double retVal = optflow_DualTVL1OpticalFlow_getGamma_10(nativeObj);
  205. return retVal;
  206. #else
  207. return -1;
  208. #endif
  209. }
  210. //
  211. // C++: double cv::optflow::DualTVL1OpticalFlow::getLambda()
  212. //
  213. //javadoc: DualTVL1OpticalFlow::getLambda()
  214. public double getLambda ()
  215. {
  216. ThrowIfDisposed ();
  217. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  218. double retVal = optflow_DualTVL1OpticalFlow_getLambda_10(nativeObj);
  219. return retVal;
  220. #else
  221. return -1;
  222. #endif
  223. }
  224. //
  225. // C++: double cv::optflow::DualTVL1OpticalFlow::getScaleStep()
  226. //
  227. //javadoc: DualTVL1OpticalFlow::getScaleStep()
  228. public double getScaleStep ()
  229. {
  230. ThrowIfDisposed ();
  231. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  232. double retVal = optflow_DualTVL1OpticalFlow_getScaleStep_10(nativeObj);
  233. return retVal;
  234. #else
  235. return -1;
  236. #endif
  237. }
  238. //
  239. // C++: double cv::optflow::DualTVL1OpticalFlow::getTau()
  240. //
  241. //javadoc: DualTVL1OpticalFlow::getTau()
  242. public double getTau ()
  243. {
  244. ThrowIfDisposed ();
  245. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  246. double retVal = optflow_DualTVL1OpticalFlow_getTau_10(nativeObj);
  247. return retVal;
  248. #else
  249. return -1;
  250. #endif
  251. }
  252. //
  253. // C++: double cv::optflow::DualTVL1OpticalFlow::getTheta()
  254. //
  255. //javadoc: DualTVL1OpticalFlow::getTheta()
  256. public double getTheta ()
  257. {
  258. ThrowIfDisposed ();
  259. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  260. double retVal = optflow_DualTVL1OpticalFlow_getTheta_10(nativeObj);
  261. return retVal;
  262. #else
  263. return -1;
  264. #endif
  265. }
  266. //
  267. // C++: int cv::optflow::DualTVL1OpticalFlow::getInnerIterations()
  268. //
  269. //javadoc: DualTVL1OpticalFlow::getInnerIterations()
  270. public int getInnerIterations ()
  271. {
  272. ThrowIfDisposed ();
  273. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  274. int retVal = optflow_DualTVL1OpticalFlow_getInnerIterations_10(nativeObj);
  275. return retVal;
  276. #else
  277. return -1;
  278. #endif
  279. }
  280. //
  281. // C++: int cv::optflow::DualTVL1OpticalFlow::getMedianFiltering()
  282. //
  283. //javadoc: DualTVL1OpticalFlow::getMedianFiltering()
  284. public int getMedianFiltering ()
  285. {
  286. ThrowIfDisposed ();
  287. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  288. int retVal = optflow_DualTVL1OpticalFlow_getMedianFiltering_10(nativeObj);
  289. return retVal;
  290. #else
  291. return -1;
  292. #endif
  293. }
  294. //
  295. // C++: int cv::optflow::DualTVL1OpticalFlow::getOuterIterations()
  296. //
  297. //javadoc: DualTVL1OpticalFlow::getOuterIterations()
  298. public int getOuterIterations ()
  299. {
  300. ThrowIfDisposed ();
  301. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  302. int retVal = optflow_DualTVL1OpticalFlow_getOuterIterations_10(nativeObj);
  303. return retVal;
  304. #else
  305. return -1;
  306. #endif
  307. }
  308. //
  309. // C++: int cv::optflow::DualTVL1OpticalFlow::getScalesNumber()
  310. //
  311. //javadoc: DualTVL1OpticalFlow::getScalesNumber()
  312. public int getScalesNumber ()
  313. {
  314. ThrowIfDisposed ();
  315. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  316. int retVal = optflow_DualTVL1OpticalFlow_getScalesNumber_10(nativeObj);
  317. return retVal;
  318. #else
  319. return -1;
  320. #endif
  321. }
  322. //
  323. // C++: int cv::optflow::DualTVL1OpticalFlow::getWarpingsNumber()
  324. //
  325. //javadoc: DualTVL1OpticalFlow::getWarpingsNumber()
  326. public int getWarpingsNumber ()
  327. {
  328. ThrowIfDisposed ();
  329. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  330. int retVal = optflow_DualTVL1OpticalFlow_getWarpingsNumber_10(nativeObj);
  331. return retVal;
  332. #else
  333. return -1;
  334. #endif
  335. }
  336. //
  337. // C++: void cv::optflow::DualTVL1OpticalFlow::setEpsilon(double val)
  338. //
  339. //javadoc: DualTVL1OpticalFlow::setEpsilon(val)
  340. public void setEpsilon (double val)
  341. {
  342. ThrowIfDisposed ();
  343. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  344. optflow_DualTVL1OpticalFlow_setEpsilon_10(nativeObj, val);
  345. return;
  346. #else
  347. return;
  348. #endif
  349. }
  350. //
  351. // C++: void cv::optflow::DualTVL1OpticalFlow::setGamma(double val)
  352. //
  353. //javadoc: DualTVL1OpticalFlow::setGamma(val)
  354. public void setGamma (double val)
  355. {
  356. ThrowIfDisposed ();
  357. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  358. optflow_DualTVL1OpticalFlow_setGamma_10(nativeObj, val);
  359. return;
  360. #else
  361. return;
  362. #endif
  363. }
  364. //
  365. // C++: void cv::optflow::DualTVL1OpticalFlow::setInnerIterations(int val)
  366. //
  367. //javadoc: DualTVL1OpticalFlow::setInnerIterations(val)
  368. public void setInnerIterations (int val)
  369. {
  370. ThrowIfDisposed ();
  371. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  372. optflow_DualTVL1OpticalFlow_setInnerIterations_10(nativeObj, val);
  373. return;
  374. #else
  375. return;
  376. #endif
  377. }
  378. //
  379. // C++: void cv::optflow::DualTVL1OpticalFlow::setLambda(double val)
  380. //
  381. //javadoc: DualTVL1OpticalFlow::setLambda(val)
  382. public void setLambda (double val)
  383. {
  384. ThrowIfDisposed ();
  385. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  386. optflow_DualTVL1OpticalFlow_setLambda_10(nativeObj, val);
  387. return;
  388. #else
  389. return;
  390. #endif
  391. }
  392. //
  393. // C++: void cv::optflow::DualTVL1OpticalFlow::setMedianFiltering(int val)
  394. //
  395. //javadoc: DualTVL1OpticalFlow::setMedianFiltering(val)
  396. public void setMedianFiltering (int val)
  397. {
  398. ThrowIfDisposed ();
  399. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  400. optflow_DualTVL1OpticalFlow_setMedianFiltering_10(nativeObj, val);
  401. return;
  402. #else
  403. return;
  404. #endif
  405. }
  406. //
  407. // C++: void cv::optflow::DualTVL1OpticalFlow::setOuterIterations(int val)
  408. //
  409. //javadoc: DualTVL1OpticalFlow::setOuterIterations(val)
  410. public void setOuterIterations (int val)
  411. {
  412. ThrowIfDisposed ();
  413. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  414. optflow_DualTVL1OpticalFlow_setOuterIterations_10(nativeObj, val);
  415. return;
  416. #else
  417. return;
  418. #endif
  419. }
  420. //
  421. // C++: void cv::optflow::DualTVL1OpticalFlow::setScaleStep(double val)
  422. //
  423. //javadoc: DualTVL1OpticalFlow::setScaleStep(val)
  424. public void setScaleStep (double val)
  425. {
  426. ThrowIfDisposed ();
  427. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  428. optflow_DualTVL1OpticalFlow_setScaleStep_10(nativeObj, val);
  429. return;
  430. #else
  431. return;
  432. #endif
  433. }
  434. //
  435. // C++: void cv::optflow::DualTVL1OpticalFlow::setScalesNumber(int val)
  436. //
  437. //javadoc: DualTVL1OpticalFlow::setScalesNumber(val)
  438. public void setScalesNumber (int val)
  439. {
  440. ThrowIfDisposed ();
  441. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  442. optflow_DualTVL1OpticalFlow_setScalesNumber_10(nativeObj, val);
  443. return;
  444. #else
  445. return;
  446. #endif
  447. }
  448. //
  449. // C++: void cv::optflow::DualTVL1OpticalFlow::setTau(double val)
  450. //
  451. //javadoc: DualTVL1OpticalFlow::setTau(val)
  452. public void setTau (double val)
  453. {
  454. ThrowIfDisposed ();
  455. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  456. optflow_DualTVL1OpticalFlow_setTau_10(nativeObj, val);
  457. return;
  458. #else
  459. return;
  460. #endif
  461. }
  462. //
  463. // C++: void cv::optflow::DualTVL1OpticalFlow::setTheta(double val)
  464. //
  465. //javadoc: DualTVL1OpticalFlow::setTheta(val)
  466. public void setTheta (double val)
  467. {
  468. ThrowIfDisposed ();
  469. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  470. optflow_DualTVL1OpticalFlow_setTheta_10(nativeObj, val);
  471. return;
  472. #else
  473. return;
  474. #endif
  475. }
  476. //
  477. // C++: void cv::optflow::DualTVL1OpticalFlow::setUseInitialFlow(bool val)
  478. //
  479. //javadoc: DualTVL1OpticalFlow::setUseInitialFlow(val)
  480. public void setUseInitialFlow (bool val)
  481. {
  482. ThrowIfDisposed ();
  483. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  484. optflow_DualTVL1OpticalFlow_setUseInitialFlow_10(nativeObj, val);
  485. return;
  486. #else
  487. return;
  488. #endif
  489. }
  490. //
  491. // C++: void cv::optflow::DualTVL1OpticalFlow::setWarpingsNumber(int val)
  492. //
  493. //javadoc: DualTVL1OpticalFlow::setWarpingsNumber(val)
  494. public void setWarpingsNumber (int val)
  495. {
  496. ThrowIfDisposed ();
  497. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  498. optflow_DualTVL1OpticalFlow_setWarpingsNumber_10(nativeObj, val);
  499. return;
  500. #else
  501. return;
  502. #endif
  503. }
  504. #if (UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR
  505. const string LIBNAME = "__Internal";
  506. #else
  507. const string LIBNAME = "opencvforunity";
  508. #endif
  509. // C++: static Ptr_DualTVL1OpticalFlow cv::optflow::DualTVL1OpticalFlow::create(double tau = 0.25, double lambda = 0.15, double theta = 0.3, int nscales = 5, int warps = 5, double epsilon = 0.01, int innnerIterations = 30, int outerIterations = 10, double scaleStep = 0.8, double gamma = 0.0, int medianFiltering = 5, bool useInitialFlow = false)
  510. [DllImport (LIBNAME)]
  511. private static extern IntPtr optflow_DualTVL1OpticalFlow_create_10 (double tau, double lambda, double theta, int nscales, int warps, double epsilon, int innnerIterations, int outerIterations, double scaleStep, double gamma, int medianFiltering, bool useInitialFlow);
  512. [DllImport (LIBNAME)]
  513. private static extern IntPtr optflow_DualTVL1OpticalFlow_create_11 (double tau, double lambda, double theta, int nscales, int warps, double epsilon, int innnerIterations, int outerIterations, double scaleStep, double gamma, int medianFiltering);
  514. [DllImport (LIBNAME)]
  515. private static extern IntPtr optflow_DualTVL1OpticalFlow_create_12 (double tau, double lambda, double theta, int nscales, int warps, double epsilon, int innnerIterations, int outerIterations, double scaleStep, double gamma);
  516. [DllImport (LIBNAME)]
  517. private static extern IntPtr optflow_DualTVL1OpticalFlow_create_13 (double tau, double lambda, double theta, int nscales, int warps, double epsilon, int innnerIterations, int outerIterations, double scaleStep);
  518. [DllImport (LIBNAME)]
  519. private static extern IntPtr optflow_DualTVL1OpticalFlow_create_14 (double tau, double lambda, double theta, int nscales, int warps, double epsilon, int innnerIterations, int outerIterations);
  520. [DllImport (LIBNAME)]
  521. private static extern IntPtr optflow_DualTVL1OpticalFlow_create_15 (double tau, double lambda, double theta, int nscales, int warps, double epsilon, int innnerIterations);
  522. [DllImport (LIBNAME)]
  523. private static extern IntPtr optflow_DualTVL1OpticalFlow_create_16 (double tau, double lambda, double theta, int nscales, int warps, double epsilon);
  524. [DllImport (LIBNAME)]
  525. private static extern IntPtr optflow_DualTVL1OpticalFlow_create_17 (double tau, double lambda, double theta, int nscales, int warps);
  526. [DllImport (LIBNAME)]
  527. private static extern IntPtr optflow_DualTVL1OpticalFlow_create_18 (double tau, double lambda, double theta, int nscales);
  528. [DllImport (LIBNAME)]
  529. private static extern IntPtr optflow_DualTVL1OpticalFlow_create_19 (double tau, double lambda, double theta);
  530. [DllImport (LIBNAME)]
  531. private static extern IntPtr optflow_DualTVL1OpticalFlow_create_110 (double tau, double lambda);
  532. [DllImport (LIBNAME)]
  533. private static extern IntPtr optflow_DualTVL1OpticalFlow_create_111 (double tau);
  534. [DllImport (LIBNAME)]
  535. private static extern IntPtr optflow_DualTVL1OpticalFlow_create_112 ();
  536. // C++: bool cv::optflow::DualTVL1OpticalFlow::getUseInitialFlow()
  537. [DllImport (LIBNAME)]
  538. private static extern bool optflow_DualTVL1OpticalFlow_getUseInitialFlow_10 (IntPtr nativeObj);
  539. // C++: double cv::optflow::DualTVL1OpticalFlow::getEpsilon()
  540. [DllImport (LIBNAME)]
  541. private static extern double optflow_DualTVL1OpticalFlow_getEpsilon_10 (IntPtr nativeObj);
  542. // C++: double cv::optflow::DualTVL1OpticalFlow::getGamma()
  543. [DllImport (LIBNAME)]
  544. private static extern double optflow_DualTVL1OpticalFlow_getGamma_10 (IntPtr nativeObj);
  545. // C++: double cv::optflow::DualTVL1OpticalFlow::getLambda()
  546. [DllImport (LIBNAME)]
  547. private static extern double optflow_DualTVL1OpticalFlow_getLambda_10 (IntPtr nativeObj);
  548. // C++: double cv::optflow::DualTVL1OpticalFlow::getScaleStep()
  549. [DllImport (LIBNAME)]
  550. private static extern double optflow_DualTVL1OpticalFlow_getScaleStep_10 (IntPtr nativeObj);
  551. // C++: double cv::optflow::DualTVL1OpticalFlow::getTau()
  552. [DllImport (LIBNAME)]
  553. private static extern double optflow_DualTVL1OpticalFlow_getTau_10 (IntPtr nativeObj);
  554. // C++: double cv::optflow::DualTVL1OpticalFlow::getTheta()
  555. [DllImport (LIBNAME)]
  556. private static extern double optflow_DualTVL1OpticalFlow_getTheta_10 (IntPtr nativeObj);
  557. // C++: int cv::optflow::DualTVL1OpticalFlow::getInnerIterations()
  558. [DllImport (LIBNAME)]
  559. private static extern int optflow_DualTVL1OpticalFlow_getInnerIterations_10 (IntPtr nativeObj);
  560. // C++: int cv::optflow::DualTVL1OpticalFlow::getMedianFiltering()
  561. [DllImport (LIBNAME)]
  562. private static extern int optflow_DualTVL1OpticalFlow_getMedianFiltering_10 (IntPtr nativeObj);
  563. // C++: int cv::optflow::DualTVL1OpticalFlow::getOuterIterations()
  564. [DllImport (LIBNAME)]
  565. private static extern int optflow_DualTVL1OpticalFlow_getOuterIterations_10 (IntPtr nativeObj);
  566. // C++: int cv::optflow::DualTVL1OpticalFlow::getScalesNumber()
  567. [DllImport (LIBNAME)]
  568. private static extern int optflow_DualTVL1OpticalFlow_getScalesNumber_10 (IntPtr nativeObj);
  569. // C++: int cv::optflow::DualTVL1OpticalFlow::getWarpingsNumber()
  570. [DllImport (LIBNAME)]
  571. private static extern int optflow_DualTVL1OpticalFlow_getWarpingsNumber_10 (IntPtr nativeObj);
  572. // C++: void cv::optflow::DualTVL1OpticalFlow::setEpsilon(double val)
  573. [DllImport (LIBNAME)]
  574. private static extern void optflow_DualTVL1OpticalFlow_setEpsilon_10 (IntPtr nativeObj, double val);
  575. // C++: void cv::optflow::DualTVL1OpticalFlow::setGamma(double val)
  576. [DllImport (LIBNAME)]
  577. private static extern void optflow_DualTVL1OpticalFlow_setGamma_10 (IntPtr nativeObj, double val);
  578. // C++: void cv::optflow::DualTVL1OpticalFlow::setInnerIterations(int val)
  579. [DllImport (LIBNAME)]
  580. private static extern void optflow_DualTVL1OpticalFlow_setInnerIterations_10 (IntPtr nativeObj, int val);
  581. // C++: void cv::optflow::DualTVL1OpticalFlow::setLambda(double val)
  582. [DllImport (LIBNAME)]
  583. private static extern void optflow_DualTVL1OpticalFlow_setLambda_10 (IntPtr nativeObj, double val);
  584. // C++: void cv::optflow::DualTVL1OpticalFlow::setMedianFiltering(int val)
  585. [DllImport (LIBNAME)]
  586. private static extern void optflow_DualTVL1OpticalFlow_setMedianFiltering_10 (IntPtr nativeObj, int val);
  587. // C++: void cv::optflow::DualTVL1OpticalFlow::setOuterIterations(int val)
  588. [DllImport (LIBNAME)]
  589. private static extern void optflow_DualTVL1OpticalFlow_setOuterIterations_10 (IntPtr nativeObj, int val);
  590. // C++: void cv::optflow::DualTVL1OpticalFlow::setScaleStep(double val)
  591. [DllImport (LIBNAME)]
  592. private static extern void optflow_DualTVL1OpticalFlow_setScaleStep_10 (IntPtr nativeObj, double val);
  593. // C++: void cv::optflow::DualTVL1OpticalFlow::setScalesNumber(int val)
  594. [DllImport (LIBNAME)]
  595. private static extern void optflow_DualTVL1OpticalFlow_setScalesNumber_10 (IntPtr nativeObj, int val);
  596. // C++: void cv::optflow::DualTVL1OpticalFlow::setTau(double val)
  597. [DllImport (LIBNAME)]
  598. private static extern void optflow_DualTVL1OpticalFlow_setTau_10 (IntPtr nativeObj, double val);
  599. // C++: void cv::optflow::DualTVL1OpticalFlow::setTheta(double val)
  600. [DllImport (LIBNAME)]
  601. private static extern void optflow_DualTVL1OpticalFlow_setTheta_10 (IntPtr nativeObj, double val);
  602. // C++: void cv::optflow::DualTVL1OpticalFlow::setUseInitialFlow(bool val)
  603. [DllImport (LIBNAME)]
  604. private static extern void optflow_DualTVL1OpticalFlow_setUseInitialFlow_10 (IntPtr nativeObj, bool val);
  605. // C++: void cv::optflow::DualTVL1OpticalFlow::setWarpingsNumber(int val)
  606. [DllImport (LIBNAME)]
  607. private static extern void optflow_DualTVL1OpticalFlow_setWarpingsNumber_10 (IntPtr nativeObj, int val);
  608. // native support for java finalize()
  609. [DllImport (LIBNAME)]
  610. private static extern void optflow_DualTVL1OpticalFlow_delete (IntPtr nativeObj);
  611. }
  612. }