Bgsegm.h 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597
  1. //
  2. // This file is auto-generated. Please don't modify it!
  3. //
  4. #pragma once
  5. #ifdef __cplusplus
  6. //#import "opencv.hpp"
  7. #import "opencv2/bgsegm.hpp"
  8. #else
  9. #define CV_EXPORTS
  10. #endif
  11. #import <Foundation/Foundation.h>
  12. @class BackgroundSubtractorCNT;
  13. @class BackgroundSubtractorGMG;
  14. @class BackgroundSubtractorGSOC;
  15. @class BackgroundSubtractorLSBP;
  16. @class BackgroundSubtractorMOG;
  17. @class Mat;
  18. @class SyntheticSequenceGenerator;
  19. // C++: enum LSBPCameraMotionCompensation (cv.bgsegm.LSBPCameraMotionCompensation)
  20. typedef NS_ENUM(int, LSBPCameraMotionCompensation) {
  21. LSBP_CAMERA_MOTION_COMPENSATION_NONE = 0,
  22. LSBP_CAMERA_MOTION_COMPENSATION_LK = 0+1
  23. };
  24. NS_ASSUME_NONNULL_BEGIN
  25. // C++: class Bgsegm
  26. /**
  27. * The Bgsegm module
  28. *
  29. * Member classes: `BackgroundSubtractorMOG`, `BackgroundSubtractorGMG`, `BackgroundSubtractorCNT`, `BackgroundSubtractorGSOC`, `BackgroundSubtractorLSBP`, `BackgroundSubtractorLSBPDesc`, `SyntheticSequenceGenerator`
  30. *
  31. * Member enums: `LSBPCameraMotionCompensation`
  32. */
  33. CV_EXPORTS @interface Bgsegm : NSObject
  34. #pragma mark - Methods
  35. //
  36. // Ptr_BackgroundSubtractorMOG cv::bgsegm::createBackgroundSubtractorMOG(int history = 200, int nmixtures = 5, double backgroundRatio = 0.7, double noiseSigma = 0)
  37. //
  38. /**
  39. * Creates mixture-of-gaussian background subtractor
  40. *
  41. * @param history Length of the history.
  42. * @param nmixtures Number of Gaussian mixtures.
  43. * @param backgroundRatio Background ratio.
  44. * @param noiseSigma Noise strength (standard deviation of the brightness or each color channel). 0
  45. * means some automatic value.
  46. */
  47. + (BackgroundSubtractorMOG*)createBackgroundSubtractorMOG:(int)history nmixtures:(int)nmixtures backgroundRatio:(double)backgroundRatio noiseSigma:(double)noiseSigma NS_SWIFT_NAME(createBackgroundSubtractorMOG(history:nmixtures:backgroundRatio:noiseSigma:));
  48. /**
  49. * Creates mixture-of-gaussian background subtractor
  50. *
  51. * @param history Length of the history.
  52. * @param nmixtures Number of Gaussian mixtures.
  53. * @param backgroundRatio Background ratio.
  54. * means some automatic value.
  55. */
  56. + (BackgroundSubtractorMOG*)createBackgroundSubtractorMOG:(int)history nmixtures:(int)nmixtures backgroundRatio:(double)backgroundRatio NS_SWIFT_NAME(createBackgroundSubtractorMOG(history:nmixtures:backgroundRatio:));
  57. /**
  58. * Creates mixture-of-gaussian background subtractor
  59. *
  60. * @param history Length of the history.
  61. * @param nmixtures Number of Gaussian mixtures.
  62. * means some automatic value.
  63. */
  64. + (BackgroundSubtractorMOG*)createBackgroundSubtractorMOG:(int)history nmixtures:(int)nmixtures NS_SWIFT_NAME(createBackgroundSubtractorMOG(history:nmixtures:));
  65. /**
  66. * Creates mixture-of-gaussian background subtractor
  67. *
  68. * @param history Length of the history.
  69. * means some automatic value.
  70. */
  71. + (BackgroundSubtractorMOG*)createBackgroundSubtractorMOG:(int)history NS_SWIFT_NAME(createBackgroundSubtractorMOG(history:));
  72. /**
  73. * Creates mixture-of-gaussian background subtractor
  74. *
  75. * means some automatic value.
  76. */
  77. + (BackgroundSubtractorMOG*)createBackgroundSubtractorMOG NS_SWIFT_NAME(createBackgroundSubtractorMOG());
  78. //
  79. // Ptr_BackgroundSubtractorGMG cv::bgsegm::createBackgroundSubtractorGMG(int initializationFrames = 120, double decisionThreshold = 0.8)
  80. //
  81. /**
  82. * Creates a GMG Background Subtractor
  83. *
  84. * @param initializationFrames number of frames used to initialize the background models.
  85. * @param decisionThreshold Threshold value, above which it is marked foreground, else background.
  86. */
  87. + (BackgroundSubtractorGMG*)createBackgroundSubtractorGMG:(int)initializationFrames decisionThreshold:(double)decisionThreshold NS_SWIFT_NAME(createBackgroundSubtractorGMG(initializationFrames:decisionThreshold:));
  88. /**
  89. * Creates a GMG Background Subtractor
  90. *
  91. * @param initializationFrames number of frames used to initialize the background models.
  92. */
  93. + (BackgroundSubtractorGMG*)createBackgroundSubtractorGMG:(int)initializationFrames NS_SWIFT_NAME(createBackgroundSubtractorGMG(initializationFrames:));
  94. /**
  95. * Creates a GMG Background Subtractor
  96. *
  97. */
  98. + (BackgroundSubtractorGMG*)createBackgroundSubtractorGMG NS_SWIFT_NAME(createBackgroundSubtractorGMG());
  99. //
  100. // Ptr_BackgroundSubtractorCNT cv::bgsegm::createBackgroundSubtractorCNT(int minPixelStability = 15, bool useHistory = true, int maxPixelStability = 15*60, bool isParallel = true)
  101. //
  102. /**
  103. * Creates a CNT Background Subtractor
  104. *
  105. * @param minPixelStability number of frames with same pixel color to consider stable
  106. * @param useHistory determines if we're giving a pixel credit for being stable for a long time
  107. * @param maxPixelStability maximum allowed credit for a pixel in history
  108. * @param isParallel determines if we're parallelizing the algorithm
  109. */
  110. + (BackgroundSubtractorCNT*)createBackgroundSubtractorCNT:(int)minPixelStability useHistory:(BOOL)useHistory maxPixelStability:(int)maxPixelStability isParallel:(BOOL)isParallel NS_SWIFT_NAME(createBackgroundSubtractorCNT(minPixelStability:useHistory:maxPixelStability:isParallel:));
  111. /**
  112. * Creates a CNT Background Subtractor
  113. *
  114. * @param minPixelStability number of frames with same pixel color to consider stable
  115. * @param useHistory determines if we're giving a pixel credit for being stable for a long time
  116. * @param maxPixelStability maximum allowed credit for a pixel in history
  117. */
  118. + (BackgroundSubtractorCNT*)createBackgroundSubtractorCNT:(int)minPixelStability useHistory:(BOOL)useHistory maxPixelStability:(int)maxPixelStability NS_SWIFT_NAME(createBackgroundSubtractorCNT(minPixelStability:useHistory:maxPixelStability:));
  119. /**
  120. * Creates a CNT Background Subtractor
  121. *
  122. * @param minPixelStability number of frames with same pixel color to consider stable
  123. * @param useHistory determines if we're giving a pixel credit for being stable for a long time
  124. */
  125. + (BackgroundSubtractorCNT*)createBackgroundSubtractorCNT:(int)minPixelStability useHistory:(BOOL)useHistory NS_SWIFT_NAME(createBackgroundSubtractorCNT(minPixelStability:useHistory:));
  126. /**
  127. * Creates a CNT Background Subtractor
  128. *
  129. * @param minPixelStability number of frames with same pixel color to consider stable
  130. */
  131. + (BackgroundSubtractorCNT*)createBackgroundSubtractorCNT:(int)minPixelStability NS_SWIFT_NAME(createBackgroundSubtractorCNT(minPixelStability:));
  132. /**
  133. * Creates a CNT Background Subtractor
  134. *
  135. */
  136. + (BackgroundSubtractorCNT*)createBackgroundSubtractorCNT NS_SWIFT_NAME(createBackgroundSubtractorCNT());
  137. //
  138. // Ptr_BackgroundSubtractorGSOC cv::bgsegm::createBackgroundSubtractorGSOC(LSBPCameraMotionCompensation 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)
  139. //
  140. /**
  141. * Creates an instance of BackgroundSubtractorGSOC algorithm.
  142. *
  143. * Implementation of the different yet better algorithm which is called GSOC, as it was implemented during GSOC and was not originated from any paper.
  144. *
  145. * @param mc Whether to use camera motion compensation.
  146. * @param nSamples Number of samples to maintain at each point of the frame.
  147. * @param replaceRate Probability of replacing the old sample - how fast the model will update itself.
  148. * @param propagationRate Probability of propagating to neighbors.
  149. * @param hitsThreshold How many positives the sample must get before it will be considered as a possible replacement.
  150. * @param alpha Scale coefficient for threshold.
  151. * @param beta Bias coefficient for threshold.
  152. * @param blinkingSupressionDecay Blinking supression decay factor.
  153. * @param blinkingSupressionMultiplier Blinking supression multiplier.
  154. * @param noiseRemovalThresholdFacBG Strength of the noise removal for background points.
  155. * @param noiseRemovalThresholdFacFG Strength of the noise removal for foreground points.
  156. */
  157. + (BackgroundSubtractorGSOC*)createBackgroundSubtractorGSOC:(LSBPCameraMotionCompensation)mc nSamples:(int)nSamples replaceRate:(float)replaceRate propagationRate:(float)propagationRate hitsThreshold:(int)hitsThreshold alpha:(float)alpha beta:(float)beta blinkingSupressionDecay:(float)blinkingSupressionDecay blinkingSupressionMultiplier:(float)blinkingSupressionMultiplier noiseRemovalThresholdFacBG:(float)noiseRemovalThresholdFacBG noiseRemovalThresholdFacFG:(float)noiseRemovalThresholdFacFG NS_SWIFT_NAME(createBackgroundSubtractorGSOC(mc:nSamples:replaceRate:propagationRate:hitsThreshold:alpha:beta:blinkingSupressionDecay:blinkingSupressionMultiplier:noiseRemovalThresholdFacBG:noiseRemovalThresholdFacFG:));
  158. /**
  159. * Creates an instance of BackgroundSubtractorGSOC algorithm.
  160. *
  161. * Implementation of the different yet better algorithm which is called GSOC, as it was implemented during GSOC and was not originated from any paper.
  162. *
  163. * @param mc Whether to use camera motion compensation.
  164. * @param nSamples Number of samples to maintain at each point of the frame.
  165. * @param replaceRate Probability of replacing the old sample - how fast the model will update itself.
  166. * @param propagationRate Probability of propagating to neighbors.
  167. * @param hitsThreshold How many positives the sample must get before it will be considered as a possible replacement.
  168. * @param alpha Scale coefficient for threshold.
  169. * @param beta Bias coefficient for threshold.
  170. * @param blinkingSupressionDecay Blinking supression decay factor.
  171. * @param blinkingSupressionMultiplier Blinking supression multiplier.
  172. * @param noiseRemovalThresholdFacBG Strength of the noise removal for background points.
  173. */
  174. + (BackgroundSubtractorGSOC*)createBackgroundSubtractorGSOC:(LSBPCameraMotionCompensation)mc nSamples:(int)nSamples replaceRate:(float)replaceRate propagationRate:(float)propagationRate hitsThreshold:(int)hitsThreshold alpha:(float)alpha beta:(float)beta blinkingSupressionDecay:(float)blinkingSupressionDecay blinkingSupressionMultiplier:(float)blinkingSupressionMultiplier noiseRemovalThresholdFacBG:(float)noiseRemovalThresholdFacBG NS_SWIFT_NAME(createBackgroundSubtractorGSOC(mc:nSamples:replaceRate:propagationRate:hitsThreshold:alpha:beta:blinkingSupressionDecay:blinkingSupressionMultiplier:noiseRemovalThresholdFacBG:));
  175. /**
  176. * Creates an instance of BackgroundSubtractorGSOC algorithm.
  177. *
  178. * Implementation of the different yet better algorithm which is called GSOC, as it was implemented during GSOC and was not originated from any paper.
  179. *
  180. * @param mc Whether to use camera motion compensation.
  181. * @param nSamples Number of samples to maintain at each point of the frame.
  182. * @param replaceRate Probability of replacing the old sample - how fast the model will update itself.
  183. * @param propagationRate Probability of propagating to neighbors.
  184. * @param hitsThreshold How many positives the sample must get before it will be considered as a possible replacement.
  185. * @param alpha Scale coefficient for threshold.
  186. * @param beta Bias coefficient for threshold.
  187. * @param blinkingSupressionDecay Blinking supression decay factor.
  188. * @param blinkingSupressionMultiplier Blinking supression multiplier.
  189. */
  190. + (BackgroundSubtractorGSOC*)createBackgroundSubtractorGSOC:(LSBPCameraMotionCompensation)mc nSamples:(int)nSamples replaceRate:(float)replaceRate propagationRate:(float)propagationRate hitsThreshold:(int)hitsThreshold alpha:(float)alpha beta:(float)beta blinkingSupressionDecay:(float)blinkingSupressionDecay blinkingSupressionMultiplier:(float)blinkingSupressionMultiplier NS_SWIFT_NAME(createBackgroundSubtractorGSOC(mc:nSamples:replaceRate:propagationRate:hitsThreshold:alpha:beta:blinkingSupressionDecay:blinkingSupressionMultiplier:));
  191. /**
  192. * Creates an instance of BackgroundSubtractorGSOC algorithm.
  193. *
  194. * Implementation of the different yet better algorithm which is called GSOC, as it was implemented during GSOC and was not originated from any paper.
  195. *
  196. * @param mc Whether to use camera motion compensation.
  197. * @param nSamples Number of samples to maintain at each point of the frame.
  198. * @param replaceRate Probability of replacing the old sample - how fast the model will update itself.
  199. * @param propagationRate Probability of propagating to neighbors.
  200. * @param hitsThreshold How many positives the sample must get before it will be considered as a possible replacement.
  201. * @param alpha Scale coefficient for threshold.
  202. * @param beta Bias coefficient for threshold.
  203. * @param blinkingSupressionDecay Blinking supression decay factor.
  204. */
  205. + (BackgroundSubtractorGSOC*)createBackgroundSubtractorGSOC:(LSBPCameraMotionCompensation)mc nSamples:(int)nSamples replaceRate:(float)replaceRate propagationRate:(float)propagationRate hitsThreshold:(int)hitsThreshold alpha:(float)alpha beta:(float)beta blinkingSupressionDecay:(float)blinkingSupressionDecay NS_SWIFT_NAME(createBackgroundSubtractorGSOC(mc:nSamples:replaceRate:propagationRate:hitsThreshold:alpha:beta:blinkingSupressionDecay:));
  206. /**
  207. * Creates an instance of BackgroundSubtractorGSOC algorithm.
  208. *
  209. * Implementation of the different yet better algorithm which is called GSOC, as it was implemented during GSOC and was not originated from any paper.
  210. *
  211. * @param mc Whether to use camera motion compensation.
  212. * @param nSamples Number of samples to maintain at each point of the frame.
  213. * @param replaceRate Probability of replacing the old sample - how fast the model will update itself.
  214. * @param propagationRate Probability of propagating to neighbors.
  215. * @param hitsThreshold How many positives the sample must get before it will be considered as a possible replacement.
  216. * @param alpha Scale coefficient for threshold.
  217. * @param beta Bias coefficient for threshold.
  218. */
  219. + (BackgroundSubtractorGSOC*)createBackgroundSubtractorGSOC:(LSBPCameraMotionCompensation)mc nSamples:(int)nSamples replaceRate:(float)replaceRate propagationRate:(float)propagationRate hitsThreshold:(int)hitsThreshold alpha:(float)alpha beta:(float)beta NS_SWIFT_NAME(createBackgroundSubtractorGSOC(mc:nSamples:replaceRate:propagationRate:hitsThreshold:alpha:beta:));
  220. /**
  221. * Creates an instance of BackgroundSubtractorGSOC algorithm.
  222. *
  223. * Implementation of the different yet better algorithm which is called GSOC, as it was implemented during GSOC and was not originated from any paper.
  224. *
  225. * @param mc Whether to use camera motion compensation.
  226. * @param nSamples Number of samples to maintain at each point of the frame.
  227. * @param replaceRate Probability of replacing the old sample - how fast the model will update itself.
  228. * @param propagationRate Probability of propagating to neighbors.
  229. * @param hitsThreshold How many positives the sample must get before it will be considered as a possible replacement.
  230. * @param alpha Scale coefficient for threshold.
  231. */
  232. + (BackgroundSubtractorGSOC*)createBackgroundSubtractorGSOC:(LSBPCameraMotionCompensation)mc nSamples:(int)nSamples replaceRate:(float)replaceRate propagationRate:(float)propagationRate hitsThreshold:(int)hitsThreshold alpha:(float)alpha NS_SWIFT_NAME(createBackgroundSubtractorGSOC(mc:nSamples:replaceRate:propagationRate:hitsThreshold:alpha:));
  233. /**
  234. * Creates an instance of BackgroundSubtractorGSOC algorithm.
  235. *
  236. * Implementation of the different yet better algorithm which is called GSOC, as it was implemented during GSOC and was not originated from any paper.
  237. *
  238. * @param mc Whether to use camera motion compensation.
  239. * @param nSamples Number of samples to maintain at each point of the frame.
  240. * @param replaceRate Probability of replacing the old sample - how fast the model will update itself.
  241. * @param propagationRate Probability of propagating to neighbors.
  242. * @param hitsThreshold How many positives the sample must get before it will be considered as a possible replacement.
  243. */
  244. + (BackgroundSubtractorGSOC*)createBackgroundSubtractorGSOC:(LSBPCameraMotionCompensation)mc nSamples:(int)nSamples replaceRate:(float)replaceRate propagationRate:(float)propagationRate hitsThreshold:(int)hitsThreshold NS_SWIFT_NAME(createBackgroundSubtractorGSOC(mc:nSamples:replaceRate:propagationRate:hitsThreshold:));
  245. /**
  246. * Creates an instance of BackgroundSubtractorGSOC algorithm.
  247. *
  248. * Implementation of the different yet better algorithm which is called GSOC, as it was implemented during GSOC and was not originated from any paper.
  249. *
  250. * @param mc Whether to use camera motion compensation.
  251. * @param nSamples Number of samples to maintain at each point of the frame.
  252. * @param replaceRate Probability of replacing the old sample - how fast the model will update itself.
  253. * @param propagationRate Probability of propagating to neighbors.
  254. */
  255. + (BackgroundSubtractorGSOC*)createBackgroundSubtractorGSOC:(LSBPCameraMotionCompensation)mc nSamples:(int)nSamples replaceRate:(float)replaceRate propagationRate:(float)propagationRate NS_SWIFT_NAME(createBackgroundSubtractorGSOC(mc:nSamples:replaceRate:propagationRate:));
  256. /**
  257. * Creates an instance of BackgroundSubtractorGSOC algorithm.
  258. *
  259. * Implementation of the different yet better algorithm which is called GSOC, as it was implemented during GSOC and was not originated from any paper.
  260. *
  261. * @param mc Whether to use camera motion compensation.
  262. * @param nSamples Number of samples to maintain at each point of the frame.
  263. * @param replaceRate Probability of replacing the old sample - how fast the model will update itself.
  264. */
  265. + (BackgroundSubtractorGSOC*)createBackgroundSubtractorGSOC:(LSBPCameraMotionCompensation)mc nSamples:(int)nSamples replaceRate:(float)replaceRate NS_SWIFT_NAME(createBackgroundSubtractorGSOC(mc:nSamples:replaceRate:));
  266. /**
  267. * Creates an instance of BackgroundSubtractorGSOC algorithm.
  268. *
  269. * Implementation of the different yet better algorithm which is called GSOC, as it was implemented during GSOC and was not originated from any paper.
  270. *
  271. * @param mc Whether to use camera motion compensation.
  272. * @param nSamples Number of samples to maintain at each point of the frame.
  273. */
  274. + (BackgroundSubtractorGSOC*)createBackgroundSubtractorGSOC:(LSBPCameraMotionCompensation)mc nSamples:(int)nSamples NS_SWIFT_NAME(createBackgroundSubtractorGSOC(mc:nSamples:));
  275. /**
  276. * Creates an instance of BackgroundSubtractorGSOC algorithm.
  277. *
  278. * Implementation of the different yet better algorithm which is called GSOC, as it was implemented during GSOC and was not originated from any paper.
  279. *
  280. * @param mc Whether to use camera motion compensation.
  281. */
  282. + (BackgroundSubtractorGSOC*)createBackgroundSubtractorGSOC:(LSBPCameraMotionCompensation)mc NS_SWIFT_NAME(createBackgroundSubtractorGSOC(mc:));
  283. /**
  284. * Creates an instance of BackgroundSubtractorGSOC algorithm.
  285. *
  286. * Implementation of the different yet better algorithm which is called GSOC, as it was implemented during GSOC and was not originated from any paper.
  287. *
  288. */
  289. + (BackgroundSubtractorGSOC*)createBackgroundSubtractorGSOC NS_SWIFT_NAME(createBackgroundSubtractorGSOC());
  290. //
  291. // Ptr_BackgroundSubtractorLSBP cv::bgsegm::createBackgroundSubtractorLSBP(LSBPCameraMotionCompensation 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)
  292. //
  293. /**
  294. * Creates an instance of BackgroundSubtractorLSBP algorithm.
  295. *
  296. * Background Subtraction using Local SVD Binary Pattern. More details about the algorithm can be found at CITE: LGuo2016
  297. *
  298. * @param mc Whether to use camera motion compensation.
  299. * @param nSamples Number of samples to maintain at each point of the frame.
  300. * @param LSBPRadius LSBP descriptor radius.
  301. * @param Tlower Lower bound for T-values. See CITE: LGuo2016 for details.
  302. * @param Tupper Upper bound for T-values. See CITE: LGuo2016 for details.
  303. * @param Tinc Increase step for T-values. See CITE: LGuo2016 for details.
  304. * @param Tdec Decrease step for T-values. See CITE: LGuo2016 for details.
  305. * @param Rscale Scale coefficient for threshold values.
  306. * @param Rincdec Increase/Decrease step for threshold values.
  307. * @param noiseRemovalThresholdFacBG Strength of the noise removal for background points.
  308. * @param noiseRemovalThresholdFacFG Strength of the noise removal for foreground points.
  309. * @param LSBPthreshold Threshold for LSBP binary string.
  310. * @param minCount Minimal number of matches for sample to be considered as foreground.
  311. */
  312. + (BackgroundSubtractorLSBP*)createBackgroundSubtractorLSBP:(LSBPCameraMotionCompensation)mc nSamples:(int)nSamples LSBPRadius:(int)LSBPRadius Tlower:(float)Tlower Tupper:(float)Tupper Tinc:(float)Tinc Tdec:(float)Tdec Rscale:(float)Rscale Rincdec:(float)Rincdec noiseRemovalThresholdFacBG:(float)noiseRemovalThresholdFacBG noiseRemovalThresholdFacFG:(float)noiseRemovalThresholdFacFG LSBPthreshold:(int)LSBPthreshold minCount:(int)minCount NS_SWIFT_NAME(createBackgroundSubtractorLSBP(mc:nSamples:LSBPRadius:Tlower:Tupper:Tinc:Tdec:Rscale:Rincdec:noiseRemovalThresholdFacBG:noiseRemovalThresholdFacFG:LSBPthreshold:minCount:));
  313. /**
  314. * Creates an instance of BackgroundSubtractorLSBP algorithm.
  315. *
  316. * Background Subtraction using Local SVD Binary Pattern. More details about the algorithm can be found at CITE: LGuo2016
  317. *
  318. * @param mc Whether to use camera motion compensation.
  319. * @param nSamples Number of samples to maintain at each point of the frame.
  320. * @param LSBPRadius LSBP descriptor radius.
  321. * @param Tlower Lower bound for T-values. See CITE: LGuo2016 for details.
  322. * @param Tupper Upper bound for T-values. See CITE: LGuo2016 for details.
  323. * @param Tinc Increase step for T-values. See CITE: LGuo2016 for details.
  324. * @param Tdec Decrease step for T-values. See CITE: LGuo2016 for details.
  325. * @param Rscale Scale coefficient for threshold values.
  326. * @param Rincdec Increase/Decrease step for threshold values.
  327. * @param noiseRemovalThresholdFacBG Strength of the noise removal for background points.
  328. * @param noiseRemovalThresholdFacFG Strength of the noise removal for foreground points.
  329. * @param LSBPthreshold Threshold for LSBP binary string.
  330. */
  331. + (BackgroundSubtractorLSBP*)createBackgroundSubtractorLSBP:(LSBPCameraMotionCompensation)mc nSamples:(int)nSamples LSBPRadius:(int)LSBPRadius Tlower:(float)Tlower Tupper:(float)Tupper Tinc:(float)Tinc Tdec:(float)Tdec Rscale:(float)Rscale Rincdec:(float)Rincdec noiseRemovalThresholdFacBG:(float)noiseRemovalThresholdFacBG noiseRemovalThresholdFacFG:(float)noiseRemovalThresholdFacFG LSBPthreshold:(int)LSBPthreshold NS_SWIFT_NAME(createBackgroundSubtractorLSBP(mc:nSamples:LSBPRadius:Tlower:Tupper:Tinc:Tdec:Rscale:Rincdec:noiseRemovalThresholdFacBG:noiseRemovalThresholdFacFG:LSBPthreshold:));
  332. /**
  333. * Creates an instance of BackgroundSubtractorLSBP algorithm.
  334. *
  335. * Background Subtraction using Local SVD Binary Pattern. More details about the algorithm can be found at CITE: LGuo2016
  336. *
  337. * @param mc Whether to use camera motion compensation.
  338. * @param nSamples Number of samples to maintain at each point of the frame.
  339. * @param LSBPRadius LSBP descriptor radius.
  340. * @param Tlower Lower bound for T-values. See CITE: LGuo2016 for details.
  341. * @param Tupper Upper bound for T-values. See CITE: LGuo2016 for details.
  342. * @param Tinc Increase step for T-values. See CITE: LGuo2016 for details.
  343. * @param Tdec Decrease step for T-values. See CITE: LGuo2016 for details.
  344. * @param Rscale Scale coefficient for threshold values.
  345. * @param Rincdec Increase/Decrease step for threshold values.
  346. * @param noiseRemovalThresholdFacBG Strength of the noise removal for background points.
  347. * @param noiseRemovalThresholdFacFG Strength of the noise removal for foreground points.
  348. */
  349. + (BackgroundSubtractorLSBP*)createBackgroundSubtractorLSBP:(LSBPCameraMotionCompensation)mc nSamples:(int)nSamples LSBPRadius:(int)LSBPRadius Tlower:(float)Tlower Tupper:(float)Tupper Tinc:(float)Tinc Tdec:(float)Tdec Rscale:(float)Rscale Rincdec:(float)Rincdec noiseRemovalThresholdFacBG:(float)noiseRemovalThresholdFacBG noiseRemovalThresholdFacFG:(float)noiseRemovalThresholdFacFG NS_SWIFT_NAME(createBackgroundSubtractorLSBP(mc:nSamples:LSBPRadius:Tlower:Tupper:Tinc:Tdec:Rscale:Rincdec:noiseRemovalThresholdFacBG:noiseRemovalThresholdFacFG:));
  350. /**
  351. * Creates an instance of BackgroundSubtractorLSBP algorithm.
  352. *
  353. * Background Subtraction using Local SVD Binary Pattern. More details about the algorithm can be found at CITE: LGuo2016
  354. *
  355. * @param mc Whether to use camera motion compensation.
  356. * @param nSamples Number of samples to maintain at each point of the frame.
  357. * @param LSBPRadius LSBP descriptor radius.
  358. * @param Tlower Lower bound for T-values. See CITE: LGuo2016 for details.
  359. * @param Tupper Upper bound for T-values. See CITE: LGuo2016 for details.
  360. * @param Tinc Increase step for T-values. See CITE: LGuo2016 for details.
  361. * @param Tdec Decrease step for T-values. See CITE: LGuo2016 for details.
  362. * @param Rscale Scale coefficient for threshold values.
  363. * @param Rincdec Increase/Decrease step for threshold values.
  364. * @param noiseRemovalThresholdFacBG Strength of the noise removal for background points.
  365. */
  366. + (BackgroundSubtractorLSBP*)createBackgroundSubtractorLSBP:(LSBPCameraMotionCompensation)mc nSamples:(int)nSamples LSBPRadius:(int)LSBPRadius Tlower:(float)Tlower Tupper:(float)Tupper Tinc:(float)Tinc Tdec:(float)Tdec Rscale:(float)Rscale Rincdec:(float)Rincdec noiseRemovalThresholdFacBG:(float)noiseRemovalThresholdFacBG NS_SWIFT_NAME(createBackgroundSubtractorLSBP(mc:nSamples:LSBPRadius:Tlower:Tupper:Tinc:Tdec:Rscale:Rincdec:noiseRemovalThresholdFacBG:));
  367. /**
  368. * Creates an instance of BackgroundSubtractorLSBP algorithm.
  369. *
  370. * Background Subtraction using Local SVD Binary Pattern. More details about the algorithm can be found at CITE: LGuo2016
  371. *
  372. * @param mc Whether to use camera motion compensation.
  373. * @param nSamples Number of samples to maintain at each point of the frame.
  374. * @param LSBPRadius LSBP descriptor radius.
  375. * @param Tlower Lower bound for T-values. See CITE: LGuo2016 for details.
  376. * @param Tupper Upper bound for T-values. See CITE: LGuo2016 for details.
  377. * @param Tinc Increase step for T-values. See CITE: LGuo2016 for details.
  378. * @param Tdec Decrease step for T-values. See CITE: LGuo2016 for details.
  379. * @param Rscale Scale coefficient for threshold values.
  380. * @param Rincdec Increase/Decrease step for threshold values.
  381. */
  382. + (BackgroundSubtractorLSBP*)createBackgroundSubtractorLSBP:(LSBPCameraMotionCompensation)mc nSamples:(int)nSamples LSBPRadius:(int)LSBPRadius Tlower:(float)Tlower Tupper:(float)Tupper Tinc:(float)Tinc Tdec:(float)Tdec Rscale:(float)Rscale Rincdec:(float)Rincdec NS_SWIFT_NAME(createBackgroundSubtractorLSBP(mc:nSamples:LSBPRadius:Tlower:Tupper:Tinc:Tdec:Rscale:Rincdec:));
  383. /**
  384. * Creates an instance of BackgroundSubtractorLSBP algorithm.
  385. *
  386. * Background Subtraction using Local SVD Binary Pattern. More details about the algorithm can be found at CITE: LGuo2016
  387. *
  388. * @param mc Whether to use camera motion compensation.
  389. * @param nSamples Number of samples to maintain at each point of the frame.
  390. * @param LSBPRadius LSBP descriptor radius.
  391. * @param Tlower Lower bound for T-values. See CITE: LGuo2016 for details.
  392. * @param Tupper Upper bound for T-values. See CITE: LGuo2016 for details.
  393. * @param Tinc Increase step for T-values. See CITE: LGuo2016 for details.
  394. * @param Tdec Decrease step for T-values. See CITE: LGuo2016 for details.
  395. * @param Rscale Scale coefficient for threshold values.
  396. */
  397. + (BackgroundSubtractorLSBP*)createBackgroundSubtractorLSBP:(LSBPCameraMotionCompensation)mc nSamples:(int)nSamples LSBPRadius:(int)LSBPRadius Tlower:(float)Tlower Tupper:(float)Tupper Tinc:(float)Tinc Tdec:(float)Tdec Rscale:(float)Rscale NS_SWIFT_NAME(createBackgroundSubtractorLSBP(mc:nSamples:LSBPRadius:Tlower:Tupper:Tinc:Tdec:Rscale:));
  398. /**
  399. * Creates an instance of BackgroundSubtractorLSBP algorithm.
  400. *
  401. * Background Subtraction using Local SVD Binary Pattern. More details about the algorithm can be found at CITE: LGuo2016
  402. *
  403. * @param mc Whether to use camera motion compensation.
  404. * @param nSamples Number of samples to maintain at each point of the frame.
  405. * @param LSBPRadius LSBP descriptor radius.
  406. * @param Tlower Lower bound for T-values. See CITE: LGuo2016 for details.
  407. * @param Tupper Upper bound for T-values. See CITE: LGuo2016 for details.
  408. * @param Tinc Increase step for T-values. See CITE: LGuo2016 for details.
  409. * @param Tdec Decrease step for T-values. See CITE: LGuo2016 for details.
  410. */
  411. + (BackgroundSubtractorLSBP*)createBackgroundSubtractorLSBP:(LSBPCameraMotionCompensation)mc nSamples:(int)nSamples LSBPRadius:(int)LSBPRadius Tlower:(float)Tlower Tupper:(float)Tupper Tinc:(float)Tinc Tdec:(float)Tdec NS_SWIFT_NAME(createBackgroundSubtractorLSBP(mc:nSamples:LSBPRadius:Tlower:Tupper:Tinc:Tdec:));
  412. /**
  413. * Creates an instance of BackgroundSubtractorLSBP algorithm.
  414. *
  415. * Background Subtraction using Local SVD Binary Pattern. More details about the algorithm can be found at CITE: LGuo2016
  416. *
  417. * @param mc Whether to use camera motion compensation.
  418. * @param nSamples Number of samples to maintain at each point of the frame.
  419. * @param LSBPRadius LSBP descriptor radius.
  420. * @param Tlower Lower bound for T-values. See CITE: LGuo2016 for details.
  421. * @param Tupper Upper bound for T-values. See CITE: LGuo2016 for details.
  422. * @param Tinc Increase step for T-values. See CITE: LGuo2016 for details.
  423. */
  424. + (BackgroundSubtractorLSBP*)createBackgroundSubtractorLSBP:(LSBPCameraMotionCompensation)mc nSamples:(int)nSamples LSBPRadius:(int)LSBPRadius Tlower:(float)Tlower Tupper:(float)Tupper Tinc:(float)Tinc NS_SWIFT_NAME(createBackgroundSubtractorLSBP(mc:nSamples:LSBPRadius:Tlower:Tupper:Tinc:));
  425. /**
  426. * Creates an instance of BackgroundSubtractorLSBP algorithm.
  427. *
  428. * Background Subtraction using Local SVD Binary Pattern. More details about the algorithm can be found at CITE: LGuo2016
  429. *
  430. * @param mc Whether to use camera motion compensation.
  431. * @param nSamples Number of samples to maintain at each point of the frame.
  432. * @param LSBPRadius LSBP descriptor radius.
  433. * @param Tlower Lower bound for T-values. See CITE: LGuo2016 for details.
  434. * @param Tupper Upper bound for T-values. See CITE: LGuo2016 for details.
  435. */
  436. + (BackgroundSubtractorLSBP*)createBackgroundSubtractorLSBP:(LSBPCameraMotionCompensation)mc nSamples:(int)nSamples LSBPRadius:(int)LSBPRadius Tlower:(float)Tlower Tupper:(float)Tupper NS_SWIFT_NAME(createBackgroundSubtractorLSBP(mc:nSamples:LSBPRadius:Tlower:Tupper:));
  437. /**
  438. * Creates an instance of BackgroundSubtractorLSBP algorithm.
  439. *
  440. * Background Subtraction using Local SVD Binary Pattern. More details about the algorithm can be found at CITE: LGuo2016
  441. *
  442. * @param mc Whether to use camera motion compensation.
  443. * @param nSamples Number of samples to maintain at each point of the frame.
  444. * @param LSBPRadius LSBP descriptor radius.
  445. * @param Tlower Lower bound for T-values. See CITE: LGuo2016 for details.
  446. */
  447. + (BackgroundSubtractorLSBP*)createBackgroundSubtractorLSBP:(LSBPCameraMotionCompensation)mc nSamples:(int)nSamples LSBPRadius:(int)LSBPRadius Tlower:(float)Tlower NS_SWIFT_NAME(createBackgroundSubtractorLSBP(mc:nSamples:LSBPRadius:Tlower:));
  448. /**
  449. * Creates an instance of BackgroundSubtractorLSBP algorithm.
  450. *
  451. * Background Subtraction using Local SVD Binary Pattern. More details about the algorithm can be found at CITE: LGuo2016
  452. *
  453. * @param mc Whether to use camera motion compensation.
  454. * @param nSamples Number of samples to maintain at each point of the frame.
  455. * @param LSBPRadius LSBP descriptor radius.
  456. */
  457. + (BackgroundSubtractorLSBP*)createBackgroundSubtractorLSBP:(LSBPCameraMotionCompensation)mc nSamples:(int)nSamples LSBPRadius:(int)LSBPRadius NS_SWIFT_NAME(createBackgroundSubtractorLSBP(mc:nSamples:LSBPRadius:));
  458. /**
  459. * Creates an instance of BackgroundSubtractorLSBP algorithm.
  460. *
  461. * Background Subtraction using Local SVD Binary Pattern. More details about the algorithm can be found at CITE: LGuo2016
  462. *
  463. * @param mc Whether to use camera motion compensation.
  464. * @param nSamples Number of samples to maintain at each point of the frame.
  465. */
  466. + (BackgroundSubtractorLSBP*)createBackgroundSubtractorLSBP:(LSBPCameraMotionCompensation)mc nSamples:(int)nSamples NS_SWIFT_NAME(createBackgroundSubtractorLSBP(mc:nSamples:));
  467. /**
  468. * Creates an instance of BackgroundSubtractorLSBP algorithm.
  469. *
  470. * Background Subtraction using Local SVD Binary Pattern. More details about the algorithm can be found at CITE: LGuo2016
  471. *
  472. * @param mc Whether to use camera motion compensation.
  473. */
  474. + (BackgroundSubtractorLSBP*)createBackgroundSubtractorLSBP:(LSBPCameraMotionCompensation)mc NS_SWIFT_NAME(createBackgroundSubtractorLSBP(mc:));
  475. /**
  476. * Creates an instance of BackgroundSubtractorLSBP algorithm.
  477. *
  478. * Background Subtraction using Local SVD Binary Pattern. More details about the algorithm can be found at CITE: LGuo2016
  479. *
  480. */
  481. + (BackgroundSubtractorLSBP*)createBackgroundSubtractorLSBP NS_SWIFT_NAME(createBackgroundSubtractorLSBP());
  482. //
  483. // 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)
  484. //
  485. /**
  486. * Creates an instance of SyntheticSequenceGenerator.
  487. *
  488. * @param background Background image for object.
  489. * @param object Object image which will move slowly over the background.
  490. * @param amplitude Amplitude of wave distortion applied to background.
  491. * @param wavelength Length of waves in distortion applied to background.
  492. * @param wavespeed How fast waves will move.
  493. * @param objspeed How fast object will fly over background.
  494. */
  495. + (SyntheticSequenceGenerator*)createSyntheticSequenceGenerator:(Mat*)background object:(Mat*)object amplitude:(double)amplitude wavelength:(double)wavelength wavespeed:(double)wavespeed objspeed:(double)objspeed NS_SWIFT_NAME(createSyntheticSequenceGenerator(background:object:amplitude:wavelength:wavespeed:objspeed:));
  496. /**
  497. * Creates an instance of SyntheticSequenceGenerator.
  498. *
  499. * @param background Background image for object.
  500. * @param object Object image which will move slowly over the background.
  501. * @param amplitude Amplitude of wave distortion applied to background.
  502. * @param wavelength Length of waves in distortion applied to background.
  503. * @param wavespeed How fast waves will move.
  504. */
  505. + (SyntheticSequenceGenerator*)createSyntheticSequenceGenerator:(Mat*)background object:(Mat*)object amplitude:(double)amplitude wavelength:(double)wavelength wavespeed:(double)wavespeed NS_SWIFT_NAME(createSyntheticSequenceGenerator(background:object:amplitude:wavelength:wavespeed:));
  506. /**
  507. * Creates an instance of SyntheticSequenceGenerator.
  508. *
  509. * @param background Background image for object.
  510. * @param object Object image which will move slowly over the background.
  511. * @param amplitude Amplitude of wave distortion applied to background.
  512. * @param wavelength Length of waves in distortion applied to background.
  513. */
  514. + (SyntheticSequenceGenerator*)createSyntheticSequenceGenerator:(Mat*)background object:(Mat*)object amplitude:(double)amplitude wavelength:(double)wavelength NS_SWIFT_NAME(createSyntheticSequenceGenerator(background:object:amplitude:wavelength:));
  515. /**
  516. * Creates an instance of SyntheticSequenceGenerator.
  517. *
  518. * @param background Background image for object.
  519. * @param object Object image which will move slowly over the background.
  520. * @param amplitude Amplitude of wave distortion applied to background.
  521. */
  522. + (SyntheticSequenceGenerator*)createSyntheticSequenceGenerator:(Mat*)background object:(Mat*)object amplitude:(double)amplitude NS_SWIFT_NAME(createSyntheticSequenceGenerator(background:object:amplitude:));
  523. /**
  524. * Creates an instance of SyntheticSequenceGenerator.
  525. *
  526. * @param background Background image for object.
  527. * @param object Object image which will move slowly over the background.
  528. */
  529. + (SyntheticSequenceGenerator*)createSyntheticSequenceGenerator:(Mat*)background object:(Mat*)object NS_SWIFT_NAME(createSyntheticSequenceGenerator(background:object:));
  530. @end
  531. NS_ASSUME_NONNULL_END