BOWKMeansTrainer.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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/features2d.hpp"
  8. #else
  9. #define CV_EXPORTS
  10. #endif
  11. #import <Foundation/Foundation.h>
  12. #import "BOWTrainer.h"
  13. @class Mat;
  14. @class TermCriteria;
  15. NS_ASSUME_NONNULL_BEGIN
  16. // C++: class BOWKMeansTrainer
  17. /**
  18. * kmeans -based class to train visual vocabulary using the *bag of visual words* approach. :
  19. *
  20. * Member of `Features2d`
  21. */
  22. CV_EXPORTS @interface BOWKMeansTrainer : BOWTrainer
  23. #ifdef __cplusplus
  24. @property(readonly)cv::Ptr<cv::BOWKMeansTrainer> nativePtrBOWKMeansTrainer;
  25. #endif
  26. #ifdef __cplusplus
  27. - (instancetype)initWithNativePtr:(cv::Ptr<cv::BOWKMeansTrainer>)nativePtr;
  28. + (instancetype)fromNative:(cv::Ptr<cv::BOWKMeansTrainer>)nativePtr;
  29. #endif
  30. #pragma mark - Methods
  31. //
  32. // cv::BOWKMeansTrainer::BOWKMeansTrainer(int clusterCount, TermCriteria termcrit = TermCriteria(), int attempts = 3, int flags = KMEANS_PP_CENTERS)
  33. //
  34. /**
  35. * The constructor.
  36. *
  37. * @see `cv::kmeans`
  38. */
  39. - (instancetype)initWithClusterCount:(int)clusterCount termcrit:(TermCriteria*)termcrit attempts:(int)attempts flags:(int)flags;
  40. /**
  41. * The constructor.
  42. *
  43. * @see `cv::kmeans`
  44. */
  45. - (instancetype)initWithClusterCount:(int)clusterCount termcrit:(TermCriteria*)termcrit attempts:(int)attempts;
  46. /**
  47. * The constructor.
  48. *
  49. * @see `cv::kmeans`
  50. */
  51. - (instancetype)initWithClusterCount:(int)clusterCount termcrit:(TermCriteria*)termcrit;
  52. /**
  53. * The constructor.
  54. *
  55. * @see `cv::kmeans`
  56. */
  57. - (instancetype)initWithClusterCount:(int)clusterCount;
  58. //
  59. // Mat cv::BOWKMeansTrainer::cluster()
  60. //
  61. - (Mat*)cluster NS_SWIFT_NAME(cluster());
  62. //
  63. // Mat cv::BOWKMeansTrainer::cluster(Mat descriptors)
  64. //
  65. - (Mat*)cluster:(Mat*)descriptors NS_SWIFT_NAME(cluster(descriptors:));
  66. @end
  67. NS_ASSUME_NONNULL_END