BackgroundSubtractorMOG2.cs 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662
  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 BackgroundSubtractorMOG2
  10. //javadoc: BackgroundSubtractorMOG2
  11. public class BackgroundSubtractorMOG2 : BackgroundSubtractor
  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_BackgroundSubtractorMOG2_delete (nativeObj);
  22. nativeObj = IntPtr.Zero;
  23. }
  24. } finally {
  25. base.Dispose (disposing);
  26. }
  27. #else
  28. return;
  29. #endif
  30. }
  31. protected internal BackgroundSubtractorMOG2 (IntPtr addr)
  32. : base (addr)
  33. {
  34. }
  35. // internal usage only
  36. public static new BackgroundSubtractorMOG2 __fromPtr__ (IntPtr addr)
  37. {
  38. return new BackgroundSubtractorMOG2 (addr);
  39. }
  40. //
  41. // C++: bool cv::BackgroundSubtractorMOG2::getDetectShadows()
  42. //
  43. //javadoc: BackgroundSubtractorMOG2::getDetectShadows()
  44. public bool getDetectShadows ()
  45. {
  46. ThrowIfDisposed ();
  47. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  48. bool retVal = video_BackgroundSubtractorMOG2_getDetectShadows_10 (nativeObj);
  49. return retVal;
  50. #else
  51. return false;
  52. #endif
  53. }
  54. //
  55. // C++: double cv::BackgroundSubtractorMOG2::getBackgroundRatio()
  56. //
  57. //javadoc: BackgroundSubtractorMOG2::getBackgroundRatio()
  58. public double getBackgroundRatio ()
  59. {
  60. ThrowIfDisposed ();
  61. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  62. double retVal = video_BackgroundSubtractorMOG2_getBackgroundRatio_10 (nativeObj);
  63. return retVal;
  64. #else
  65. return -1;
  66. #endif
  67. }
  68. //
  69. // C++: double cv::BackgroundSubtractorMOG2::getComplexityReductionThreshold()
  70. //
  71. //javadoc: BackgroundSubtractorMOG2::getComplexityReductionThreshold()
  72. public double getComplexityReductionThreshold ()
  73. {
  74. ThrowIfDisposed ();
  75. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  76. double retVal = video_BackgroundSubtractorMOG2_getComplexityReductionThreshold_10 (nativeObj);
  77. return retVal;
  78. #else
  79. return -1;
  80. #endif
  81. }
  82. //
  83. // C++: double cv::BackgroundSubtractorMOG2::getShadowThreshold()
  84. //
  85. //javadoc: BackgroundSubtractorMOG2::getShadowThreshold()
  86. public double getShadowThreshold ()
  87. {
  88. ThrowIfDisposed ();
  89. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  90. double retVal = video_BackgroundSubtractorMOG2_getShadowThreshold_10 (nativeObj);
  91. return retVal;
  92. #else
  93. return -1;
  94. #endif
  95. }
  96. //
  97. // C++: double cv::BackgroundSubtractorMOG2::getVarInit()
  98. //
  99. //javadoc: BackgroundSubtractorMOG2::getVarInit()
  100. public double getVarInit ()
  101. {
  102. ThrowIfDisposed ();
  103. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  104. double retVal = video_BackgroundSubtractorMOG2_getVarInit_10 (nativeObj);
  105. return retVal;
  106. #else
  107. return -1;
  108. #endif
  109. }
  110. //
  111. // C++: double cv::BackgroundSubtractorMOG2::getVarMax()
  112. //
  113. //javadoc: BackgroundSubtractorMOG2::getVarMax()
  114. public double getVarMax ()
  115. {
  116. ThrowIfDisposed ();
  117. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  118. double retVal = video_BackgroundSubtractorMOG2_getVarMax_10 (nativeObj);
  119. return retVal;
  120. #else
  121. return -1;
  122. #endif
  123. }
  124. //
  125. // C++: double cv::BackgroundSubtractorMOG2::getVarMin()
  126. //
  127. //javadoc: BackgroundSubtractorMOG2::getVarMin()
  128. public double getVarMin ()
  129. {
  130. ThrowIfDisposed ();
  131. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  132. double retVal = video_BackgroundSubtractorMOG2_getVarMin_10 (nativeObj);
  133. return retVal;
  134. #else
  135. return -1;
  136. #endif
  137. }
  138. //
  139. // C++: double cv::BackgroundSubtractorMOG2::getVarThreshold()
  140. //
  141. //javadoc: BackgroundSubtractorMOG2::getVarThreshold()
  142. public double getVarThreshold ()
  143. {
  144. ThrowIfDisposed ();
  145. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  146. double retVal = video_BackgroundSubtractorMOG2_getVarThreshold_10 (nativeObj);
  147. return retVal;
  148. #else
  149. return -1;
  150. #endif
  151. }
  152. //
  153. // C++: double cv::BackgroundSubtractorMOG2::getVarThresholdGen()
  154. //
  155. //javadoc: BackgroundSubtractorMOG2::getVarThresholdGen()
  156. public double getVarThresholdGen ()
  157. {
  158. ThrowIfDisposed ();
  159. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  160. double retVal = video_BackgroundSubtractorMOG2_getVarThresholdGen_10 (nativeObj);
  161. return retVal;
  162. #else
  163. return -1;
  164. #endif
  165. }
  166. //
  167. // C++: int cv::BackgroundSubtractorMOG2::getHistory()
  168. //
  169. //javadoc: BackgroundSubtractorMOG2::getHistory()
  170. public int getHistory ()
  171. {
  172. ThrowIfDisposed ();
  173. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  174. int retVal = video_BackgroundSubtractorMOG2_getHistory_10 (nativeObj);
  175. return retVal;
  176. #else
  177. return -1;
  178. #endif
  179. }
  180. //
  181. // C++: int cv::BackgroundSubtractorMOG2::getNMixtures()
  182. //
  183. //javadoc: BackgroundSubtractorMOG2::getNMixtures()
  184. public int getNMixtures ()
  185. {
  186. ThrowIfDisposed ();
  187. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  188. int retVal = video_BackgroundSubtractorMOG2_getNMixtures_10 (nativeObj);
  189. return retVal;
  190. #else
  191. return -1;
  192. #endif
  193. }
  194. //
  195. // C++: int cv::BackgroundSubtractorMOG2::getShadowValue()
  196. //
  197. //javadoc: BackgroundSubtractorMOG2::getShadowValue()
  198. public int getShadowValue ()
  199. {
  200. ThrowIfDisposed ();
  201. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  202. int retVal = video_BackgroundSubtractorMOG2_getShadowValue_10 (nativeObj);
  203. return retVal;
  204. #else
  205. return -1;
  206. #endif
  207. }
  208. //
  209. // C++: void cv::BackgroundSubtractorMOG2::apply(Mat image, Mat& fgmask, double learningRate = -1)
  210. //
  211. //javadoc: BackgroundSubtractorMOG2::apply(image, fgmask, learningRate)
  212. public override void apply (Mat image, Mat fgmask, double learningRate)
  213. {
  214. ThrowIfDisposed ();
  215. if (image != null)
  216. image.ThrowIfDisposed ();
  217. if (fgmask != null)
  218. fgmask.ThrowIfDisposed ();
  219. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  220. video_BackgroundSubtractorMOG2_apply_10 (nativeObj, image.nativeObj, fgmask.nativeObj, learningRate);
  221. return;
  222. #else
  223. return;
  224. #endif
  225. }
  226. //javadoc: BackgroundSubtractorMOG2::apply(image, fgmask)
  227. public override void apply (Mat image, Mat fgmask)
  228. {
  229. ThrowIfDisposed ();
  230. if (image != null)
  231. image.ThrowIfDisposed ();
  232. if (fgmask != null)
  233. fgmask.ThrowIfDisposed ();
  234. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  235. video_BackgroundSubtractorMOG2_apply_11 (nativeObj, image.nativeObj, fgmask.nativeObj);
  236. return;
  237. #else
  238. return;
  239. #endif
  240. }
  241. //
  242. // C++: void cv::BackgroundSubtractorMOG2::setBackgroundRatio(double ratio)
  243. //
  244. //javadoc: BackgroundSubtractorMOG2::setBackgroundRatio(ratio)
  245. public void setBackgroundRatio (double ratio)
  246. {
  247. ThrowIfDisposed ();
  248. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  249. video_BackgroundSubtractorMOG2_setBackgroundRatio_10 (nativeObj, ratio);
  250. return;
  251. #else
  252. return;
  253. #endif
  254. }
  255. //
  256. // C++: void cv::BackgroundSubtractorMOG2::setComplexityReductionThreshold(double ct)
  257. //
  258. //javadoc: BackgroundSubtractorMOG2::setComplexityReductionThreshold(ct)
  259. public void setComplexityReductionThreshold (double ct)
  260. {
  261. ThrowIfDisposed ();
  262. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  263. video_BackgroundSubtractorMOG2_setComplexityReductionThreshold_10 (nativeObj, ct);
  264. return;
  265. #else
  266. return;
  267. #endif
  268. }
  269. //
  270. // C++: void cv::BackgroundSubtractorMOG2::setDetectShadows(bool detectShadows)
  271. //
  272. //javadoc: BackgroundSubtractorMOG2::setDetectShadows(detectShadows)
  273. public void setDetectShadows (bool detectShadows)
  274. {
  275. ThrowIfDisposed ();
  276. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  277. video_BackgroundSubtractorMOG2_setDetectShadows_10 (nativeObj, detectShadows);
  278. return;
  279. #else
  280. return;
  281. #endif
  282. }
  283. //
  284. // C++: void cv::BackgroundSubtractorMOG2::setHistory(int history)
  285. //
  286. //javadoc: BackgroundSubtractorMOG2::setHistory(history)
  287. public void setHistory (int history)
  288. {
  289. ThrowIfDisposed ();
  290. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  291. video_BackgroundSubtractorMOG2_setHistory_10 (nativeObj, history);
  292. return;
  293. #else
  294. return;
  295. #endif
  296. }
  297. //
  298. // C++: void cv::BackgroundSubtractorMOG2::setNMixtures(int nmixtures)
  299. //
  300. //javadoc: BackgroundSubtractorMOG2::setNMixtures(nmixtures)
  301. public void setNMixtures (int nmixtures)
  302. {
  303. ThrowIfDisposed ();
  304. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  305. video_BackgroundSubtractorMOG2_setNMixtures_10 (nativeObj, nmixtures);
  306. return;
  307. #else
  308. return;
  309. #endif
  310. }
  311. //
  312. // C++: void cv::BackgroundSubtractorMOG2::setShadowThreshold(double threshold)
  313. //
  314. //javadoc: BackgroundSubtractorMOG2::setShadowThreshold(threshold)
  315. public void setShadowThreshold (double threshold)
  316. {
  317. ThrowIfDisposed ();
  318. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  319. video_BackgroundSubtractorMOG2_setShadowThreshold_10 (nativeObj, threshold);
  320. return;
  321. #else
  322. return;
  323. #endif
  324. }
  325. //
  326. // C++: void cv::BackgroundSubtractorMOG2::setShadowValue(int value)
  327. //
  328. //javadoc: BackgroundSubtractorMOG2::setShadowValue(value)
  329. public void setShadowValue (int value)
  330. {
  331. ThrowIfDisposed ();
  332. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  333. video_BackgroundSubtractorMOG2_setShadowValue_10 (nativeObj, value);
  334. return;
  335. #else
  336. return;
  337. #endif
  338. }
  339. //
  340. // C++: void cv::BackgroundSubtractorMOG2::setVarInit(double varInit)
  341. //
  342. //javadoc: BackgroundSubtractorMOG2::setVarInit(varInit)
  343. public void setVarInit (double varInit)
  344. {
  345. ThrowIfDisposed ();
  346. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  347. video_BackgroundSubtractorMOG2_setVarInit_10 (nativeObj, varInit);
  348. return;
  349. #else
  350. return;
  351. #endif
  352. }
  353. //
  354. // C++: void cv::BackgroundSubtractorMOG2::setVarMax(double varMax)
  355. //
  356. //javadoc: BackgroundSubtractorMOG2::setVarMax(varMax)
  357. public void setVarMax (double varMax)
  358. {
  359. ThrowIfDisposed ();
  360. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  361. video_BackgroundSubtractorMOG2_setVarMax_10 (nativeObj, varMax);
  362. return;
  363. #else
  364. return;
  365. #endif
  366. }
  367. //
  368. // C++: void cv::BackgroundSubtractorMOG2::setVarMin(double varMin)
  369. //
  370. //javadoc: BackgroundSubtractorMOG2::setVarMin(varMin)
  371. public void setVarMin (double varMin)
  372. {
  373. ThrowIfDisposed ();
  374. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  375. video_BackgroundSubtractorMOG2_setVarMin_10 (nativeObj, varMin);
  376. return;
  377. #else
  378. return;
  379. #endif
  380. }
  381. //
  382. // C++: void cv::BackgroundSubtractorMOG2::setVarThreshold(double varThreshold)
  383. //
  384. //javadoc: BackgroundSubtractorMOG2::setVarThreshold(varThreshold)
  385. public void setVarThreshold (double varThreshold)
  386. {
  387. ThrowIfDisposed ();
  388. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  389. video_BackgroundSubtractorMOG2_setVarThreshold_10 (nativeObj, varThreshold);
  390. return;
  391. #else
  392. return;
  393. #endif
  394. }
  395. //
  396. // C++: void cv::BackgroundSubtractorMOG2::setVarThresholdGen(double varThresholdGen)
  397. //
  398. //javadoc: BackgroundSubtractorMOG2::setVarThresholdGen(varThresholdGen)
  399. public void setVarThresholdGen (double varThresholdGen)
  400. {
  401. ThrowIfDisposed ();
  402. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  403. video_BackgroundSubtractorMOG2_setVarThresholdGen_10 (nativeObj, varThresholdGen);
  404. return;
  405. #else
  406. return;
  407. #endif
  408. }
  409. #if (UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR
  410. const string LIBNAME = "__Internal";
  411. #else
  412. const string LIBNAME = "opencvforunity";
  413. #endif
  414. // C++: bool cv::BackgroundSubtractorMOG2::getDetectShadows()
  415. [DllImport (LIBNAME)]
  416. private static extern bool video_BackgroundSubtractorMOG2_getDetectShadows_10 (IntPtr nativeObj);
  417. // C++: double cv::BackgroundSubtractorMOG2::getBackgroundRatio()
  418. [DllImport (LIBNAME)]
  419. private static extern double video_BackgroundSubtractorMOG2_getBackgroundRatio_10 (IntPtr nativeObj);
  420. // C++: double cv::BackgroundSubtractorMOG2::getComplexityReductionThreshold()
  421. [DllImport (LIBNAME)]
  422. private static extern double video_BackgroundSubtractorMOG2_getComplexityReductionThreshold_10 (IntPtr nativeObj);
  423. // C++: double cv::BackgroundSubtractorMOG2::getShadowThreshold()
  424. [DllImport (LIBNAME)]
  425. private static extern double video_BackgroundSubtractorMOG2_getShadowThreshold_10 (IntPtr nativeObj);
  426. // C++: double cv::BackgroundSubtractorMOG2::getVarInit()
  427. [DllImport (LIBNAME)]
  428. private static extern double video_BackgroundSubtractorMOG2_getVarInit_10 (IntPtr nativeObj);
  429. // C++: double cv::BackgroundSubtractorMOG2::getVarMax()
  430. [DllImport (LIBNAME)]
  431. private static extern double video_BackgroundSubtractorMOG2_getVarMax_10 (IntPtr nativeObj);
  432. // C++: double cv::BackgroundSubtractorMOG2::getVarMin()
  433. [DllImport (LIBNAME)]
  434. private static extern double video_BackgroundSubtractorMOG2_getVarMin_10 (IntPtr nativeObj);
  435. // C++: double cv::BackgroundSubtractorMOG2::getVarThreshold()
  436. [DllImport (LIBNAME)]
  437. private static extern double video_BackgroundSubtractorMOG2_getVarThreshold_10 (IntPtr nativeObj);
  438. // C++: double cv::BackgroundSubtractorMOG2::getVarThresholdGen()
  439. [DllImport (LIBNAME)]
  440. private static extern double video_BackgroundSubtractorMOG2_getVarThresholdGen_10 (IntPtr nativeObj);
  441. // C++: int cv::BackgroundSubtractorMOG2::getHistory()
  442. [DllImport (LIBNAME)]
  443. private static extern int video_BackgroundSubtractorMOG2_getHistory_10 (IntPtr nativeObj);
  444. // C++: int cv::BackgroundSubtractorMOG2::getNMixtures()
  445. [DllImport (LIBNAME)]
  446. private static extern int video_BackgroundSubtractorMOG2_getNMixtures_10 (IntPtr nativeObj);
  447. // C++: int cv::BackgroundSubtractorMOG2::getShadowValue()
  448. [DllImport (LIBNAME)]
  449. private static extern int video_BackgroundSubtractorMOG2_getShadowValue_10 (IntPtr nativeObj);
  450. // C++: void cv::BackgroundSubtractorMOG2::apply(Mat image, Mat& fgmask, double learningRate = -1)
  451. [DllImport (LIBNAME)]
  452. private static extern void video_BackgroundSubtractorMOG2_apply_10 (IntPtr nativeObj, IntPtr image_nativeObj, IntPtr fgmask_nativeObj, double learningRate);
  453. [DllImport (LIBNAME)]
  454. private static extern void video_BackgroundSubtractorMOG2_apply_11 (IntPtr nativeObj, IntPtr image_nativeObj, IntPtr fgmask_nativeObj);
  455. // C++: void cv::BackgroundSubtractorMOG2::setBackgroundRatio(double ratio)
  456. [DllImport (LIBNAME)]
  457. private static extern void video_BackgroundSubtractorMOG2_setBackgroundRatio_10 (IntPtr nativeObj, double ratio);
  458. // C++: void cv::BackgroundSubtractorMOG2::setComplexityReductionThreshold(double ct)
  459. [DllImport (LIBNAME)]
  460. private static extern void video_BackgroundSubtractorMOG2_setComplexityReductionThreshold_10 (IntPtr nativeObj, double ct);
  461. // C++: void cv::BackgroundSubtractorMOG2::setDetectShadows(bool detectShadows)
  462. [DllImport (LIBNAME)]
  463. private static extern void video_BackgroundSubtractorMOG2_setDetectShadows_10 (IntPtr nativeObj, bool detectShadows);
  464. // C++: void cv::BackgroundSubtractorMOG2::setHistory(int history)
  465. [DllImport (LIBNAME)]
  466. private static extern void video_BackgroundSubtractorMOG2_setHistory_10 (IntPtr nativeObj, int history);
  467. // C++: void cv::BackgroundSubtractorMOG2::setNMixtures(int nmixtures)
  468. [DllImport (LIBNAME)]
  469. private static extern void video_BackgroundSubtractorMOG2_setNMixtures_10 (IntPtr nativeObj, int nmixtures);
  470. // C++: void cv::BackgroundSubtractorMOG2::setShadowThreshold(double threshold)
  471. [DllImport (LIBNAME)]
  472. private static extern void video_BackgroundSubtractorMOG2_setShadowThreshold_10 (IntPtr nativeObj, double threshold);
  473. // C++: void cv::BackgroundSubtractorMOG2::setShadowValue(int value)
  474. [DllImport (LIBNAME)]
  475. private static extern void video_BackgroundSubtractorMOG2_setShadowValue_10 (IntPtr nativeObj, int value);
  476. // C++: void cv::BackgroundSubtractorMOG2::setVarInit(double varInit)
  477. [DllImport (LIBNAME)]
  478. private static extern void video_BackgroundSubtractorMOG2_setVarInit_10 (IntPtr nativeObj, double varInit);
  479. // C++: void cv::BackgroundSubtractorMOG2::setVarMax(double varMax)
  480. [DllImport (LIBNAME)]
  481. private static extern void video_BackgroundSubtractorMOG2_setVarMax_10 (IntPtr nativeObj, double varMax);
  482. // C++: void cv::BackgroundSubtractorMOG2::setVarMin(double varMin)
  483. [DllImport (LIBNAME)]
  484. private static extern void video_BackgroundSubtractorMOG2_setVarMin_10 (IntPtr nativeObj, double varMin);
  485. // C++: void cv::BackgroundSubtractorMOG2::setVarThreshold(double varThreshold)
  486. [DllImport (LIBNAME)]
  487. private static extern void video_BackgroundSubtractorMOG2_setVarThreshold_10 (IntPtr nativeObj, double varThreshold);
  488. // C++: void cv::BackgroundSubtractorMOG2::setVarThresholdGen(double varThresholdGen)
  489. [DllImport (LIBNAME)]
  490. private static extern void video_BackgroundSubtractorMOG2_setVarThresholdGen_10 (IntPtr nativeObj, double varThresholdGen);
  491. // native support for java finalize()
  492. [DllImport (LIBNAME)]
  493. private static extern void video_BackgroundSubtractorMOG2_delete (IntPtr nativeObj);
  494. }
  495. }