SyntheticSequenceGenerator.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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 "Algorithm.h"
  13. @class Mat;
  14. NS_ASSUME_NONNULL_BEGIN
  15. // C++: class SyntheticSequenceGenerator
  16. /**
  17. * Synthetic frame sequence generator for testing background subtraction algorithms.
  18. *
  19. * It will generate the moving object on top of the background.
  20. * It will apply some distortion to the background to make the test more complex.
  21. *
  22. * Member of `Bgsegm`
  23. */
  24. CV_EXPORTS @interface SyntheticSequenceGenerator : Algorithm
  25. #ifdef __cplusplus
  26. @property(readonly)cv::Ptr<cv::bgsegm::SyntheticSequenceGenerator> nativePtrSyntheticSequenceGenerator;
  27. #endif
  28. #ifdef __cplusplus
  29. - (instancetype)initWithNativePtr:(cv::Ptr<cv::bgsegm::SyntheticSequenceGenerator>)nativePtr;
  30. + (instancetype)fromNative:(cv::Ptr<cv::bgsegm::SyntheticSequenceGenerator>)nativePtr;
  31. #endif
  32. #pragma mark - Methods
  33. //
  34. // cv::bgsegm::SyntheticSequenceGenerator::SyntheticSequenceGenerator(Mat background, Mat object, double amplitude, double wavelength, double wavespeed, double objspeed)
  35. //
  36. /**
  37. * Creates an instance of SyntheticSequenceGenerator.
  38. *
  39. * @param background Background image for object.
  40. * @param object Object image which will move slowly over the background.
  41. * @param amplitude Amplitude of wave distortion applied to background.
  42. * @param wavelength Length of waves in distortion applied to background.
  43. * @param wavespeed How fast waves will move.
  44. * @param objspeed How fast object will fly over background.
  45. */
  46. - (instancetype)initWithBackground:(Mat*)background object:(Mat*)object amplitude:(double)amplitude wavelength:(double)wavelength wavespeed:(double)wavespeed objspeed:(double)objspeed;
  47. //
  48. // void cv::bgsegm::SyntheticSequenceGenerator::getNextFrame(Mat& frame, Mat& gtMask)
  49. //
  50. /**
  51. * Obtain the next frame in the sequence.
  52. *
  53. * @param frame Output frame.
  54. * @param gtMask Output ground-truth (reference) segmentation mask object/background.
  55. */
  56. - (void)getNextFrame:(Mat*)frame gtMask:(Mat*)gtMask NS_SWIFT_NAME(getNextFrame(frame:gtMask:));
  57. @end
  58. NS_ASSUME_NONNULL_END