BackgroundSubtractorGMG.h 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  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. #import "BackgroundSubtractor.h"
  13. NS_ASSUME_NONNULL_BEGIN
  14. // C++: class BackgroundSubtractorGMG
  15. /**
  16. * Background Subtractor module based on the algorithm given in CITE: Gold2012 .
  17. *
  18. * Takes a series of images and returns a sequence of mask (8UC1)
  19. * images of the same size, where 255 indicates Foreground and 0 represents Background.
  20. * This class implements an algorithm described in "Visual Tracking of Human Visitors under
  21. * Variable-Lighting Conditions for a Responsive Audio Art Installation," A. Godbehere,
  22. * A. Matsukawa, K. Goldberg, American Control Conference, Montreal, June 2012.
  23. *
  24. * Member of `Bgsegm`
  25. */
  26. CV_EXPORTS @interface BackgroundSubtractorGMG : BackgroundSubtractor
  27. #ifdef __cplusplus
  28. @property(readonly)cv::Ptr<cv::bgsegm::BackgroundSubtractorGMG> nativePtrBackgroundSubtractorGMG;
  29. #endif
  30. #ifdef __cplusplus
  31. - (instancetype)initWithNativePtr:(cv::Ptr<cv::bgsegm::BackgroundSubtractorGMG>)nativePtr;
  32. + (instancetype)fromNative:(cv::Ptr<cv::bgsegm::BackgroundSubtractorGMG>)nativePtr;
  33. #endif
  34. #pragma mark - Methods
  35. //
  36. // int cv::bgsegm::BackgroundSubtractorGMG::getMaxFeatures()
  37. //
  38. /**
  39. * Returns total number of distinct colors to maintain in histogram.
  40. */
  41. - (int)getMaxFeatures NS_SWIFT_NAME(getMaxFeatures());
  42. //
  43. // void cv::bgsegm::BackgroundSubtractorGMG::setMaxFeatures(int maxFeatures)
  44. //
  45. /**
  46. * Sets total number of distinct colors to maintain in histogram.
  47. */
  48. - (void)setMaxFeatures:(int)maxFeatures NS_SWIFT_NAME(setMaxFeatures(maxFeatures:));
  49. //
  50. // double cv::bgsegm::BackgroundSubtractorGMG::getDefaultLearningRate()
  51. //
  52. /**
  53. * Returns the learning rate of the algorithm.
  54. *
  55. * It lies between 0.0 and 1.0. It determines how quickly features are "forgotten" from
  56. * histograms.
  57. */
  58. - (double)getDefaultLearningRate NS_SWIFT_NAME(getDefaultLearningRate());
  59. //
  60. // void cv::bgsegm::BackgroundSubtractorGMG::setDefaultLearningRate(double lr)
  61. //
  62. /**
  63. * Sets the learning rate of the algorithm.
  64. */
  65. - (void)setDefaultLearningRate:(double)lr NS_SWIFT_NAME(setDefaultLearningRate(lr:));
  66. //
  67. // int cv::bgsegm::BackgroundSubtractorGMG::getNumFrames()
  68. //
  69. /**
  70. * Returns the number of frames used to initialize background model.
  71. */
  72. - (int)getNumFrames NS_SWIFT_NAME(getNumFrames());
  73. //
  74. // void cv::bgsegm::BackgroundSubtractorGMG::setNumFrames(int nframes)
  75. //
  76. /**
  77. * Sets the number of frames used to initialize background model.
  78. */
  79. - (void)setNumFrames:(int)nframes NS_SWIFT_NAME(setNumFrames(nframes:));
  80. //
  81. // int cv::bgsegm::BackgroundSubtractorGMG::getQuantizationLevels()
  82. //
  83. /**
  84. * Returns the parameter used for quantization of color-space.
  85. *
  86. * It is the number of discrete levels in each channel to be used in histograms.
  87. */
  88. - (int)getQuantizationLevels NS_SWIFT_NAME(getQuantizationLevels());
  89. //
  90. // void cv::bgsegm::BackgroundSubtractorGMG::setQuantizationLevels(int nlevels)
  91. //
  92. /**
  93. * Sets the parameter used for quantization of color-space
  94. */
  95. - (void)setQuantizationLevels:(int)nlevels NS_SWIFT_NAME(setQuantizationLevels(nlevels:));
  96. //
  97. // double cv::bgsegm::BackgroundSubtractorGMG::getBackgroundPrior()
  98. //
  99. /**
  100. * Returns the prior probability that each individual pixel is a background pixel.
  101. */
  102. - (double)getBackgroundPrior NS_SWIFT_NAME(getBackgroundPrior());
  103. //
  104. // void cv::bgsegm::BackgroundSubtractorGMG::setBackgroundPrior(double bgprior)
  105. //
  106. /**
  107. * Sets the prior probability that each individual pixel is a background pixel.
  108. */
  109. - (void)setBackgroundPrior:(double)bgprior NS_SWIFT_NAME(setBackgroundPrior(bgprior:));
  110. //
  111. // int cv::bgsegm::BackgroundSubtractorGMG::getSmoothingRadius()
  112. //
  113. /**
  114. * Returns the kernel radius used for morphological operations
  115. */
  116. - (int)getSmoothingRadius NS_SWIFT_NAME(getSmoothingRadius());
  117. //
  118. // void cv::bgsegm::BackgroundSubtractorGMG::setSmoothingRadius(int radius)
  119. //
  120. /**
  121. * Sets the kernel radius used for morphological operations
  122. */
  123. - (void)setSmoothingRadius:(int)radius NS_SWIFT_NAME(setSmoothingRadius(radius:));
  124. //
  125. // double cv::bgsegm::BackgroundSubtractorGMG::getDecisionThreshold()
  126. //
  127. /**
  128. * Returns the value of decision threshold.
  129. *
  130. * Decision value is the value above which pixel is determined to be FG.
  131. */
  132. - (double)getDecisionThreshold NS_SWIFT_NAME(getDecisionThreshold());
  133. //
  134. // void cv::bgsegm::BackgroundSubtractorGMG::setDecisionThreshold(double thresh)
  135. //
  136. /**
  137. * Sets the value of decision threshold.
  138. */
  139. - (void)setDecisionThreshold:(double)thresh NS_SWIFT_NAME(setDecisionThreshold(thresh:));
  140. //
  141. // bool cv::bgsegm::BackgroundSubtractorGMG::getUpdateBackgroundModel()
  142. //
  143. /**
  144. * Returns the status of background model update
  145. */
  146. - (BOOL)getUpdateBackgroundModel NS_SWIFT_NAME(getUpdateBackgroundModel());
  147. //
  148. // void cv::bgsegm::BackgroundSubtractorGMG::setUpdateBackgroundModel(bool update)
  149. //
  150. /**
  151. * Sets the status of background model update
  152. */
  153. - (void)setUpdateBackgroundModel:(BOOL)update NS_SWIFT_NAME(setUpdateBackgroundModel(update:));
  154. //
  155. // double cv::bgsegm::BackgroundSubtractorGMG::getMinVal()
  156. //
  157. /**
  158. * Returns the minimum value taken on by pixels in image sequence. Usually 0.
  159. */
  160. - (double)getMinVal NS_SWIFT_NAME(getMinVal());
  161. //
  162. // void cv::bgsegm::BackgroundSubtractorGMG::setMinVal(double val)
  163. //
  164. /**
  165. * Sets the minimum value taken on by pixels in image sequence.
  166. */
  167. - (void)setMinVal:(double)val NS_SWIFT_NAME(setMinVal(val:));
  168. //
  169. // double cv::bgsegm::BackgroundSubtractorGMG::getMaxVal()
  170. //
  171. /**
  172. * Returns the maximum value taken on by pixels in image sequence. e.g. 1.0 or 255.
  173. */
  174. - (double)getMaxVal NS_SWIFT_NAME(getMaxVal());
  175. //
  176. // void cv::bgsegm::BackgroundSubtractorGMG::setMaxVal(double val)
  177. //
  178. /**
  179. * Sets the maximum value taken on by pixels in image sequence.
  180. */
  181. - (void)setMaxVal:(double)val NS_SWIFT_NAME(setMaxVal(val:));
  182. @end
  183. NS_ASSUME_NONNULL_END