Boost.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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/ml.hpp"
  8. #else
  9. #define CV_EXPORTS
  10. #endif
  11. #import <Foundation/Foundation.h>
  12. #import "DTrees.h"
  13. // C++: enum Types (cv.ml.Boost.Types)
  14. typedef NS_ENUM(int, Types) {
  15. DISCRETE = 0,
  16. REAL = 1,
  17. LOGIT = 2,
  18. GENTLE = 3
  19. };
  20. NS_ASSUME_NONNULL_BEGIN
  21. // C++: class Boost
  22. /**
  23. * Boosted tree classifier derived from DTrees
  24. *
  25. * @see REF: ml_intro_boost
  26. *
  27. * Member of `Ml`
  28. */
  29. CV_EXPORTS @interface Boost : DTrees
  30. #ifdef __cplusplus
  31. @property(readonly)cv::Ptr<cv::ml::Boost> nativePtrBoost;
  32. #endif
  33. #ifdef __cplusplus
  34. - (instancetype)initWithNativePtr:(cv::Ptr<cv::ml::Boost>)nativePtr;
  35. + (instancetype)fromNative:(cv::Ptr<cv::ml::Boost>)nativePtr;
  36. #endif
  37. #pragma mark - Methods
  38. //
  39. // int cv::ml::Boost::getBoostType()
  40. //
  41. /**
  42. * @see `-setBoostType:`
  43. */
  44. - (int)getBoostType NS_SWIFT_NAME(getBoostType());
  45. //
  46. // void cv::ml::Boost::setBoostType(int val)
  47. //
  48. /**
  49. * getBoostType @see `-getBoostType:`
  50. */
  51. - (void)setBoostType:(int)val NS_SWIFT_NAME(setBoostType(val:));
  52. //
  53. // int cv::ml::Boost::getWeakCount()
  54. //
  55. /**
  56. * @see `-setWeakCount:`
  57. */
  58. - (int)getWeakCount NS_SWIFT_NAME(getWeakCount());
  59. //
  60. // void cv::ml::Boost::setWeakCount(int val)
  61. //
  62. /**
  63. * getWeakCount @see `-getWeakCount:`
  64. */
  65. - (void)setWeakCount:(int)val NS_SWIFT_NAME(setWeakCount(val:));
  66. //
  67. // double cv::ml::Boost::getWeightTrimRate()
  68. //
  69. /**
  70. * @see `-setWeightTrimRate:`
  71. */
  72. - (double)getWeightTrimRate NS_SWIFT_NAME(getWeightTrimRate());
  73. //
  74. // void cv::ml::Boost::setWeightTrimRate(double val)
  75. //
  76. /**
  77. * getWeightTrimRate @see `-getWeightTrimRate:`
  78. */
  79. - (void)setWeightTrimRate:(double)val NS_SWIFT_NAME(setWeightTrimRate(val:));
  80. //
  81. // static Ptr_Boost cv::ml::Boost::create()
  82. //
  83. /**
  84. * Creates the empty model.
  85. * Use StatModel::train to train the model, Algorithm::load\<Boost\>(filename) to load the pre-trained model.
  86. */
  87. + (Boost*)create NS_SWIFT_NAME(create());
  88. //
  89. // static Ptr_Boost cv::ml::Boost::load(String filepath, String nodeName = String())
  90. //
  91. /**
  92. * Loads and creates a serialized Boost from a file
  93. *
  94. * Use Boost::save to serialize and store an RTree to disk.
  95. * Load the Boost from this file again, by calling this function with the path to the file.
  96. * Optionally specify the node for the file containing the classifier
  97. *
  98. * @param filepath path to serialized Boost
  99. * @param nodeName name of node containing the classifier
  100. */
  101. + (Boost*)load:(NSString*)filepath nodeName:(NSString*)nodeName NS_SWIFT_NAME(load(filepath:nodeName:));
  102. /**
  103. * Loads and creates a serialized Boost from a file
  104. *
  105. * Use Boost::save to serialize and store an RTree to disk.
  106. * Load the Boost from this file again, by calling this function with the path to the file.
  107. * Optionally specify the node for the file containing the classifier
  108. *
  109. * @param filepath path to serialized Boost
  110. */
  111. + (Boost*)load:(NSString*)filepath NS_SWIFT_NAME(load(filepath:));
  112. @end
  113. NS_ASSUME_NONNULL_END