BackgroundSubtractorCNT.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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. @class Mat;
  14. NS_ASSUME_NONNULL_BEGIN
  15. // C++: class BackgroundSubtractorCNT
  16. /**
  17. * Background subtraction based on counting.
  18. *
  19. * About as fast as MOG2 on a high end system.
  20. * More than twice faster than MOG2 on cheap hardware (benchmarked on Raspberry Pi3).
  21. *
  22. * %Algorithm by Sagi Zeevi ( https://github.com/sagi-z/BackgroundSubtractorCNT )
  23. *
  24. * Member of `Bgsegm`
  25. */
  26. CV_EXPORTS @interface BackgroundSubtractorCNT : BackgroundSubtractor
  27. #ifdef __cplusplus
  28. @property(readonly)cv::Ptr<cv::bgsegm::BackgroundSubtractorCNT> nativePtrBackgroundSubtractorCNT;
  29. #endif
  30. #ifdef __cplusplus
  31. - (instancetype)initWithNativePtr:(cv::Ptr<cv::bgsegm::BackgroundSubtractorCNT>)nativePtr;
  32. + (instancetype)fromNative:(cv::Ptr<cv::bgsegm::BackgroundSubtractorCNT>)nativePtr;
  33. #endif
  34. #pragma mark - Methods
  35. //
  36. // void cv::bgsegm::BackgroundSubtractorCNT::apply(Mat image, Mat& fgmask, double learningRate = -1)
  37. //
  38. - (void)apply:(Mat*)image fgmask:(Mat*)fgmask learningRate:(double)learningRate NS_SWIFT_NAME(apply(image:fgmask:learningRate:));
  39. - (void)apply:(Mat*)image fgmask:(Mat*)fgmask NS_SWIFT_NAME(apply(image:fgmask:));
  40. //
  41. // void cv::bgsegm::BackgroundSubtractorCNT::getBackgroundImage(Mat& backgroundImage)
  42. //
  43. - (void)getBackgroundImage:(Mat*)backgroundImage NS_SWIFT_NAME(getBackgroundImage(backgroundImage:));
  44. //
  45. // int cv::bgsegm::BackgroundSubtractorCNT::getMinPixelStability()
  46. //
  47. /**
  48. * Returns number of frames with same pixel color to consider stable.
  49. */
  50. - (int)getMinPixelStability NS_SWIFT_NAME(getMinPixelStability());
  51. //
  52. // void cv::bgsegm::BackgroundSubtractorCNT::setMinPixelStability(int value)
  53. //
  54. /**
  55. * Sets the number of frames with same pixel color to consider stable.
  56. */
  57. - (void)setMinPixelStability:(int)value NS_SWIFT_NAME(setMinPixelStability(value:));
  58. //
  59. // int cv::bgsegm::BackgroundSubtractorCNT::getMaxPixelStability()
  60. //
  61. /**
  62. * Returns maximum allowed credit for a pixel in history.
  63. */
  64. - (int)getMaxPixelStability NS_SWIFT_NAME(getMaxPixelStability());
  65. //
  66. // void cv::bgsegm::BackgroundSubtractorCNT::setMaxPixelStability(int value)
  67. //
  68. /**
  69. * Sets the maximum allowed credit for a pixel in history.
  70. */
  71. - (void)setMaxPixelStability:(int)value NS_SWIFT_NAME(setMaxPixelStability(value:));
  72. //
  73. // bool cv::bgsegm::BackgroundSubtractorCNT::getUseHistory()
  74. //
  75. /**
  76. * Returns if we're giving a pixel credit for being stable for a long time.
  77. */
  78. - (BOOL)getUseHistory NS_SWIFT_NAME(getUseHistory());
  79. //
  80. // void cv::bgsegm::BackgroundSubtractorCNT::setUseHistory(bool value)
  81. //
  82. /**
  83. * Sets if we're giving a pixel credit for being stable for a long time.
  84. */
  85. - (void)setUseHistory:(BOOL)value NS_SWIFT_NAME(setUseHistory(value:));
  86. //
  87. // bool cv::bgsegm::BackgroundSubtractorCNT::getIsParallel()
  88. //
  89. /**
  90. * Returns if we're parallelizing the algorithm.
  91. */
  92. - (BOOL)getIsParallel NS_SWIFT_NAME(getIsParallel());
  93. //
  94. // void cv::bgsegm::BackgroundSubtractorCNT::setIsParallel(bool value)
  95. //
  96. /**
  97. * Sets if we're parallelizing the algorithm.
  98. */
  99. - (void)setIsParallel:(BOOL)value NS_SWIFT_NAME(setIsParallel(value:));
  100. @end
  101. NS_ASSUME_NONNULL_END