VGG.h 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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 VGG
  15. /**
  16. * Class implementing VGG (Oxford Visual Geometry Group) descriptor trained end to end
  17. * using "Descriptor Learning Using Convex Optimisation" (DLCO) aparatus described in CITE: Simonyan14.
  18. *
  19. * desc type of descriptor to use, VGG::VGG_120 is default (120 dimensions float)
  20. * Available types are VGG::VGG_120, VGG::VGG_80, VGG::VGG_64, VGG::VGG_48
  21. * isigma gaussian kernel value for image blur (default is 1.4f)
  22. * img_normalize use image sample intensity normalization (enabled by default)
  23. * use_orientation sample patterns using keypoints orientation, enabled by default
  24. * scale_factor adjust the sampling window of detected keypoints to 64.0f (VGG sampling window)
  25. * 6.25f is default and fits for KAZE, SURF detected keypoints window ratio
  26. * 6.75f should be the scale for SIFT detected keypoints window ratio
  27. * 5.00f should be the scale for AKAZE, MSD, AGAST, FAST, BRISK keypoints window ratio
  28. * 0.75f should be the scale for ORB keypoints ratio
  29. *
  30. * dsc_normalize clamp descriptors to 255 and convert to uchar CV_8UC1 (disabled by default)
  31. *
  32. * Member of `Xfeatures2d`
  33. */
  34. CV_EXPORTS @interface VGG : Feature2D
  35. #ifdef __cplusplus
  36. @property(readonly)cv::Ptr<cv::xfeatures2d::VGG> nativePtrVGG;
  37. #endif
  38. #ifdef __cplusplus
  39. - (instancetype)initWithNativePtr:(cv::Ptr<cv::xfeatures2d::VGG>)nativePtr;
  40. + (instancetype)fromNative:(cv::Ptr<cv::xfeatures2d::VGG>)nativePtr;
  41. #endif
  42. #pragma mark - Methods
  43. //
  44. // static Ptr_VGG cv::xfeatures2d::VGG::create(int desc = VGG::VGG_120, float isigma = 1.4f, bool img_normalize = true, bool use_scale_orientation = true, float scale_factor = 6.25f, bool dsc_normalize = false)
  45. //
  46. + (VGG*)create:(int)desc isigma:(float)isigma img_normalize:(BOOL)img_normalize use_scale_orientation:(BOOL)use_scale_orientation scale_factor:(float)scale_factor dsc_normalize:(BOOL)dsc_normalize NS_SWIFT_NAME(create(desc:isigma:img_normalize:use_scale_orientation:scale_factor:dsc_normalize:));
  47. + (VGG*)create:(int)desc isigma:(float)isigma img_normalize:(BOOL)img_normalize use_scale_orientation:(BOOL)use_scale_orientation scale_factor:(float)scale_factor NS_SWIFT_NAME(create(desc:isigma:img_normalize:use_scale_orientation:scale_factor:));
  48. + (VGG*)create:(int)desc isigma:(float)isigma img_normalize:(BOOL)img_normalize use_scale_orientation:(BOOL)use_scale_orientation NS_SWIFT_NAME(create(desc:isigma:img_normalize:use_scale_orientation:));
  49. + (VGG*)create:(int)desc isigma:(float)isigma img_normalize:(BOOL)img_normalize NS_SWIFT_NAME(create(desc:isigma:img_normalize:));
  50. + (VGG*)create:(int)desc isigma:(float)isigma NS_SWIFT_NAME(create(desc:isigma:));
  51. + (VGG*)create:(int)desc NS_SWIFT_NAME(create(desc:));
  52. + (VGG*)create NS_SWIFT_NAME(create());
  53. //
  54. // String cv::xfeatures2d::VGG::getDefaultName()
  55. //
  56. - (NSString*)getDefaultName NS_SWIFT_NAME(getDefaultName());
  57. //
  58. // void cv::xfeatures2d::VGG::setSigma(float isigma)
  59. //
  60. - (void)setSigma:(float)isigma NS_SWIFT_NAME(setSigma(isigma:));
  61. //
  62. // float cv::xfeatures2d::VGG::getSigma()
  63. //
  64. - (float)getSigma NS_SWIFT_NAME(getSigma());
  65. //
  66. // void cv::xfeatures2d::VGG::setUseNormalizeImage(bool img_normalize)
  67. //
  68. - (void)setUseNormalizeImage:(BOOL)img_normalize NS_SWIFT_NAME(setUseNormalizeImage(img_normalize:));
  69. //
  70. // bool cv::xfeatures2d::VGG::getUseNormalizeImage()
  71. //
  72. - (BOOL)getUseNormalizeImage NS_SWIFT_NAME(getUseNormalizeImage());
  73. //
  74. // void cv::xfeatures2d::VGG::setUseScaleOrientation(bool use_scale_orientation)
  75. //
  76. - (void)setUseScaleOrientation:(BOOL)use_scale_orientation NS_SWIFT_NAME(setUseScaleOrientation(use_scale_orientation:));
  77. //
  78. // bool cv::xfeatures2d::VGG::getUseScaleOrientation()
  79. //
  80. - (BOOL)getUseScaleOrientation NS_SWIFT_NAME(getUseScaleOrientation());
  81. //
  82. // void cv::xfeatures2d::VGG::setScaleFactor(float scale_factor)
  83. //
  84. - (void)setScaleFactor:(float)scale_factor NS_SWIFT_NAME(setScaleFactor(scale_factor:));
  85. //
  86. // float cv::xfeatures2d::VGG::getScaleFactor()
  87. //
  88. - (float)getScaleFactor NS_SWIFT_NAME(getScaleFactor());
  89. //
  90. // void cv::xfeatures2d::VGG::setUseNormalizeDescriptor(bool dsc_normalize)
  91. //
  92. - (void)setUseNormalizeDescriptor:(BOOL)dsc_normalize NS_SWIFT_NAME(setUseNormalizeDescriptor(dsc_normalize:));
  93. //
  94. // bool cv::xfeatures2d::VGG::getUseNormalizeDescriptor()
  95. //
  96. - (BOOL)getUseNormalizeDescriptor NS_SWIFT_NAME(getUseNormalizeDescriptor());
  97. @end
  98. NS_ASSUME_NONNULL_END