Bgsegm.cs 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741
  1. 
  2. using OpenCVForUnity.CoreModule;
  3. using OpenCVForUnity.UtilsModule;
  4. using OpenCVForUnity.VideoModule;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.Runtime.InteropServices;
  8. namespace OpenCVForUnity.BgsegmModule
  9. {
  10. // C++: class Bgsegm
  11. //javadoc: Bgsegm
  12. public class Bgsegm
  13. {
  14. // C++: enum LSBPCameraMotionCompensation
  15. public const int LSBP_CAMERA_MOTION_COMPENSATION_NONE = 0;
  16. public const int LSBP_CAMERA_MOTION_COMPENSATION_LK = 0 + 1;
  17. //
  18. // C++: Ptr_BackgroundSubtractorCNT cv::bgsegm::createBackgroundSubtractorCNT(int minPixelStability = 15, bool useHistory = true, int maxPixelStability = 15*60, bool isParallel = true)
  19. //
  20. //javadoc: createBackgroundSubtractorCNT(minPixelStability, useHistory, maxPixelStability, isParallel)
  21. public static BackgroundSubtractorCNT createBackgroundSubtractorCNT (int minPixelStability, bool useHistory, int maxPixelStability, bool isParallel)
  22. {
  23. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  24. BackgroundSubtractorCNT retVal = BackgroundSubtractorCNT.__fromPtr__(bgsegm_Bgsegm_createBackgroundSubtractorCNT_10(minPixelStability, useHistory, maxPixelStability, isParallel));
  25. return retVal;
  26. #else
  27. return null;
  28. #endif
  29. }
  30. //javadoc: createBackgroundSubtractorCNT(minPixelStability, useHistory, maxPixelStability)
  31. public static BackgroundSubtractorCNT createBackgroundSubtractorCNT (int minPixelStability, bool useHistory, int maxPixelStability)
  32. {
  33. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  34. BackgroundSubtractorCNT retVal = BackgroundSubtractorCNT.__fromPtr__(bgsegm_Bgsegm_createBackgroundSubtractorCNT_11(minPixelStability, useHistory, maxPixelStability));
  35. return retVal;
  36. #else
  37. return null;
  38. #endif
  39. }
  40. //javadoc: createBackgroundSubtractorCNT(minPixelStability, useHistory)
  41. public static BackgroundSubtractorCNT createBackgroundSubtractorCNT (int minPixelStability, bool useHistory)
  42. {
  43. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  44. BackgroundSubtractorCNT retVal = BackgroundSubtractorCNT.__fromPtr__(bgsegm_Bgsegm_createBackgroundSubtractorCNT_12(minPixelStability, useHistory));
  45. return retVal;
  46. #else
  47. return null;
  48. #endif
  49. }
  50. //javadoc: createBackgroundSubtractorCNT(minPixelStability)
  51. public static BackgroundSubtractorCNT createBackgroundSubtractorCNT (int minPixelStability)
  52. {
  53. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  54. BackgroundSubtractorCNT retVal = BackgroundSubtractorCNT.__fromPtr__(bgsegm_Bgsegm_createBackgroundSubtractorCNT_13(minPixelStability));
  55. return retVal;
  56. #else
  57. return null;
  58. #endif
  59. }
  60. //javadoc: createBackgroundSubtractorCNT()
  61. public static BackgroundSubtractorCNT createBackgroundSubtractorCNT ()
  62. {
  63. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  64. BackgroundSubtractorCNT retVal = BackgroundSubtractorCNT.__fromPtr__(bgsegm_Bgsegm_createBackgroundSubtractorCNT_14());
  65. return retVal;
  66. #else
  67. return null;
  68. #endif
  69. }
  70. //
  71. // C++: Ptr_BackgroundSubtractorGMG cv::bgsegm::createBackgroundSubtractorGMG(int initializationFrames = 120, double decisionThreshold = 0.8)
  72. //
  73. //javadoc: createBackgroundSubtractorGMG(initializationFrames, decisionThreshold)
  74. public static BackgroundSubtractorGMG createBackgroundSubtractorGMG (int initializationFrames, double decisionThreshold)
  75. {
  76. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  77. BackgroundSubtractorGMG retVal = BackgroundSubtractorGMG.__fromPtr__(bgsegm_Bgsegm_createBackgroundSubtractorGMG_10(initializationFrames, decisionThreshold));
  78. return retVal;
  79. #else
  80. return null;
  81. #endif
  82. }
  83. //javadoc: createBackgroundSubtractorGMG(initializationFrames)
  84. public static BackgroundSubtractorGMG createBackgroundSubtractorGMG (int initializationFrames)
  85. {
  86. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  87. BackgroundSubtractorGMG retVal = BackgroundSubtractorGMG.__fromPtr__(bgsegm_Bgsegm_createBackgroundSubtractorGMG_11(initializationFrames));
  88. return retVal;
  89. #else
  90. return null;
  91. #endif
  92. }
  93. //javadoc: createBackgroundSubtractorGMG()
  94. public static BackgroundSubtractorGMG createBackgroundSubtractorGMG ()
  95. {
  96. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  97. BackgroundSubtractorGMG retVal = BackgroundSubtractorGMG.__fromPtr__(bgsegm_Bgsegm_createBackgroundSubtractorGMG_12());
  98. return retVal;
  99. #else
  100. return null;
  101. #endif
  102. }
  103. //
  104. // C++: Ptr_BackgroundSubtractorGSOC cv::bgsegm::createBackgroundSubtractorGSOC(int mc = LSBP_CAMERA_MOTION_COMPENSATION_NONE, int nSamples = 20, float replaceRate = 0.003f, float propagationRate = 0.01f, int hitsThreshold = 32, float alpha = 0.01f, float beta = 0.0022f, float blinkingSupressionDecay = 0.1f, float blinkingSupressionMultiplier = 0.1f, float noiseRemovalThresholdFacBG = 0.0004f, float noiseRemovalThresholdFacFG = 0.0008f)
  105. //
  106. //javadoc: createBackgroundSubtractorGSOC(mc, nSamples, replaceRate, propagationRate, hitsThreshold, alpha, beta, blinkingSupressionDecay, blinkingSupressionMultiplier, noiseRemovalThresholdFacBG, noiseRemovalThresholdFacFG)
  107. public static BackgroundSubtractorGSOC createBackgroundSubtractorGSOC (int mc, int nSamples, float replaceRate, float propagationRate, int hitsThreshold, float alpha, float beta, float blinkingSupressionDecay, float blinkingSupressionMultiplier, float noiseRemovalThresholdFacBG, float noiseRemovalThresholdFacFG)
  108. {
  109. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  110. BackgroundSubtractorGSOC retVal = BackgroundSubtractorGSOC.__fromPtr__(bgsegm_Bgsegm_createBackgroundSubtractorGSOC_10(mc, nSamples, replaceRate, propagationRate, hitsThreshold, alpha, beta, blinkingSupressionDecay, blinkingSupressionMultiplier, noiseRemovalThresholdFacBG, noiseRemovalThresholdFacFG));
  111. return retVal;
  112. #else
  113. return null;
  114. #endif
  115. }
  116. //javadoc: createBackgroundSubtractorGSOC(mc, nSamples, replaceRate, propagationRate, hitsThreshold, alpha, beta, blinkingSupressionDecay, blinkingSupressionMultiplier, noiseRemovalThresholdFacBG)
  117. public static BackgroundSubtractorGSOC createBackgroundSubtractorGSOC (int mc, int nSamples, float replaceRate, float propagationRate, int hitsThreshold, float alpha, float beta, float blinkingSupressionDecay, float blinkingSupressionMultiplier, float noiseRemovalThresholdFacBG)
  118. {
  119. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  120. BackgroundSubtractorGSOC retVal = BackgroundSubtractorGSOC.__fromPtr__(bgsegm_Bgsegm_createBackgroundSubtractorGSOC_11(mc, nSamples, replaceRate, propagationRate, hitsThreshold, alpha, beta, blinkingSupressionDecay, blinkingSupressionMultiplier, noiseRemovalThresholdFacBG));
  121. return retVal;
  122. #else
  123. return null;
  124. #endif
  125. }
  126. //javadoc: createBackgroundSubtractorGSOC(mc, nSamples, replaceRate, propagationRate, hitsThreshold, alpha, beta, blinkingSupressionDecay, blinkingSupressionMultiplier)
  127. public static BackgroundSubtractorGSOC createBackgroundSubtractorGSOC (int mc, int nSamples, float replaceRate, float propagationRate, int hitsThreshold, float alpha, float beta, float blinkingSupressionDecay, float blinkingSupressionMultiplier)
  128. {
  129. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  130. BackgroundSubtractorGSOC retVal = BackgroundSubtractorGSOC.__fromPtr__(bgsegm_Bgsegm_createBackgroundSubtractorGSOC_12(mc, nSamples, replaceRate, propagationRate, hitsThreshold, alpha, beta, blinkingSupressionDecay, blinkingSupressionMultiplier));
  131. return retVal;
  132. #else
  133. return null;
  134. #endif
  135. }
  136. //javadoc: createBackgroundSubtractorGSOC(mc, nSamples, replaceRate, propagationRate, hitsThreshold, alpha, beta, blinkingSupressionDecay)
  137. public static BackgroundSubtractorGSOC createBackgroundSubtractorGSOC (int mc, int nSamples, float replaceRate, float propagationRate, int hitsThreshold, float alpha, float beta, float blinkingSupressionDecay)
  138. {
  139. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  140. BackgroundSubtractorGSOC retVal = BackgroundSubtractorGSOC.__fromPtr__(bgsegm_Bgsegm_createBackgroundSubtractorGSOC_13(mc, nSamples, replaceRate, propagationRate, hitsThreshold, alpha, beta, blinkingSupressionDecay));
  141. return retVal;
  142. #else
  143. return null;
  144. #endif
  145. }
  146. //javadoc: createBackgroundSubtractorGSOC(mc, nSamples, replaceRate, propagationRate, hitsThreshold, alpha, beta)
  147. public static BackgroundSubtractorGSOC createBackgroundSubtractorGSOC (int mc, int nSamples, float replaceRate, float propagationRate, int hitsThreshold, float alpha, float beta)
  148. {
  149. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  150. BackgroundSubtractorGSOC retVal = BackgroundSubtractorGSOC.__fromPtr__(bgsegm_Bgsegm_createBackgroundSubtractorGSOC_14(mc, nSamples, replaceRate, propagationRate, hitsThreshold, alpha, beta));
  151. return retVal;
  152. #else
  153. return null;
  154. #endif
  155. }
  156. //javadoc: createBackgroundSubtractorGSOC(mc, nSamples, replaceRate, propagationRate, hitsThreshold, alpha)
  157. public static BackgroundSubtractorGSOC createBackgroundSubtractorGSOC (int mc, int nSamples, float replaceRate, float propagationRate, int hitsThreshold, float alpha)
  158. {
  159. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  160. BackgroundSubtractorGSOC retVal = BackgroundSubtractorGSOC.__fromPtr__(bgsegm_Bgsegm_createBackgroundSubtractorGSOC_15(mc, nSamples, replaceRate, propagationRate, hitsThreshold, alpha));
  161. return retVal;
  162. #else
  163. return null;
  164. #endif
  165. }
  166. //javadoc: createBackgroundSubtractorGSOC(mc, nSamples, replaceRate, propagationRate, hitsThreshold)
  167. public static BackgroundSubtractorGSOC createBackgroundSubtractorGSOC (int mc, int nSamples, float replaceRate, float propagationRate, int hitsThreshold)
  168. {
  169. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  170. BackgroundSubtractorGSOC retVal = BackgroundSubtractorGSOC.__fromPtr__(bgsegm_Bgsegm_createBackgroundSubtractorGSOC_16(mc, nSamples, replaceRate, propagationRate, hitsThreshold));
  171. return retVal;
  172. #else
  173. return null;
  174. #endif
  175. }
  176. //javadoc: createBackgroundSubtractorGSOC(mc, nSamples, replaceRate, propagationRate)
  177. public static BackgroundSubtractorGSOC createBackgroundSubtractorGSOC (int mc, int nSamples, float replaceRate, float propagationRate)
  178. {
  179. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  180. BackgroundSubtractorGSOC retVal = BackgroundSubtractorGSOC.__fromPtr__(bgsegm_Bgsegm_createBackgroundSubtractorGSOC_17(mc, nSamples, replaceRate, propagationRate));
  181. return retVal;
  182. #else
  183. return null;
  184. #endif
  185. }
  186. //javadoc: createBackgroundSubtractorGSOC(mc, nSamples, replaceRate)
  187. public static BackgroundSubtractorGSOC createBackgroundSubtractorGSOC (int mc, int nSamples, float replaceRate)
  188. {
  189. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  190. BackgroundSubtractorGSOC retVal = BackgroundSubtractorGSOC.__fromPtr__(bgsegm_Bgsegm_createBackgroundSubtractorGSOC_18(mc, nSamples, replaceRate));
  191. return retVal;
  192. #else
  193. return null;
  194. #endif
  195. }
  196. //javadoc: createBackgroundSubtractorGSOC(mc, nSamples)
  197. public static BackgroundSubtractorGSOC createBackgroundSubtractorGSOC (int mc, int nSamples)
  198. {
  199. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  200. BackgroundSubtractorGSOC retVal = BackgroundSubtractorGSOC.__fromPtr__(bgsegm_Bgsegm_createBackgroundSubtractorGSOC_19(mc, nSamples));
  201. return retVal;
  202. #else
  203. return null;
  204. #endif
  205. }
  206. //javadoc: createBackgroundSubtractorGSOC(mc)
  207. public static BackgroundSubtractorGSOC createBackgroundSubtractorGSOC (int mc)
  208. {
  209. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  210. BackgroundSubtractorGSOC retVal = BackgroundSubtractorGSOC.__fromPtr__(bgsegm_Bgsegm_createBackgroundSubtractorGSOC_110(mc));
  211. return retVal;
  212. #else
  213. return null;
  214. #endif
  215. }
  216. //javadoc: createBackgroundSubtractorGSOC()
  217. public static BackgroundSubtractorGSOC createBackgroundSubtractorGSOC ()
  218. {
  219. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  220. BackgroundSubtractorGSOC retVal = BackgroundSubtractorGSOC.__fromPtr__(bgsegm_Bgsegm_createBackgroundSubtractorGSOC_111());
  221. return retVal;
  222. #else
  223. return null;
  224. #endif
  225. }
  226. //
  227. // C++: Ptr_BackgroundSubtractorLSBP cv::bgsegm::createBackgroundSubtractorLSBP(int mc = LSBP_CAMERA_MOTION_COMPENSATION_NONE, int nSamples = 20, int LSBPRadius = 16, float Tlower = 2.0f, float Tupper = 32.0f, float Tinc = 1.0f, float Tdec = 0.05f, float Rscale = 10.0f, float Rincdec = 0.005f, float noiseRemovalThresholdFacBG = 0.0004f, float noiseRemovalThresholdFacFG = 0.0008f, int LSBPthreshold = 8, int minCount = 2)
  228. //
  229. //javadoc: createBackgroundSubtractorLSBP(mc, nSamples, LSBPRadius, Tlower, Tupper, Tinc, Tdec, Rscale, Rincdec, noiseRemovalThresholdFacBG, noiseRemovalThresholdFacFG, LSBPthreshold, minCount)
  230. public static BackgroundSubtractorLSBP createBackgroundSubtractorLSBP (int mc, int nSamples, int LSBPRadius, float Tlower, float Tupper, float Tinc, float Tdec, float Rscale, float Rincdec, float noiseRemovalThresholdFacBG, float noiseRemovalThresholdFacFG, int LSBPthreshold, int minCount)
  231. {
  232. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  233. BackgroundSubtractorLSBP retVal = BackgroundSubtractorLSBP.__fromPtr__(bgsegm_Bgsegm_createBackgroundSubtractorLSBP_10(mc, nSamples, LSBPRadius, Tlower, Tupper, Tinc, Tdec, Rscale, Rincdec, noiseRemovalThresholdFacBG, noiseRemovalThresholdFacFG, LSBPthreshold, minCount));
  234. return retVal;
  235. #else
  236. return null;
  237. #endif
  238. }
  239. //javadoc: createBackgroundSubtractorLSBP(mc, nSamples, LSBPRadius, Tlower, Tupper, Tinc, Tdec, Rscale, Rincdec, noiseRemovalThresholdFacBG, noiseRemovalThresholdFacFG, LSBPthreshold)
  240. public static BackgroundSubtractorLSBP createBackgroundSubtractorLSBP (int mc, int nSamples, int LSBPRadius, float Tlower, float Tupper, float Tinc, float Tdec, float Rscale, float Rincdec, float noiseRemovalThresholdFacBG, float noiseRemovalThresholdFacFG, int LSBPthreshold)
  241. {
  242. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  243. BackgroundSubtractorLSBP retVal = BackgroundSubtractorLSBP.__fromPtr__(bgsegm_Bgsegm_createBackgroundSubtractorLSBP_11(mc, nSamples, LSBPRadius, Tlower, Tupper, Tinc, Tdec, Rscale, Rincdec, noiseRemovalThresholdFacBG, noiseRemovalThresholdFacFG, LSBPthreshold));
  244. return retVal;
  245. #else
  246. return null;
  247. #endif
  248. }
  249. //javadoc: createBackgroundSubtractorLSBP(mc, nSamples, LSBPRadius, Tlower, Tupper, Tinc, Tdec, Rscale, Rincdec, noiseRemovalThresholdFacBG, noiseRemovalThresholdFacFG)
  250. public static BackgroundSubtractorLSBP createBackgroundSubtractorLSBP (int mc, int nSamples, int LSBPRadius, float Tlower, float Tupper, float Tinc, float Tdec, float Rscale, float Rincdec, float noiseRemovalThresholdFacBG, float noiseRemovalThresholdFacFG)
  251. {
  252. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  253. BackgroundSubtractorLSBP retVal = BackgroundSubtractorLSBP.__fromPtr__(bgsegm_Bgsegm_createBackgroundSubtractorLSBP_12(mc, nSamples, LSBPRadius, Tlower, Tupper, Tinc, Tdec, Rscale, Rincdec, noiseRemovalThresholdFacBG, noiseRemovalThresholdFacFG));
  254. return retVal;
  255. #else
  256. return null;
  257. #endif
  258. }
  259. //javadoc: createBackgroundSubtractorLSBP(mc, nSamples, LSBPRadius, Tlower, Tupper, Tinc, Tdec, Rscale, Rincdec, noiseRemovalThresholdFacBG)
  260. public static BackgroundSubtractorLSBP createBackgroundSubtractorLSBP (int mc, int nSamples, int LSBPRadius, float Tlower, float Tupper, float Tinc, float Tdec, float Rscale, float Rincdec, float noiseRemovalThresholdFacBG)
  261. {
  262. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  263. BackgroundSubtractorLSBP retVal = BackgroundSubtractorLSBP.__fromPtr__(bgsegm_Bgsegm_createBackgroundSubtractorLSBP_13(mc, nSamples, LSBPRadius, Tlower, Tupper, Tinc, Tdec, Rscale, Rincdec, noiseRemovalThresholdFacBG));
  264. return retVal;
  265. #else
  266. return null;
  267. #endif
  268. }
  269. //javadoc: createBackgroundSubtractorLSBP(mc, nSamples, LSBPRadius, Tlower, Tupper, Tinc, Tdec, Rscale, Rincdec)
  270. public static BackgroundSubtractorLSBP createBackgroundSubtractorLSBP (int mc, int nSamples, int LSBPRadius, float Tlower, float Tupper, float Tinc, float Tdec, float Rscale, float Rincdec)
  271. {
  272. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  273. BackgroundSubtractorLSBP retVal = BackgroundSubtractorLSBP.__fromPtr__(bgsegm_Bgsegm_createBackgroundSubtractorLSBP_14(mc, nSamples, LSBPRadius, Tlower, Tupper, Tinc, Tdec, Rscale, Rincdec));
  274. return retVal;
  275. #else
  276. return null;
  277. #endif
  278. }
  279. //javadoc: createBackgroundSubtractorLSBP(mc, nSamples, LSBPRadius, Tlower, Tupper, Tinc, Tdec, Rscale)
  280. public static BackgroundSubtractorLSBP createBackgroundSubtractorLSBP (int mc, int nSamples, int LSBPRadius, float Tlower, float Tupper, float Tinc, float Tdec, float Rscale)
  281. {
  282. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  283. BackgroundSubtractorLSBP retVal = BackgroundSubtractorLSBP.__fromPtr__(bgsegm_Bgsegm_createBackgroundSubtractorLSBP_15(mc, nSamples, LSBPRadius, Tlower, Tupper, Tinc, Tdec, Rscale));
  284. return retVal;
  285. #else
  286. return null;
  287. #endif
  288. }
  289. //javadoc: createBackgroundSubtractorLSBP(mc, nSamples, LSBPRadius, Tlower, Tupper, Tinc, Tdec)
  290. public static BackgroundSubtractorLSBP createBackgroundSubtractorLSBP (int mc, int nSamples, int LSBPRadius, float Tlower, float Tupper, float Tinc, float Tdec)
  291. {
  292. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  293. BackgroundSubtractorLSBP retVal = BackgroundSubtractorLSBP.__fromPtr__(bgsegm_Bgsegm_createBackgroundSubtractorLSBP_16(mc, nSamples, LSBPRadius, Tlower, Tupper, Tinc, Tdec));
  294. return retVal;
  295. #else
  296. return null;
  297. #endif
  298. }
  299. //javadoc: createBackgroundSubtractorLSBP(mc, nSamples, LSBPRadius, Tlower, Tupper, Tinc)
  300. public static BackgroundSubtractorLSBP createBackgroundSubtractorLSBP (int mc, int nSamples, int LSBPRadius, float Tlower, float Tupper, float Tinc)
  301. {
  302. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  303. BackgroundSubtractorLSBP retVal = BackgroundSubtractorLSBP.__fromPtr__(bgsegm_Bgsegm_createBackgroundSubtractorLSBP_17(mc, nSamples, LSBPRadius, Tlower, Tupper, Tinc));
  304. return retVal;
  305. #else
  306. return null;
  307. #endif
  308. }
  309. //javadoc: createBackgroundSubtractorLSBP(mc, nSamples, LSBPRadius, Tlower, Tupper)
  310. public static BackgroundSubtractorLSBP createBackgroundSubtractorLSBP (int mc, int nSamples, int LSBPRadius, float Tlower, float Tupper)
  311. {
  312. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  313. BackgroundSubtractorLSBP retVal = BackgroundSubtractorLSBP.__fromPtr__(bgsegm_Bgsegm_createBackgroundSubtractorLSBP_18(mc, nSamples, LSBPRadius, Tlower, Tupper));
  314. return retVal;
  315. #else
  316. return null;
  317. #endif
  318. }
  319. //javadoc: createBackgroundSubtractorLSBP(mc, nSamples, LSBPRadius, Tlower)
  320. public static BackgroundSubtractorLSBP createBackgroundSubtractorLSBP (int mc, int nSamples, int LSBPRadius, float Tlower)
  321. {
  322. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  323. BackgroundSubtractorLSBP retVal = BackgroundSubtractorLSBP.__fromPtr__(bgsegm_Bgsegm_createBackgroundSubtractorLSBP_19(mc, nSamples, LSBPRadius, Tlower));
  324. return retVal;
  325. #else
  326. return null;
  327. #endif
  328. }
  329. //javadoc: createBackgroundSubtractorLSBP(mc, nSamples, LSBPRadius)
  330. public static BackgroundSubtractorLSBP createBackgroundSubtractorLSBP (int mc, int nSamples, int LSBPRadius)
  331. {
  332. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  333. BackgroundSubtractorLSBP retVal = BackgroundSubtractorLSBP.__fromPtr__(bgsegm_Bgsegm_createBackgroundSubtractorLSBP_110(mc, nSamples, LSBPRadius));
  334. return retVal;
  335. #else
  336. return null;
  337. #endif
  338. }
  339. //javadoc: createBackgroundSubtractorLSBP(mc, nSamples)
  340. public static BackgroundSubtractorLSBP createBackgroundSubtractorLSBP (int mc, int nSamples)
  341. {
  342. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  343. BackgroundSubtractorLSBP retVal = BackgroundSubtractorLSBP.__fromPtr__(bgsegm_Bgsegm_createBackgroundSubtractorLSBP_111(mc, nSamples));
  344. return retVal;
  345. #else
  346. return null;
  347. #endif
  348. }
  349. //javadoc: createBackgroundSubtractorLSBP(mc)
  350. public static BackgroundSubtractorLSBP createBackgroundSubtractorLSBP (int mc)
  351. {
  352. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  353. BackgroundSubtractorLSBP retVal = BackgroundSubtractorLSBP.__fromPtr__(bgsegm_Bgsegm_createBackgroundSubtractorLSBP_112(mc));
  354. return retVal;
  355. #else
  356. return null;
  357. #endif
  358. }
  359. //javadoc: createBackgroundSubtractorLSBP()
  360. public static BackgroundSubtractorLSBP createBackgroundSubtractorLSBP ()
  361. {
  362. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  363. BackgroundSubtractorLSBP retVal = BackgroundSubtractorLSBP.__fromPtr__(bgsegm_Bgsegm_createBackgroundSubtractorLSBP_113());
  364. return retVal;
  365. #else
  366. return null;
  367. #endif
  368. }
  369. //
  370. // C++: Ptr_BackgroundSubtractorMOG cv::bgsegm::createBackgroundSubtractorMOG(int history = 200, int nmixtures = 5, double backgroundRatio = 0.7, double noiseSigma = 0)
  371. //
  372. //javadoc: createBackgroundSubtractorMOG(history, nmixtures, backgroundRatio, noiseSigma)
  373. public static BackgroundSubtractorMOG createBackgroundSubtractorMOG (int history, int nmixtures, double backgroundRatio, double noiseSigma)
  374. {
  375. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  376. BackgroundSubtractorMOG retVal = BackgroundSubtractorMOG.__fromPtr__(bgsegm_Bgsegm_createBackgroundSubtractorMOG_10(history, nmixtures, backgroundRatio, noiseSigma));
  377. return retVal;
  378. #else
  379. return null;
  380. #endif
  381. }
  382. //javadoc: createBackgroundSubtractorMOG(history, nmixtures, backgroundRatio)
  383. public static BackgroundSubtractorMOG createBackgroundSubtractorMOG (int history, int nmixtures, double backgroundRatio)
  384. {
  385. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  386. BackgroundSubtractorMOG retVal = BackgroundSubtractorMOG.__fromPtr__(bgsegm_Bgsegm_createBackgroundSubtractorMOG_11(history, nmixtures, backgroundRatio));
  387. return retVal;
  388. #else
  389. return null;
  390. #endif
  391. }
  392. //javadoc: createBackgroundSubtractorMOG(history, nmixtures)
  393. public static BackgroundSubtractorMOG createBackgroundSubtractorMOG (int history, int nmixtures)
  394. {
  395. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  396. BackgroundSubtractorMOG retVal = BackgroundSubtractorMOG.__fromPtr__(bgsegm_Bgsegm_createBackgroundSubtractorMOG_12(history, nmixtures));
  397. return retVal;
  398. #else
  399. return null;
  400. #endif
  401. }
  402. //javadoc: createBackgroundSubtractorMOG(history)
  403. public static BackgroundSubtractorMOG createBackgroundSubtractorMOG (int history)
  404. {
  405. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  406. BackgroundSubtractorMOG retVal = BackgroundSubtractorMOG.__fromPtr__(bgsegm_Bgsegm_createBackgroundSubtractorMOG_13(history));
  407. return retVal;
  408. #else
  409. return null;
  410. #endif
  411. }
  412. //javadoc: createBackgroundSubtractorMOG()
  413. public static BackgroundSubtractorMOG createBackgroundSubtractorMOG ()
  414. {
  415. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  416. BackgroundSubtractorMOG retVal = BackgroundSubtractorMOG.__fromPtr__(bgsegm_Bgsegm_createBackgroundSubtractorMOG_14());
  417. return retVal;
  418. #else
  419. return null;
  420. #endif
  421. }
  422. //
  423. // C++: Ptr_SyntheticSequenceGenerator cv::bgsegm::createSyntheticSequenceGenerator(Mat background, Mat _object, double amplitude = 2.0, double wavelength = 20.0, double wavespeed = 0.2, double objspeed = 6.0)
  424. //
  425. //javadoc: createSyntheticSequenceGenerator(background, _object, amplitude, wavelength, wavespeed, objspeed)
  426. public static SyntheticSequenceGenerator createSyntheticSequenceGenerator (Mat background, Mat _object, double amplitude, double wavelength, double wavespeed, double objspeed)
  427. {
  428. if (background != null) background.ThrowIfDisposed ();
  429. if (_object != null) _object.ThrowIfDisposed ();
  430. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  431. SyntheticSequenceGenerator retVal = SyntheticSequenceGenerator.__fromPtr__(bgsegm_Bgsegm_createSyntheticSequenceGenerator_10(background.nativeObj, _object.nativeObj, amplitude, wavelength, wavespeed, objspeed));
  432. return retVal;
  433. #else
  434. return null;
  435. #endif
  436. }
  437. //javadoc: createSyntheticSequenceGenerator(background, _object, amplitude, wavelength, wavespeed)
  438. public static SyntheticSequenceGenerator createSyntheticSequenceGenerator (Mat background, Mat _object, double amplitude, double wavelength, double wavespeed)
  439. {
  440. if (background != null) background.ThrowIfDisposed ();
  441. if (_object != null) _object.ThrowIfDisposed ();
  442. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  443. SyntheticSequenceGenerator retVal = SyntheticSequenceGenerator.__fromPtr__(bgsegm_Bgsegm_createSyntheticSequenceGenerator_11(background.nativeObj, _object.nativeObj, amplitude, wavelength, wavespeed));
  444. return retVal;
  445. #else
  446. return null;
  447. #endif
  448. }
  449. //javadoc: createSyntheticSequenceGenerator(background, _object, amplitude, wavelength)
  450. public static SyntheticSequenceGenerator createSyntheticSequenceGenerator (Mat background, Mat _object, double amplitude, double wavelength)
  451. {
  452. if (background != null) background.ThrowIfDisposed ();
  453. if (_object != null) _object.ThrowIfDisposed ();
  454. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  455. SyntheticSequenceGenerator retVal = SyntheticSequenceGenerator.__fromPtr__(bgsegm_Bgsegm_createSyntheticSequenceGenerator_12(background.nativeObj, _object.nativeObj, amplitude, wavelength));
  456. return retVal;
  457. #else
  458. return null;
  459. #endif
  460. }
  461. //javadoc: createSyntheticSequenceGenerator(background, _object, amplitude)
  462. public static SyntheticSequenceGenerator createSyntheticSequenceGenerator (Mat background, Mat _object, double amplitude)
  463. {
  464. if (background != null) background.ThrowIfDisposed ();
  465. if (_object != null) _object.ThrowIfDisposed ();
  466. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  467. SyntheticSequenceGenerator retVal = SyntheticSequenceGenerator.__fromPtr__(bgsegm_Bgsegm_createSyntheticSequenceGenerator_13(background.nativeObj, _object.nativeObj, amplitude));
  468. return retVal;
  469. #else
  470. return null;
  471. #endif
  472. }
  473. //javadoc: createSyntheticSequenceGenerator(background, _object)
  474. public static SyntheticSequenceGenerator createSyntheticSequenceGenerator (Mat background, Mat _object)
  475. {
  476. if (background != null) background.ThrowIfDisposed ();
  477. if (_object != null) _object.ThrowIfDisposed ();
  478. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  479. SyntheticSequenceGenerator retVal = SyntheticSequenceGenerator.__fromPtr__(bgsegm_Bgsegm_createSyntheticSequenceGenerator_14(background.nativeObj, _object.nativeObj));
  480. return retVal;
  481. #else
  482. return null;
  483. #endif
  484. }
  485. #if (UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR
  486. const string LIBNAME = "__Internal";
  487. #else
  488. const string LIBNAME = "opencvforunity";
  489. #endif
  490. // C++: Ptr_BackgroundSubtractorCNT cv::bgsegm::createBackgroundSubtractorCNT(int minPixelStability = 15, bool useHistory = true, int maxPixelStability = 15*60, bool isParallel = true)
  491. [DllImport (LIBNAME)]
  492. private static extern IntPtr bgsegm_Bgsegm_createBackgroundSubtractorCNT_10 (int minPixelStability, bool useHistory, int maxPixelStability, bool isParallel);
  493. [DllImport (LIBNAME)]
  494. private static extern IntPtr bgsegm_Bgsegm_createBackgroundSubtractorCNT_11 (int minPixelStability, bool useHistory, int maxPixelStability);
  495. [DllImport (LIBNAME)]
  496. private static extern IntPtr bgsegm_Bgsegm_createBackgroundSubtractorCNT_12 (int minPixelStability, bool useHistory);
  497. [DllImport (LIBNAME)]
  498. private static extern IntPtr bgsegm_Bgsegm_createBackgroundSubtractorCNT_13 (int minPixelStability);
  499. [DllImport (LIBNAME)]
  500. private static extern IntPtr bgsegm_Bgsegm_createBackgroundSubtractorCNT_14 ();
  501. // C++: Ptr_BackgroundSubtractorGMG cv::bgsegm::createBackgroundSubtractorGMG(int initializationFrames = 120, double decisionThreshold = 0.8)
  502. [DllImport (LIBNAME)]
  503. private static extern IntPtr bgsegm_Bgsegm_createBackgroundSubtractorGMG_10 (int initializationFrames, double decisionThreshold);
  504. [DllImport (LIBNAME)]
  505. private static extern IntPtr bgsegm_Bgsegm_createBackgroundSubtractorGMG_11 (int initializationFrames);
  506. [DllImport (LIBNAME)]
  507. private static extern IntPtr bgsegm_Bgsegm_createBackgroundSubtractorGMG_12 ();
  508. // C++: Ptr_BackgroundSubtractorGSOC cv::bgsegm::createBackgroundSubtractorGSOC(int mc = LSBP_CAMERA_MOTION_COMPENSATION_NONE, int nSamples = 20, float replaceRate = 0.003f, float propagationRate = 0.01f, int hitsThreshold = 32, float alpha = 0.01f, float beta = 0.0022f, float blinkingSupressionDecay = 0.1f, float blinkingSupressionMultiplier = 0.1f, float noiseRemovalThresholdFacBG = 0.0004f, float noiseRemovalThresholdFacFG = 0.0008f)
  509. [DllImport (LIBNAME)]
  510. private static extern IntPtr bgsegm_Bgsegm_createBackgroundSubtractorGSOC_10 (int mc, int nSamples, float replaceRate, float propagationRate, int hitsThreshold, float alpha, float beta, float blinkingSupressionDecay, float blinkingSupressionMultiplier, float noiseRemovalThresholdFacBG, float noiseRemovalThresholdFacFG);
  511. [DllImport (LIBNAME)]
  512. private static extern IntPtr bgsegm_Bgsegm_createBackgroundSubtractorGSOC_11 (int mc, int nSamples, float replaceRate, float propagationRate, int hitsThreshold, float alpha, float beta, float blinkingSupressionDecay, float blinkingSupressionMultiplier, float noiseRemovalThresholdFacBG);
  513. [DllImport (LIBNAME)]
  514. private static extern IntPtr bgsegm_Bgsegm_createBackgroundSubtractorGSOC_12 (int mc, int nSamples, float replaceRate, float propagationRate, int hitsThreshold, float alpha, float beta, float blinkingSupressionDecay, float blinkingSupressionMultiplier);
  515. [DllImport (LIBNAME)]
  516. private static extern IntPtr bgsegm_Bgsegm_createBackgroundSubtractorGSOC_13 (int mc, int nSamples, float replaceRate, float propagationRate, int hitsThreshold, float alpha, float beta, float blinkingSupressionDecay);
  517. [DllImport (LIBNAME)]
  518. private static extern IntPtr bgsegm_Bgsegm_createBackgroundSubtractorGSOC_14 (int mc, int nSamples, float replaceRate, float propagationRate, int hitsThreshold, float alpha, float beta);
  519. [DllImport (LIBNAME)]
  520. private static extern IntPtr bgsegm_Bgsegm_createBackgroundSubtractorGSOC_15 (int mc, int nSamples, float replaceRate, float propagationRate, int hitsThreshold, float alpha);
  521. [DllImport (LIBNAME)]
  522. private static extern IntPtr bgsegm_Bgsegm_createBackgroundSubtractorGSOC_16 (int mc, int nSamples, float replaceRate, float propagationRate, int hitsThreshold);
  523. [DllImport (LIBNAME)]
  524. private static extern IntPtr bgsegm_Bgsegm_createBackgroundSubtractorGSOC_17 (int mc, int nSamples, float replaceRate, float propagationRate);
  525. [DllImport (LIBNAME)]
  526. private static extern IntPtr bgsegm_Bgsegm_createBackgroundSubtractorGSOC_18 (int mc, int nSamples, float replaceRate);
  527. [DllImport (LIBNAME)]
  528. private static extern IntPtr bgsegm_Bgsegm_createBackgroundSubtractorGSOC_19 (int mc, int nSamples);
  529. [DllImport (LIBNAME)]
  530. private static extern IntPtr bgsegm_Bgsegm_createBackgroundSubtractorGSOC_110 (int mc);
  531. [DllImport (LIBNAME)]
  532. private static extern IntPtr bgsegm_Bgsegm_createBackgroundSubtractorGSOC_111 ();
  533. // C++: Ptr_BackgroundSubtractorLSBP cv::bgsegm::createBackgroundSubtractorLSBP(int mc = LSBP_CAMERA_MOTION_COMPENSATION_NONE, int nSamples = 20, int LSBPRadius = 16, float Tlower = 2.0f, float Tupper = 32.0f, float Tinc = 1.0f, float Tdec = 0.05f, float Rscale = 10.0f, float Rincdec = 0.005f, float noiseRemovalThresholdFacBG = 0.0004f, float noiseRemovalThresholdFacFG = 0.0008f, int LSBPthreshold = 8, int minCount = 2)
  534. [DllImport (LIBNAME)]
  535. private static extern IntPtr bgsegm_Bgsegm_createBackgroundSubtractorLSBP_10 (int mc, int nSamples, int LSBPRadius, float Tlower, float Tupper, float Tinc, float Tdec, float Rscale, float Rincdec, float noiseRemovalThresholdFacBG, float noiseRemovalThresholdFacFG, int LSBPthreshold, int minCount);
  536. [DllImport (LIBNAME)]
  537. private static extern IntPtr bgsegm_Bgsegm_createBackgroundSubtractorLSBP_11 (int mc, int nSamples, int LSBPRadius, float Tlower, float Tupper, float Tinc, float Tdec, float Rscale, float Rincdec, float noiseRemovalThresholdFacBG, float noiseRemovalThresholdFacFG, int LSBPthreshold);
  538. [DllImport (LIBNAME)]
  539. private static extern IntPtr bgsegm_Bgsegm_createBackgroundSubtractorLSBP_12 (int mc, int nSamples, int LSBPRadius, float Tlower, float Tupper, float Tinc, float Tdec, float Rscale, float Rincdec, float noiseRemovalThresholdFacBG, float noiseRemovalThresholdFacFG);
  540. [DllImport (LIBNAME)]
  541. private static extern IntPtr bgsegm_Bgsegm_createBackgroundSubtractorLSBP_13 (int mc, int nSamples, int LSBPRadius, float Tlower, float Tupper, float Tinc, float Tdec, float Rscale, float Rincdec, float noiseRemovalThresholdFacBG);
  542. [DllImport (LIBNAME)]
  543. private static extern IntPtr bgsegm_Bgsegm_createBackgroundSubtractorLSBP_14 (int mc, int nSamples, int LSBPRadius, float Tlower, float Tupper, float Tinc, float Tdec, float Rscale, float Rincdec);
  544. [DllImport (LIBNAME)]
  545. private static extern IntPtr bgsegm_Bgsegm_createBackgroundSubtractorLSBP_15 (int mc, int nSamples, int LSBPRadius, float Tlower, float Tupper, float Tinc, float Tdec, float Rscale);
  546. [DllImport (LIBNAME)]
  547. private static extern IntPtr bgsegm_Bgsegm_createBackgroundSubtractorLSBP_16 (int mc, int nSamples, int LSBPRadius, float Tlower, float Tupper, float Tinc, float Tdec);
  548. [DllImport (LIBNAME)]
  549. private static extern IntPtr bgsegm_Bgsegm_createBackgroundSubtractorLSBP_17 (int mc, int nSamples, int LSBPRadius, float Tlower, float Tupper, float Tinc);
  550. [DllImport (LIBNAME)]
  551. private static extern IntPtr bgsegm_Bgsegm_createBackgroundSubtractorLSBP_18 (int mc, int nSamples, int LSBPRadius, float Tlower, float Tupper);
  552. [DllImport (LIBNAME)]
  553. private static extern IntPtr bgsegm_Bgsegm_createBackgroundSubtractorLSBP_19 (int mc, int nSamples, int LSBPRadius, float Tlower);
  554. [DllImport (LIBNAME)]
  555. private static extern IntPtr bgsegm_Bgsegm_createBackgroundSubtractorLSBP_110 (int mc, int nSamples, int LSBPRadius);
  556. [DllImport (LIBNAME)]
  557. private static extern IntPtr bgsegm_Bgsegm_createBackgroundSubtractorLSBP_111 (int mc, int nSamples);
  558. [DllImport (LIBNAME)]
  559. private static extern IntPtr bgsegm_Bgsegm_createBackgroundSubtractorLSBP_112 (int mc);
  560. [DllImport (LIBNAME)]
  561. private static extern IntPtr bgsegm_Bgsegm_createBackgroundSubtractorLSBP_113 ();
  562. // C++: Ptr_BackgroundSubtractorMOG cv::bgsegm::createBackgroundSubtractorMOG(int history = 200, int nmixtures = 5, double backgroundRatio = 0.7, double noiseSigma = 0)
  563. [DllImport (LIBNAME)]
  564. private static extern IntPtr bgsegm_Bgsegm_createBackgroundSubtractorMOG_10 (int history, int nmixtures, double backgroundRatio, double noiseSigma);
  565. [DllImport (LIBNAME)]
  566. private static extern IntPtr bgsegm_Bgsegm_createBackgroundSubtractorMOG_11 (int history, int nmixtures, double backgroundRatio);
  567. [DllImport (LIBNAME)]
  568. private static extern IntPtr bgsegm_Bgsegm_createBackgroundSubtractorMOG_12 (int history, int nmixtures);
  569. [DllImport (LIBNAME)]
  570. private static extern IntPtr bgsegm_Bgsegm_createBackgroundSubtractorMOG_13 (int history);
  571. [DllImport (LIBNAME)]
  572. private static extern IntPtr bgsegm_Bgsegm_createBackgroundSubtractorMOG_14 ();
  573. // C++: Ptr_SyntheticSequenceGenerator cv::bgsegm::createSyntheticSequenceGenerator(Mat background, Mat _object, double amplitude = 2.0, double wavelength = 20.0, double wavespeed = 0.2, double objspeed = 6.0)
  574. [DllImport (LIBNAME)]
  575. private static extern IntPtr bgsegm_Bgsegm_createSyntheticSequenceGenerator_10 (IntPtr background_nativeObj, IntPtr _object_nativeObj, double amplitude, double wavelength, double wavespeed, double objspeed);
  576. [DllImport (LIBNAME)]
  577. private static extern IntPtr bgsegm_Bgsegm_createSyntheticSequenceGenerator_11 (IntPtr background_nativeObj, IntPtr _object_nativeObj, double amplitude, double wavelength, double wavespeed);
  578. [DllImport (LIBNAME)]
  579. private static extern IntPtr bgsegm_Bgsegm_createSyntheticSequenceGenerator_12 (IntPtr background_nativeObj, IntPtr _object_nativeObj, double amplitude, double wavelength);
  580. [DllImport (LIBNAME)]
  581. private static extern IntPtr bgsegm_Bgsegm_createSyntheticSequenceGenerator_13 (IntPtr background_nativeObj, IntPtr _object_nativeObj, double amplitude);
  582. [DllImport (LIBNAME)]
  583. private static extern IntPtr bgsegm_Bgsegm_createSyntheticSequenceGenerator_14 (IntPtr background_nativeObj, IntPtr _object_nativeObj);
  584. }
  585. }