AffineFeature.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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 "Feature2D.h"
  13. @class Feature2D;
  14. @class FloatVector;
  15. NS_ASSUME_NONNULL_BEGIN
  16. // C++: class AffineFeature
  17. /**
  18. * Class for implementing the wrapper which makes detectors and extractors to be affine invariant,
  19. * described as ASIFT in CITE: YM11 .
  20. *
  21. * Member of `Features2d`
  22. */
  23. CV_EXPORTS @interface AffineFeature : Feature2D
  24. #ifdef __cplusplus
  25. @property(readonly)cv::Ptr<cv::AffineFeature> nativePtrAffineFeature;
  26. #endif
  27. #ifdef __cplusplus
  28. - (instancetype)initWithNativePtr:(cv::Ptr<cv::AffineFeature>)nativePtr;
  29. + (instancetype)fromNative:(cv::Ptr<cv::AffineFeature>)nativePtr;
  30. #endif
  31. #pragma mark - Methods
  32. //
  33. // static Ptr_AffineFeature cv::AffineFeature::create(Ptr_Feature2D backend, int maxTilt = 5, int minTilt = 0, float tiltStep = 1.4142135623730951f, float rotateStepBase = 72)
  34. //
  35. /**
  36. * @param backend The detector/extractor you want to use as backend.
  37. * @param maxTilt The highest power index of tilt factor. 5 is used in the paper as tilt sampling range n.
  38. * @param minTilt The lowest power index of tilt factor. 0 is used in the paper.
  39. * @param tiltStep Tilt sampling step `$$\delta_t$$` in Algorithm 1 in the paper.
  40. * @param rotateStepBase Rotation sampling step factor b in Algorithm 1 in the paper.
  41. */
  42. + (AffineFeature*)create:(Feature2D*)backend maxTilt:(int)maxTilt minTilt:(int)minTilt tiltStep:(float)tiltStep rotateStepBase:(float)rotateStepBase NS_SWIFT_NAME(create(backend:maxTilt:minTilt:tiltStep:rotateStepBase:));
  43. /**
  44. * @param backend The detector/extractor you want to use as backend.
  45. * @param maxTilt The highest power index of tilt factor. 5 is used in the paper as tilt sampling range n.
  46. * @param minTilt The lowest power index of tilt factor. 0 is used in the paper.
  47. * @param tiltStep Tilt sampling step `$$\delta_t$$` in Algorithm 1 in the paper.
  48. */
  49. + (AffineFeature*)create:(Feature2D*)backend maxTilt:(int)maxTilt minTilt:(int)minTilt tiltStep:(float)tiltStep NS_SWIFT_NAME(create(backend:maxTilt:minTilt:tiltStep:));
  50. /**
  51. * @param backend The detector/extractor you want to use as backend.
  52. * @param maxTilt The highest power index of tilt factor. 5 is used in the paper as tilt sampling range n.
  53. * @param minTilt The lowest power index of tilt factor. 0 is used in the paper.
  54. */
  55. + (AffineFeature*)create:(Feature2D*)backend maxTilt:(int)maxTilt minTilt:(int)minTilt NS_SWIFT_NAME(create(backend:maxTilt:minTilt:));
  56. /**
  57. * @param backend The detector/extractor you want to use as backend.
  58. * @param maxTilt The highest power index of tilt factor. 5 is used in the paper as tilt sampling range n.
  59. */
  60. + (AffineFeature*)create:(Feature2D*)backend maxTilt:(int)maxTilt NS_SWIFT_NAME(create(backend:maxTilt:));
  61. /**
  62. * @param backend The detector/extractor you want to use as backend.
  63. */
  64. + (AffineFeature*)create:(Feature2D*)backend NS_SWIFT_NAME(create(backend:));
  65. //
  66. // void cv::AffineFeature::setViewParams(vector_float tilts, vector_float rolls)
  67. //
  68. - (void)setViewParams:(FloatVector*)tilts rolls:(FloatVector*)rolls NS_SWIFT_NAME(setViewParams(tilts:rolls:));
  69. //
  70. // void cv::AffineFeature::getViewParams(vector_float tilts, vector_float rolls)
  71. //
  72. - (void)getViewParams:(FloatVector*)tilts rolls:(FloatVector*)rolls NS_SWIFT_NAME(getViewParams(tilts:rolls:));
  73. //
  74. // String cv::AffineFeature::getDefaultName()
  75. //
  76. - (NSString*)getDefaultName NS_SWIFT_NAME(getDefaultName());
  77. @end
  78. NS_ASSUME_NONNULL_END