DualTVL1OpticalFlow.cs 26 KB

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