FarnebackOpticalFlow.cs 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564
  1. 
  2. using OpenCVForUnity.CoreModule;
  3. using OpenCVForUnity.UtilsModule;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Runtime.InteropServices;
  7. namespace OpenCVForUnity.VideoModule
  8. {
  9. // C++: class FarnebackOpticalFlow
  10. //javadoc: FarnebackOpticalFlow
  11. public class FarnebackOpticalFlow : DenseOpticalFlow
  12. {
  13. protected override void Dispose (bool disposing)
  14. {
  15. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  16. try {
  17. if (disposing) {
  18. }
  19. if (IsEnabledDispose) {
  20. if (nativeObj != IntPtr.Zero)
  21. video_FarnebackOpticalFlow_delete(nativeObj);
  22. nativeObj = IntPtr.Zero;
  23. }
  24. } finally {
  25. base.Dispose (disposing);
  26. }
  27. #else
  28. return;
  29. #endif
  30. }
  31. protected internal FarnebackOpticalFlow (IntPtr addr) : base (addr) { }
  32. // internal usage only
  33. public static new FarnebackOpticalFlow __fromPtr__ (IntPtr addr) { return new FarnebackOpticalFlow (addr); }
  34. //
  35. // C++: static Ptr_FarnebackOpticalFlow cv::FarnebackOpticalFlow::create(int numLevels = 5, double pyrScale = 0.5, bool fastPyramids = false, int winSize = 13, int numIters = 10, int polyN = 5, double polySigma = 1.1, int flags = 0)
  36. //
  37. //javadoc: FarnebackOpticalFlow::create(numLevels, pyrScale, fastPyramids, winSize, numIters, polyN, polySigma, flags)
  38. public static FarnebackOpticalFlow create (int numLevels, double pyrScale, bool fastPyramids, int winSize, int numIters, int polyN, double polySigma, int flags)
  39. {
  40. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  41. FarnebackOpticalFlow retVal = FarnebackOpticalFlow.__fromPtr__(video_FarnebackOpticalFlow_create_10(numLevels, pyrScale, fastPyramids, winSize, numIters, polyN, polySigma, flags));
  42. return retVal;
  43. #else
  44. return null;
  45. #endif
  46. }
  47. //javadoc: FarnebackOpticalFlow::create(numLevels, pyrScale, fastPyramids, winSize, numIters, polyN, polySigma)
  48. public static FarnebackOpticalFlow create (int numLevels, double pyrScale, bool fastPyramids, int winSize, int numIters, int polyN, double polySigma)
  49. {
  50. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  51. FarnebackOpticalFlow retVal = FarnebackOpticalFlow.__fromPtr__(video_FarnebackOpticalFlow_create_11(numLevels, pyrScale, fastPyramids, winSize, numIters, polyN, polySigma));
  52. return retVal;
  53. #else
  54. return null;
  55. #endif
  56. }
  57. //javadoc: FarnebackOpticalFlow::create(numLevels, pyrScale, fastPyramids, winSize, numIters, polyN)
  58. public static FarnebackOpticalFlow create (int numLevels, double pyrScale, bool fastPyramids, int winSize, int numIters, int polyN)
  59. {
  60. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  61. FarnebackOpticalFlow retVal = FarnebackOpticalFlow.__fromPtr__(video_FarnebackOpticalFlow_create_12(numLevels, pyrScale, fastPyramids, winSize, numIters, polyN));
  62. return retVal;
  63. #else
  64. return null;
  65. #endif
  66. }
  67. //javadoc: FarnebackOpticalFlow::create(numLevels, pyrScale, fastPyramids, winSize, numIters)
  68. public static FarnebackOpticalFlow create (int numLevels, double pyrScale, bool fastPyramids, int winSize, int numIters)
  69. {
  70. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  71. FarnebackOpticalFlow retVal = FarnebackOpticalFlow.__fromPtr__(video_FarnebackOpticalFlow_create_13(numLevels, pyrScale, fastPyramids, winSize, numIters));
  72. return retVal;
  73. #else
  74. return null;
  75. #endif
  76. }
  77. //javadoc: FarnebackOpticalFlow::create(numLevels, pyrScale, fastPyramids, winSize)
  78. public static FarnebackOpticalFlow create (int numLevels, double pyrScale, bool fastPyramids, int winSize)
  79. {
  80. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  81. FarnebackOpticalFlow retVal = FarnebackOpticalFlow.__fromPtr__(video_FarnebackOpticalFlow_create_14(numLevels, pyrScale, fastPyramids, winSize));
  82. return retVal;
  83. #else
  84. return null;
  85. #endif
  86. }
  87. //javadoc: FarnebackOpticalFlow::create(numLevels, pyrScale, fastPyramids)
  88. public static FarnebackOpticalFlow create (int numLevels, double pyrScale, bool fastPyramids)
  89. {
  90. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  91. FarnebackOpticalFlow retVal = FarnebackOpticalFlow.__fromPtr__(video_FarnebackOpticalFlow_create_15(numLevels, pyrScale, fastPyramids));
  92. return retVal;
  93. #else
  94. return null;
  95. #endif
  96. }
  97. //javadoc: FarnebackOpticalFlow::create(numLevels, pyrScale)
  98. public static FarnebackOpticalFlow create (int numLevels, double pyrScale)
  99. {
  100. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  101. FarnebackOpticalFlow retVal = FarnebackOpticalFlow.__fromPtr__(video_FarnebackOpticalFlow_create_16(numLevels, pyrScale));
  102. return retVal;
  103. #else
  104. return null;
  105. #endif
  106. }
  107. //javadoc: FarnebackOpticalFlow::create(numLevels)
  108. public static FarnebackOpticalFlow create (int numLevels)
  109. {
  110. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  111. FarnebackOpticalFlow retVal = FarnebackOpticalFlow.__fromPtr__(video_FarnebackOpticalFlow_create_17(numLevels));
  112. return retVal;
  113. #else
  114. return null;
  115. #endif
  116. }
  117. //javadoc: FarnebackOpticalFlow::create()
  118. public static FarnebackOpticalFlow create ()
  119. {
  120. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  121. FarnebackOpticalFlow retVal = FarnebackOpticalFlow.__fromPtr__(video_FarnebackOpticalFlow_create_18());
  122. return retVal;
  123. #else
  124. return null;
  125. #endif
  126. }
  127. //
  128. // C++: bool cv::FarnebackOpticalFlow::getFastPyramids()
  129. //
  130. //javadoc: FarnebackOpticalFlow::getFastPyramids()
  131. public bool getFastPyramids ()
  132. {
  133. ThrowIfDisposed ();
  134. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  135. bool retVal = video_FarnebackOpticalFlow_getFastPyramids_10(nativeObj);
  136. return retVal;
  137. #else
  138. return false;
  139. #endif
  140. }
  141. //
  142. // C++: double cv::FarnebackOpticalFlow::getPolySigma()
  143. //
  144. //javadoc: FarnebackOpticalFlow::getPolySigma()
  145. public double getPolySigma ()
  146. {
  147. ThrowIfDisposed ();
  148. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  149. double retVal = video_FarnebackOpticalFlow_getPolySigma_10(nativeObj);
  150. return retVal;
  151. #else
  152. return -1;
  153. #endif
  154. }
  155. //
  156. // C++: double cv::FarnebackOpticalFlow::getPyrScale()
  157. //
  158. //javadoc: FarnebackOpticalFlow::getPyrScale()
  159. public double getPyrScale ()
  160. {
  161. ThrowIfDisposed ();
  162. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  163. double retVal = video_FarnebackOpticalFlow_getPyrScale_10(nativeObj);
  164. return retVal;
  165. #else
  166. return -1;
  167. #endif
  168. }
  169. //
  170. // C++: int cv::FarnebackOpticalFlow::getFlags()
  171. //
  172. //javadoc: FarnebackOpticalFlow::getFlags()
  173. public int getFlags ()
  174. {
  175. ThrowIfDisposed ();
  176. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  177. int retVal = video_FarnebackOpticalFlow_getFlags_10(nativeObj);
  178. return retVal;
  179. #else
  180. return -1;
  181. #endif
  182. }
  183. //
  184. // C++: int cv::FarnebackOpticalFlow::getNumIters()
  185. //
  186. //javadoc: FarnebackOpticalFlow::getNumIters()
  187. public int getNumIters ()
  188. {
  189. ThrowIfDisposed ();
  190. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  191. int retVal = video_FarnebackOpticalFlow_getNumIters_10(nativeObj);
  192. return retVal;
  193. #else
  194. return -1;
  195. #endif
  196. }
  197. //
  198. // C++: int cv::FarnebackOpticalFlow::getNumLevels()
  199. //
  200. //javadoc: FarnebackOpticalFlow::getNumLevels()
  201. public int getNumLevels ()
  202. {
  203. ThrowIfDisposed ();
  204. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  205. int retVal = video_FarnebackOpticalFlow_getNumLevels_10(nativeObj);
  206. return retVal;
  207. #else
  208. return -1;
  209. #endif
  210. }
  211. //
  212. // C++: int cv::FarnebackOpticalFlow::getPolyN()
  213. //
  214. //javadoc: FarnebackOpticalFlow::getPolyN()
  215. public int getPolyN ()
  216. {
  217. ThrowIfDisposed ();
  218. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  219. int retVal = video_FarnebackOpticalFlow_getPolyN_10(nativeObj);
  220. return retVal;
  221. #else
  222. return -1;
  223. #endif
  224. }
  225. //
  226. // C++: int cv::FarnebackOpticalFlow::getWinSize()
  227. //
  228. //javadoc: FarnebackOpticalFlow::getWinSize()
  229. public int getWinSize ()
  230. {
  231. ThrowIfDisposed ();
  232. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  233. int retVal = video_FarnebackOpticalFlow_getWinSize_10(nativeObj);
  234. return retVal;
  235. #else
  236. return -1;
  237. #endif
  238. }
  239. //
  240. // C++: void cv::FarnebackOpticalFlow::setFastPyramids(bool fastPyramids)
  241. //
  242. //javadoc: FarnebackOpticalFlow::setFastPyramids(fastPyramids)
  243. public void setFastPyramids (bool fastPyramids)
  244. {
  245. ThrowIfDisposed ();
  246. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  247. video_FarnebackOpticalFlow_setFastPyramids_10(nativeObj, fastPyramids);
  248. return;
  249. #else
  250. return;
  251. #endif
  252. }
  253. //
  254. // C++: void cv::FarnebackOpticalFlow::setFlags(int flags)
  255. //
  256. //javadoc: FarnebackOpticalFlow::setFlags(flags)
  257. public void setFlags (int flags)
  258. {
  259. ThrowIfDisposed ();
  260. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  261. video_FarnebackOpticalFlow_setFlags_10(nativeObj, flags);
  262. return;
  263. #else
  264. return;
  265. #endif
  266. }
  267. //
  268. // C++: void cv::FarnebackOpticalFlow::setNumIters(int numIters)
  269. //
  270. //javadoc: FarnebackOpticalFlow::setNumIters(numIters)
  271. public void setNumIters (int numIters)
  272. {
  273. ThrowIfDisposed ();
  274. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  275. video_FarnebackOpticalFlow_setNumIters_10(nativeObj, numIters);
  276. return;
  277. #else
  278. return;
  279. #endif
  280. }
  281. //
  282. // C++: void cv::FarnebackOpticalFlow::setNumLevels(int numLevels)
  283. //
  284. //javadoc: FarnebackOpticalFlow::setNumLevels(numLevels)
  285. public void setNumLevels (int numLevels)
  286. {
  287. ThrowIfDisposed ();
  288. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  289. video_FarnebackOpticalFlow_setNumLevels_10(nativeObj, numLevels);
  290. return;
  291. #else
  292. return;
  293. #endif
  294. }
  295. //
  296. // C++: void cv::FarnebackOpticalFlow::setPolyN(int polyN)
  297. //
  298. //javadoc: FarnebackOpticalFlow::setPolyN(polyN)
  299. public void setPolyN (int polyN)
  300. {
  301. ThrowIfDisposed ();
  302. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  303. video_FarnebackOpticalFlow_setPolyN_10(nativeObj, polyN);
  304. return;
  305. #else
  306. return;
  307. #endif
  308. }
  309. //
  310. // C++: void cv::FarnebackOpticalFlow::setPolySigma(double polySigma)
  311. //
  312. //javadoc: FarnebackOpticalFlow::setPolySigma(polySigma)
  313. public void setPolySigma (double polySigma)
  314. {
  315. ThrowIfDisposed ();
  316. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  317. video_FarnebackOpticalFlow_setPolySigma_10(nativeObj, polySigma);
  318. return;
  319. #else
  320. return;
  321. #endif
  322. }
  323. //
  324. // C++: void cv::FarnebackOpticalFlow::setPyrScale(double pyrScale)
  325. //
  326. //javadoc: FarnebackOpticalFlow::setPyrScale(pyrScale)
  327. public void setPyrScale (double pyrScale)
  328. {
  329. ThrowIfDisposed ();
  330. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  331. video_FarnebackOpticalFlow_setPyrScale_10(nativeObj, pyrScale);
  332. return;
  333. #else
  334. return;
  335. #endif
  336. }
  337. //
  338. // C++: void cv::FarnebackOpticalFlow::setWinSize(int winSize)
  339. //
  340. //javadoc: FarnebackOpticalFlow::setWinSize(winSize)
  341. public void setWinSize (int winSize)
  342. {
  343. ThrowIfDisposed ();
  344. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  345. video_FarnebackOpticalFlow_setWinSize_10(nativeObj, winSize);
  346. return;
  347. #else
  348. return;
  349. #endif
  350. }
  351. #if (UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR
  352. const string LIBNAME = "__Internal";
  353. #else
  354. const string LIBNAME = "opencvforunity";
  355. #endif
  356. // C++: static Ptr_FarnebackOpticalFlow cv::FarnebackOpticalFlow::create(int numLevels = 5, double pyrScale = 0.5, bool fastPyramids = false, int winSize = 13, int numIters = 10, int polyN = 5, double polySigma = 1.1, int flags = 0)
  357. [DllImport (LIBNAME)]
  358. private static extern IntPtr video_FarnebackOpticalFlow_create_10 (int numLevels, double pyrScale, bool fastPyramids, int winSize, int numIters, int polyN, double polySigma, int flags);
  359. [DllImport (LIBNAME)]
  360. private static extern IntPtr video_FarnebackOpticalFlow_create_11 (int numLevels, double pyrScale, bool fastPyramids, int winSize, int numIters, int polyN, double polySigma);
  361. [DllImport (LIBNAME)]
  362. private static extern IntPtr video_FarnebackOpticalFlow_create_12 (int numLevels, double pyrScale, bool fastPyramids, int winSize, int numIters, int polyN);
  363. [DllImport (LIBNAME)]
  364. private static extern IntPtr video_FarnebackOpticalFlow_create_13 (int numLevels, double pyrScale, bool fastPyramids, int winSize, int numIters);
  365. [DllImport (LIBNAME)]
  366. private static extern IntPtr video_FarnebackOpticalFlow_create_14 (int numLevels, double pyrScale, bool fastPyramids, int winSize);
  367. [DllImport (LIBNAME)]
  368. private static extern IntPtr video_FarnebackOpticalFlow_create_15 (int numLevels, double pyrScale, bool fastPyramids);
  369. [DllImport (LIBNAME)]
  370. private static extern IntPtr video_FarnebackOpticalFlow_create_16 (int numLevels, double pyrScale);
  371. [DllImport (LIBNAME)]
  372. private static extern IntPtr video_FarnebackOpticalFlow_create_17 (int numLevels);
  373. [DllImport (LIBNAME)]
  374. private static extern IntPtr video_FarnebackOpticalFlow_create_18 ();
  375. // C++: bool cv::FarnebackOpticalFlow::getFastPyramids()
  376. [DllImport (LIBNAME)]
  377. private static extern bool video_FarnebackOpticalFlow_getFastPyramids_10 (IntPtr nativeObj);
  378. // C++: double cv::FarnebackOpticalFlow::getPolySigma()
  379. [DllImport (LIBNAME)]
  380. private static extern double video_FarnebackOpticalFlow_getPolySigma_10 (IntPtr nativeObj);
  381. // C++: double cv::FarnebackOpticalFlow::getPyrScale()
  382. [DllImport (LIBNAME)]
  383. private static extern double video_FarnebackOpticalFlow_getPyrScale_10 (IntPtr nativeObj);
  384. // C++: int cv::FarnebackOpticalFlow::getFlags()
  385. [DllImport (LIBNAME)]
  386. private static extern int video_FarnebackOpticalFlow_getFlags_10 (IntPtr nativeObj);
  387. // C++: int cv::FarnebackOpticalFlow::getNumIters()
  388. [DllImport (LIBNAME)]
  389. private static extern int video_FarnebackOpticalFlow_getNumIters_10 (IntPtr nativeObj);
  390. // C++: int cv::FarnebackOpticalFlow::getNumLevels()
  391. [DllImport (LIBNAME)]
  392. private static extern int video_FarnebackOpticalFlow_getNumLevels_10 (IntPtr nativeObj);
  393. // C++: int cv::FarnebackOpticalFlow::getPolyN()
  394. [DllImport (LIBNAME)]
  395. private static extern int video_FarnebackOpticalFlow_getPolyN_10 (IntPtr nativeObj);
  396. // C++: int cv::FarnebackOpticalFlow::getWinSize()
  397. [DllImport (LIBNAME)]
  398. private static extern int video_FarnebackOpticalFlow_getWinSize_10 (IntPtr nativeObj);
  399. // C++: void cv::FarnebackOpticalFlow::setFastPyramids(bool fastPyramids)
  400. [DllImport (LIBNAME)]
  401. private static extern void video_FarnebackOpticalFlow_setFastPyramids_10 (IntPtr nativeObj, bool fastPyramids);
  402. // C++: void cv::FarnebackOpticalFlow::setFlags(int flags)
  403. [DllImport (LIBNAME)]
  404. private static extern void video_FarnebackOpticalFlow_setFlags_10 (IntPtr nativeObj, int flags);
  405. // C++: void cv::FarnebackOpticalFlow::setNumIters(int numIters)
  406. [DllImport (LIBNAME)]
  407. private static extern void video_FarnebackOpticalFlow_setNumIters_10 (IntPtr nativeObj, int numIters);
  408. // C++: void cv::FarnebackOpticalFlow::setNumLevels(int numLevels)
  409. [DllImport (LIBNAME)]
  410. private static extern void video_FarnebackOpticalFlow_setNumLevels_10 (IntPtr nativeObj, int numLevels);
  411. // C++: void cv::FarnebackOpticalFlow::setPolyN(int polyN)
  412. [DllImport (LIBNAME)]
  413. private static extern void video_FarnebackOpticalFlow_setPolyN_10 (IntPtr nativeObj, int polyN);
  414. // C++: void cv::FarnebackOpticalFlow::setPolySigma(double polySigma)
  415. [DllImport (LIBNAME)]
  416. private static extern void video_FarnebackOpticalFlow_setPolySigma_10 (IntPtr nativeObj, double polySigma);
  417. // C++: void cv::FarnebackOpticalFlow::setPyrScale(double pyrScale)
  418. [DllImport (LIBNAME)]
  419. private static extern void video_FarnebackOpticalFlow_setPyrScale_10 (IntPtr nativeObj, double pyrScale);
  420. // C++: void cv::FarnebackOpticalFlow::setWinSize(int winSize)
  421. [DllImport (LIBNAME)]
  422. private static extern void video_FarnebackOpticalFlow_setWinSize_10 (IntPtr nativeObj, int winSize);
  423. // native support for java finalize()
  424. [DllImport (LIBNAME)]
  425. private static extern void video_FarnebackOpticalFlow_delete (IntPtr nativeObj);
  426. }
  427. }