BoostDesc.h 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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/xfeatures2d.hpp"
  8. #else
  9. #define CV_EXPORTS
  10. #endif
  11. #import <Foundation/Foundation.h>
  12. #import "Feature2D.h"
  13. NS_ASSUME_NONNULL_BEGIN
  14. // C++: class BoostDesc
  15. /**
  16. * Class implementing BoostDesc (Learning Image Descriptors with Boosting), described in
  17. * CITE: Trzcinski13a and CITE: Trzcinski13b.
  18. *
  19. * desc type of descriptor to use, BoostDesc::BINBOOST_256 is default (256 bit long dimension)
  20. * Available types are: BoostDesc::BGM, BoostDesc::BGM_HARD, BoostDesc::BGM_BILINEAR, BoostDesc::LBGM,
  21. * BoostDesc::BINBOOST_64, BoostDesc::BINBOOST_128, BoostDesc::BINBOOST_256
  22. * use_orientation sample patterns using keypoints orientation, enabled by default
  23. * scale_factor adjust the sampling window of detected keypoints
  24. * 6.25f is default and fits for KAZE, SURF detected keypoints window ratio
  25. * 6.75f should be the scale for SIFT detected keypoints window ratio
  26. * 5.00f should be the scale for AKAZE, MSD, AGAST, FAST, BRISK keypoints window ratio
  27. * 0.75f should be the scale for ORB keypoints ratio
  28. * 1.50f was the default in original implementation
  29. *
  30. * NOTE: BGM is the base descriptor where each binary dimension is computed as the output of a single weak learner.
  31. * BGM_HARD and BGM_BILINEAR refers to same BGM but use different type of gradient binning. In the BGM_HARD that
  32. * use ASSIGN_HARD binning type the gradient is assigned to the nearest orientation bin. In the BGM_BILINEAR that use
  33. * ASSIGN_BILINEAR binning type the gradient is assigned to the two neighbouring bins. In the BGM and all other modes that use
  34. * ASSIGN_SOFT binning type the gradient is assigned to 8 nearest bins according to the cosine value between the gradient
  35. * angle and the bin center. LBGM (alias FP-Boost) is the floating point extension where each dimension is computed
  36. * as a linear combination of the weak learner responses. BINBOOST and subvariants are the binary extensions of LBGM
  37. * where each bit is computed as a thresholded linear combination of a set of weak learners.
  38. * BoostDesc header files (boostdesc_*.i) was exported from original binaries with export-boostdesc.py script from
  39. * samples subfolder.
  40. *
  41. * Member of `Xfeatures2d`
  42. */
  43. CV_EXPORTS @interface BoostDesc : Feature2D
  44. #ifdef __cplusplus
  45. @property(readonly)cv::Ptr<cv::xfeatures2d::BoostDesc> nativePtrBoostDesc;
  46. #endif
  47. #ifdef __cplusplus
  48. - (instancetype)initWithNativePtr:(cv::Ptr<cv::xfeatures2d::BoostDesc>)nativePtr;
  49. + (instancetype)fromNative:(cv::Ptr<cv::xfeatures2d::BoostDesc>)nativePtr;
  50. #endif
  51. #pragma mark - Methods
  52. //
  53. // static Ptr_BoostDesc cv::xfeatures2d::BoostDesc::create(int desc = BoostDesc::BINBOOST_256, bool use_scale_orientation = true, float scale_factor = 6.25f)
  54. //
  55. + (BoostDesc*)create:(int)desc use_scale_orientation:(BOOL)use_scale_orientation scale_factor:(float)scale_factor NS_SWIFT_NAME(create(desc:use_scale_orientation:scale_factor:));
  56. + (BoostDesc*)create:(int)desc use_scale_orientation:(BOOL)use_scale_orientation NS_SWIFT_NAME(create(desc:use_scale_orientation:));
  57. + (BoostDesc*)create:(int)desc NS_SWIFT_NAME(create(desc:));
  58. + (BoostDesc*)create NS_SWIFT_NAME(create());
  59. //
  60. // String cv::xfeatures2d::BoostDesc::getDefaultName()
  61. //
  62. - (NSString*)getDefaultName NS_SWIFT_NAME(getDefaultName());
  63. //
  64. // void cv::xfeatures2d::BoostDesc::setUseScaleOrientation(bool use_scale_orientation)
  65. //
  66. - (void)setUseScaleOrientation:(BOOL)use_scale_orientation NS_SWIFT_NAME(setUseScaleOrientation(use_scale_orientation:));
  67. //
  68. // bool cv::xfeatures2d::BoostDesc::getUseScaleOrientation()
  69. //
  70. - (BOOL)getUseScaleOrientation NS_SWIFT_NAME(getUseScaleOrientation());
  71. //
  72. // void cv::xfeatures2d::BoostDesc::setScaleFactor(float scale_factor)
  73. //
  74. - (void)setScaleFactor:(float)scale_factor NS_SWIFT_NAME(setScaleFactor(scale_factor:));
  75. //
  76. // float cv::xfeatures2d::BoostDesc::getScaleFactor()
  77. //
  78. - (float)getScaleFactor NS_SWIFT_NAME(getScaleFactor());
  79. @end
  80. NS_ASSUME_NONNULL_END