TBMR.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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 "AffineFeature2D.h"
  13. NS_ASSUME_NONNULL_BEGIN
  14. // C++: class TBMR
  15. /**
  16. * Class implementing the Tree Based Morse Regions (TBMR) as described in
  17. * CITE: Najman2014 extended with scaled extraction ability.
  18. *
  19. * min_area prune areas smaller than minArea
  20. * max_area_relative prune areas bigger than maxArea = max_area_relative *
  21. * input_image_size
  22. * scale_factor scale factor for scaled extraction.
  23. * n_scales number of applications of the scale factor (octaves).
  24. *
  25. * NOTE: This algorithm is based on Component Tree (Min/Max) as well as MSER but
  26. * uses a Morse-theory approach to extract features.
  27. *
  28. * Features are ellipses (similar to MSER, however a MSER feature can never be a
  29. * TBMR feature and vice versa).
  30. *
  31. * Member of `Xfeatures2d`
  32. */
  33. CV_EXPORTS @interface TBMR : AffineFeature2D
  34. #ifdef __cplusplus
  35. @property(readonly)cv::Ptr<cv::xfeatures2d::TBMR> nativePtrTBMR;
  36. #endif
  37. #ifdef __cplusplus
  38. - (instancetype)initWithNativePtr:(cv::Ptr<cv::xfeatures2d::TBMR>)nativePtr;
  39. + (instancetype)fromNative:(cv::Ptr<cv::xfeatures2d::TBMR>)nativePtr;
  40. #endif
  41. #pragma mark - Methods
  42. //
  43. // static Ptr_TBMR cv::xfeatures2d::TBMR::create(int min_area = 60, float max_area_relative = 0.01f, float scale_factor = 1.25f, int n_scales = -1)
  44. //
  45. + (TBMR*)create:(int)min_area max_area_relative:(float)max_area_relative scale_factor:(float)scale_factor n_scales:(int)n_scales NS_SWIFT_NAME(create(min_area:max_area_relative:scale_factor:n_scales:));
  46. + (TBMR*)create:(int)min_area max_area_relative:(float)max_area_relative scale_factor:(float)scale_factor NS_SWIFT_NAME(create(min_area:max_area_relative:scale_factor:));
  47. + (TBMR*)create:(int)min_area max_area_relative:(float)max_area_relative NS_SWIFT_NAME(create(min_area:max_area_relative:));
  48. + (TBMR*)create:(int)min_area NS_SWIFT_NAME(create(min_area:));
  49. + (TBMR*)create NS_SWIFT_NAME(create());
  50. //
  51. // void cv::xfeatures2d::TBMR::setMinArea(int minArea)
  52. //
  53. - (void)setMinArea:(int)minArea NS_SWIFT_NAME(setMinArea(minArea:));
  54. //
  55. // int cv::xfeatures2d::TBMR::getMinArea()
  56. //
  57. - (int)getMinArea NS_SWIFT_NAME(getMinArea());
  58. //
  59. // void cv::xfeatures2d::TBMR::setMaxAreaRelative(float maxArea)
  60. //
  61. - (void)setMaxAreaRelative:(float)maxArea NS_SWIFT_NAME(setMaxAreaRelative(maxArea:));
  62. //
  63. // float cv::xfeatures2d::TBMR::getMaxAreaRelative()
  64. //
  65. - (float)getMaxAreaRelative NS_SWIFT_NAME(getMaxAreaRelative());
  66. //
  67. // void cv::xfeatures2d::TBMR::setScaleFactor(float scale_factor)
  68. //
  69. - (void)setScaleFactor:(float)scale_factor NS_SWIFT_NAME(setScaleFactor(scale_factor:));
  70. //
  71. // float cv::xfeatures2d::TBMR::getScaleFactor()
  72. //
  73. - (float)getScaleFactor NS_SWIFT_NAME(getScaleFactor());
  74. //
  75. // void cv::xfeatures2d::TBMR::setNScales(int n_scales)
  76. //
  77. - (void)setNScales:(int)n_scales NS_SWIFT_NAME(setNScales(n_scales:));
  78. //
  79. // int cv::xfeatures2d::TBMR::getNScales()
  80. //
  81. - (int)getNScales NS_SWIFT_NAME(getNScales());
  82. @end
  83. NS_ASSUME_NONNULL_END