SIFT.h 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  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. NS_ASSUME_NONNULL_BEGIN
  14. // C++: class SIFT
  15. /**
  16. * Class for extracting keypoints and computing descriptors using the Scale Invariant Feature Transform
  17. * (SIFT) algorithm by D. Lowe CITE: Lowe04 .
  18. *
  19. * Member of `Features2d`
  20. */
  21. CV_EXPORTS @interface SIFT : Feature2D
  22. #ifdef __cplusplus
  23. @property(readonly)cv::Ptr<cv::SIFT> nativePtrSIFT;
  24. #endif
  25. #ifdef __cplusplus
  26. - (instancetype)initWithNativePtr:(cv::Ptr<cv::SIFT>)nativePtr;
  27. + (instancetype)fromNative:(cv::Ptr<cv::SIFT>)nativePtr;
  28. #endif
  29. #pragma mark - Methods
  30. //
  31. // static Ptr_SIFT cv::SIFT::create(int nfeatures = 0, int nOctaveLayers = 3, double contrastThreshold = 0.04, double edgeThreshold = 10, double sigma = 1.6)
  32. //
  33. /**
  34. * @param nfeatures The number of best features to retain. The features are ranked by their scores
  35. * (measured in SIFT algorithm as the local contrast)
  36. *
  37. * @param nOctaveLayers The number of layers in each octave. 3 is the value used in D. Lowe paper. The
  38. * number of octaves is computed automatically from the image resolution.
  39. *
  40. * @param contrastThreshold The contrast threshold used to filter out weak features in semi-uniform
  41. * (low-contrast) regions. The larger the threshold, the less features are produced by the detector.
  42. *
  43. * NOTE: The contrast threshold will be divided by nOctaveLayers when the filtering is applied. When
  44. * nOctaveLayers is set to default and if you want to use the value used in D. Lowe paper, 0.03, set
  45. * this argument to 0.09.
  46. *
  47. * @param edgeThreshold The threshold used to filter out edge-like features. Note that the its meaning
  48. * is different from the contrastThreshold, i.e. the larger the edgeThreshold, the less features are
  49. * filtered out (more features are retained).
  50. *
  51. * @param sigma The sigma of the Gaussian applied to the input image at the octave \#0. If your image
  52. * is captured with a weak camera with soft lenses, you might want to reduce the number.
  53. */
  54. + (SIFT*)create:(int)nfeatures nOctaveLayers:(int)nOctaveLayers contrastThreshold:(double)contrastThreshold edgeThreshold:(double)edgeThreshold sigma:(double)sigma NS_SWIFT_NAME(create(nfeatures:nOctaveLayers:contrastThreshold:edgeThreshold:sigma:));
  55. /**
  56. * @param nfeatures The number of best features to retain. The features are ranked by their scores
  57. * (measured in SIFT algorithm as the local contrast)
  58. *
  59. * @param nOctaveLayers The number of layers in each octave. 3 is the value used in D. Lowe paper. The
  60. * number of octaves is computed automatically from the image resolution.
  61. *
  62. * @param contrastThreshold The contrast threshold used to filter out weak features in semi-uniform
  63. * (low-contrast) regions. The larger the threshold, the less features are produced by the detector.
  64. *
  65. * NOTE: The contrast threshold will be divided by nOctaveLayers when the filtering is applied. When
  66. * nOctaveLayers is set to default and if you want to use the value used in D. Lowe paper, 0.03, set
  67. * this argument to 0.09.
  68. *
  69. * @param edgeThreshold The threshold used to filter out edge-like features. Note that the its meaning
  70. * is different from the contrastThreshold, i.e. the larger the edgeThreshold, the less features are
  71. * filtered out (more features are retained).
  72. *
  73. * is captured with a weak camera with soft lenses, you might want to reduce the number.
  74. */
  75. + (SIFT*)create:(int)nfeatures nOctaveLayers:(int)nOctaveLayers contrastThreshold:(double)contrastThreshold edgeThreshold:(double)edgeThreshold NS_SWIFT_NAME(create(nfeatures:nOctaveLayers:contrastThreshold:edgeThreshold:));
  76. /**
  77. * @param nfeatures The number of best features to retain. The features are ranked by their scores
  78. * (measured in SIFT algorithm as the local contrast)
  79. *
  80. * @param nOctaveLayers The number of layers in each octave. 3 is the value used in D. Lowe paper. The
  81. * number of octaves is computed automatically from the image resolution.
  82. *
  83. * @param contrastThreshold The contrast threshold used to filter out weak features in semi-uniform
  84. * (low-contrast) regions. The larger the threshold, the less features are produced by the detector.
  85. *
  86. * NOTE: The contrast threshold will be divided by nOctaveLayers when the filtering is applied. When
  87. * nOctaveLayers is set to default and if you want to use the value used in D. Lowe paper, 0.03, set
  88. * this argument to 0.09.
  89. *
  90. * is different from the contrastThreshold, i.e. the larger the edgeThreshold, the less features are
  91. * filtered out (more features are retained).
  92. *
  93. * is captured with a weak camera with soft lenses, you might want to reduce the number.
  94. */
  95. + (SIFT*)create:(int)nfeatures nOctaveLayers:(int)nOctaveLayers contrastThreshold:(double)contrastThreshold NS_SWIFT_NAME(create(nfeatures:nOctaveLayers:contrastThreshold:));
  96. /**
  97. * @param nfeatures The number of best features to retain. The features are ranked by their scores
  98. * (measured in SIFT algorithm as the local contrast)
  99. *
  100. * @param nOctaveLayers The number of layers in each octave. 3 is the value used in D. Lowe paper. The
  101. * number of octaves is computed automatically from the image resolution.
  102. *
  103. * (low-contrast) regions. The larger the threshold, the less features are produced by the detector.
  104. *
  105. * NOTE: The contrast threshold will be divided by nOctaveLayers when the filtering is applied. When
  106. * nOctaveLayers is set to default and if you want to use the value used in D. Lowe paper, 0.03, set
  107. * this argument to 0.09.
  108. *
  109. * is different from the contrastThreshold, i.e. the larger the edgeThreshold, the less features are
  110. * filtered out (more features are retained).
  111. *
  112. * is captured with a weak camera with soft lenses, you might want to reduce the number.
  113. */
  114. + (SIFT*)create:(int)nfeatures nOctaveLayers:(int)nOctaveLayers NS_SWIFT_NAME(create(nfeatures:nOctaveLayers:));
  115. /**
  116. * @param nfeatures The number of best features to retain. The features are ranked by their scores
  117. * (measured in SIFT algorithm as the local contrast)
  118. *
  119. * number of octaves is computed automatically from the image resolution.
  120. *
  121. * (low-contrast) regions. The larger the threshold, the less features are produced by the detector.
  122. *
  123. * NOTE: The contrast threshold will be divided by nOctaveLayers when the filtering is applied. When
  124. * nOctaveLayers is set to default and if you want to use the value used in D. Lowe paper, 0.03, set
  125. * this argument to 0.09.
  126. *
  127. * is different from the contrastThreshold, i.e. the larger the edgeThreshold, the less features are
  128. * filtered out (more features are retained).
  129. *
  130. * is captured with a weak camera with soft lenses, you might want to reduce the number.
  131. */
  132. + (SIFT*)create:(int)nfeatures NS_SWIFT_NAME(create(nfeatures:));
  133. /**
  134. * (measured in SIFT algorithm as the local contrast)
  135. *
  136. * number of octaves is computed automatically from the image resolution.
  137. *
  138. * (low-contrast) regions. The larger the threshold, the less features are produced by the detector.
  139. *
  140. * NOTE: The contrast threshold will be divided by nOctaveLayers when the filtering is applied. When
  141. * nOctaveLayers is set to default and if you want to use the value used in D. Lowe paper, 0.03, set
  142. * this argument to 0.09.
  143. *
  144. * is different from the contrastThreshold, i.e. the larger the edgeThreshold, the less features are
  145. * filtered out (more features are retained).
  146. *
  147. * is captured with a weak camera with soft lenses, you might want to reduce the number.
  148. */
  149. + (SIFT*)create NS_SWIFT_NAME(create());
  150. //
  151. // static Ptr_SIFT cv::SIFT::create(int nfeatures, int nOctaveLayers, double contrastThreshold, double edgeThreshold, double sigma, int descriptorType)
  152. //
  153. /**
  154. * Create SIFT with specified descriptorType.
  155. * @param nfeatures The number of best features to retain. The features are ranked by their scores
  156. * (measured in SIFT algorithm as the local contrast)
  157. *
  158. * @param nOctaveLayers The number of layers in each octave. 3 is the value used in D. Lowe paper. The
  159. * number of octaves is computed automatically from the image resolution.
  160. *
  161. * @param contrastThreshold The contrast threshold used to filter out weak features in semi-uniform
  162. * (low-contrast) regions. The larger the threshold, the less features are produced by the detector.
  163. *
  164. * NOTE: The contrast threshold will be divided by nOctaveLayers when the filtering is applied. When
  165. * nOctaveLayers is set to default and if you want to use the value used in D. Lowe paper, 0.03, set
  166. * this argument to 0.09.
  167. *
  168. * @param edgeThreshold The threshold used to filter out edge-like features. Note that the its meaning
  169. * is different from the contrastThreshold, i.e. the larger the edgeThreshold, the less features are
  170. * filtered out (more features are retained).
  171. *
  172. * @param sigma The sigma of the Gaussian applied to the input image at the octave \#0. If your image
  173. * is captured with a weak camera with soft lenses, you might want to reduce the number.
  174. *
  175. * @param descriptorType The type of descriptors. Only CV_32F and CV_8U are supported.
  176. */
  177. + (SIFT*)create:(int)nfeatures nOctaveLayers:(int)nOctaveLayers contrastThreshold:(double)contrastThreshold edgeThreshold:(double)edgeThreshold sigma:(double)sigma descriptorType:(int)descriptorType NS_SWIFT_NAME(create(nfeatures:nOctaveLayers:contrastThreshold:edgeThreshold:sigma:descriptorType:));
  178. //
  179. // String cv::SIFT::getDefaultName()
  180. //
  181. - (NSString*)getDefaultName NS_SWIFT_NAME(getDefaultName());
  182. @end
  183. NS_ASSUME_NONNULL_END