BackgroundSubtractorGSOC.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 BackgroundSubtractorGSOC
  16. /**
  17. * Implementation of the different yet better algorithm which is called GSOC, as it was implemented during GSOC and was not originated from any paper.
  18. *
  19. * This algorithm demonstrates better performance on CDNET 2014 dataset compared to other algorithms in OpenCV.
  20. *
  21. * Member of `Bgsegm`
  22. */
  23. CV_EXPORTS @interface BackgroundSubtractorGSOC : BackgroundSubtractor
  24. #ifdef __cplusplus
  25. @property(readonly)cv::Ptr<cv::bgsegm::BackgroundSubtractorGSOC> nativePtrBackgroundSubtractorGSOC;
  26. #endif
  27. #ifdef __cplusplus
  28. - (instancetype)initWithNativePtr:(cv::Ptr<cv::bgsegm::BackgroundSubtractorGSOC>)nativePtr;
  29. + (instancetype)fromNative:(cv::Ptr<cv::bgsegm::BackgroundSubtractorGSOC>)nativePtr;
  30. #endif
  31. #pragma mark - Methods
  32. //
  33. // void cv::bgsegm::BackgroundSubtractorGSOC::apply(Mat image, Mat& fgmask, double learningRate = -1)
  34. //
  35. - (void)apply:(Mat*)image fgmask:(Mat*)fgmask learningRate:(double)learningRate NS_SWIFT_NAME(apply(image:fgmask:learningRate:));
  36. - (void)apply:(Mat*)image fgmask:(Mat*)fgmask NS_SWIFT_NAME(apply(image:fgmask:));
  37. //
  38. // void cv::bgsegm::BackgroundSubtractorGSOC::getBackgroundImage(Mat& backgroundImage)
  39. //
  40. - (void)getBackgroundImage:(Mat*)backgroundImage NS_SWIFT_NAME(getBackgroundImage(backgroundImage:));
  41. @end
  42. NS_ASSUME_NONNULL_END