TrackerMIL.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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/video.hpp"
  8. #import "opencv2/video/tracking.hpp"
  9. #else
  10. #define CV_EXPORTS
  11. #endif
  12. #import <Foundation/Foundation.h>
  13. #import "Tracker.h"
  14. @class TrackerMILParams;
  15. NS_ASSUME_NONNULL_BEGIN
  16. // C++: class TrackerMIL
  17. /**
  18. * The MIL algorithm trains a classifier in an online manner to separate the object from the
  19. * background.
  20. *
  21. * Multiple Instance Learning avoids the drift problem for a robust tracking. The implementation is
  22. * based on CITE: MIL .
  23. *
  24. * Original code can be found here <http://vision.ucsd.edu/~bbabenko/project_miltrack.shtml>
  25. *
  26. * Member of `Video`
  27. */
  28. CV_EXPORTS @interface TrackerMIL : Tracker
  29. #ifdef __cplusplus
  30. @property(readonly)cv::Ptr<cv::TrackerMIL> nativePtrTrackerMIL;
  31. #endif
  32. #ifdef __cplusplus
  33. - (instancetype)initWithNativePtr:(cv::Ptr<cv::TrackerMIL>)nativePtr;
  34. + (instancetype)fromNative:(cv::Ptr<cv::TrackerMIL>)nativePtr;
  35. #endif
  36. #pragma mark - Methods
  37. //
  38. // static Ptr_TrackerMIL cv::TrackerMIL::create(TrackerMIL_Params parameters = TrackerMIL::Params())
  39. //
  40. /**
  41. * Create MIL tracker instance
  42. * @param parameters MIL parameters TrackerMIL::Params
  43. */
  44. + (TrackerMIL*)create:(TrackerMILParams*)parameters NS_SWIFT_NAME(create(parameters:));
  45. /**
  46. * Create MIL tracker instance
  47. */
  48. + (TrackerMIL*)create NS_SWIFT_NAME(create());
  49. @end
  50. NS_ASSUME_NONNULL_END