AKAZE.h 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  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. #import "KAZE.h"
  14. // C++: enum DescriptorType (cv.AKAZE.DescriptorType)
  15. typedef NS_ENUM(int, DescriptorType) {
  16. DESCRIPTOR_KAZE_UPRIGHT = 2,
  17. DESCRIPTOR_KAZE = 3,
  18. DESCRIPTOR_MLDB_UPRIGHT = 4,
  19. DESCRIPTOR_MLDB = 5
  20. };
  21. NS_ASSUME_NONNULL_BEGIN
  22. // C++: class AKAZE
  23. /**
  24. * Class implementing the AKAZE keypoint detector and descriptor extractor, described in CITE: ANB13.
  25. *
  26. * AKAZE descriptors can only be used with KAZE or AKAZE keypoints. This class is thread-safe.
  27. *
  28. * NOTE: When you need descriptors use Feature2D::detectAndCompute, which
  29. * provides better performance. When using Feature2D::detect followed by
  30. * Feature2D::compute scale space pyramid is computed twice.
  31. *
  32. * NOTE: AKAZE implements T-API. When image is passed as UMat some parts of the algorithm
  33. * will use OpenCL.
  34. *
  35. * NOTE: [ANB13] Fast Explicit Diffusion for Accelerated Features in Nonlinear
  36. * Scale Spaces. Pablo F. Alcantarilla, Jesús Nuevo and Adrien Bartoli. In
  37. * British Machine Vision Conference (BMVC), Bristol, UK, September 2013.
  38. *
  39. * Member of `Features2d`
  40. */
  41. CV_EXPORTS @interface AKAZE : Feature2D
  42. #ifdef __cplusplus
  43. @property(readonly)cv::Ptr<cv::AKAZE> nativePtrAKAZE;
  44. #endif
  45. #ifdef __cplusplus
  46. - (instancetype)initWithNativePtr:(cv::Ptr<cv::AKAZE>)nativePtr;
  47. + (instancetype)fromNative:(cv::Ptr<cv::AKAZE>)nativePtr;
  48. #endif
  49. #pragma mark - Methods
  50. //
  51. // static Ptr_AKAZE cv::AKAZE::create(AKAZE_DescriptorType descriptor_type = AKAZE::DESCRIPTOR_MLDB, int descriptor_size = 0, int descriptor_channels = 3, float threshold = 0.001f, int nOctaves = 4, int nOctaveLayers = 4, KAZE_DiffusivityType diffusivity = KAZE::DIFF_PM_G2)
  52. //
  53. /**
  54. * The AKAZE constructor
  55. *
  56. * @param descriptor_type Type of the extracted descriptor: DESCRIPTOR_KAZE,
  57. * DESCRIPTOR_KAZE_UPRIGHT, DESCRIPTOR_MLDB or DESCRIPTOR_MLDB_UPRIGHT.
  58. * @param descriptor_size Size of the descriptor in bits. 0 -\> Full size
  59. * @param descriptor_channels Number of channels in the descriptor (1, 2, 3)
  60. * @param threshold Detector response threshold to accept point
  61. * @param nOctaves Maximum octave evolution of the image
  62. * @param nOctaveLayers Default number of sublevels per scale level
  63. * @param diffusivity Diffusivity type. DIFF_PM_G1, DIFF_PM_G2, DIFF_WEICKERT or
  64. * DIFF_CHARBONNIER
  65. */
  66. + (AKAZE*)create:(DescriptorType)descriptor_type descriptor_size:(int)descriptor_size descriptor_channels:(int)descriptor_channels threshold:(float)threshold nOctaves:(int)nOctaves nOctaveLayers:(int)nOctaveLayers diffusivity:(DiffusivityType)diffusivity NS_SWIFT_NAME(create(descriptor_type:descriptor_size:descriptor_channels:threshold:nOctaves:nOctaveLayers:diffusivity:));
  67. /**
  68. * The AKAZE constructor
  69. *
  70. * @param descriptor_type Type of the extracted descriptor: DESCRIPTOR_KAZE,
  71. * DESCRIPTOR_KAZE_UPRIGHT, DESCRIPTOR_MLDB or DESCRIPTOR_MLDB_UPRIGHT.
  72. * @param descriptor_size Size of the descriptor in bits. 0 -\> Full size
  73. * @param descriptor_channels Number of channels in the descriptor (1, 2, 3)
  74. * @param threshold Detector response threshold to accept point
  75. * @param nOctaves Maximum octave evolution of the image
  76. * @param nOctaveLayers Default number of sublevels per scale level
  77. * DIFF_CHARBONNIER
  78. */
  79. + (AKAZE*)create:(DescriptorType)descriptor_type descriptor_size:(int)descriptor_size descriptor_channels:(int)descriptor_channels threshold:(float)threshold nOctaves:(int)nOctaves nOctaveLayers:(int)nOctaveLayers NS_SWIFT_NAME(create(descriptor_type:descriptor_size:descriptor_channels:threshold:nOctaves:nOctaveLayers:));
  80. /**
  81. * The AKAZE constructor
  82. *
  83. * @param descriptor_type Type of the extracted descriptor: DESCRIPTOR_KAZE,
  84. * DESCRIPTOR_KAZE_UPRIGHT, DESCRIPTOR_MLDB or DESCRIPTOR_MLDB_UPRIGHT.
  85. * @param descriptor_size Size of the descriptor in bits. 0 -\> Full size
  86. * @param descriptor_channels Number of channels in the descriptor (1, 2, 3)
  87. * @param threshold Detector response threshold to accept point
  88. * @param nOctaves Maximum octave evolution of the image
  89. * DIFF_CHARBONNIER
  90. */
  91. + (AKAZE*)create:(DescriptorType)descriptor_type descriptor_size:(int)descriptor_size descriptor_channels:(int)descriptor_channels threshold:(float)threshold nOctaves:(int)nOctaves NS_SWIFT_NAME(create(descriptor_type:descriptor_size:descriptor_channels:threshold:nOctaves:));
  92. /**
  93. * The AKAZE constructor
  94. *
  95. * @param descriptor_type Type of the extracted descriptor: DESCRIPTOR_KAZE,
  96. * DESCRIPTOR_KAZE_UPRIGHT, DESCRIPTOR_MLDB or DESCRIPTOR_MLDB_UPRIGHT.
  97. * @param descriptor_size Size of the descriptor in bits. 0 -\> Full size
  98. * @param descriptor_channels Number of channels in the descriptor (1, 2, 3)
  99. * @param threshold Detector response threshold to accept point
  100. * DIFF_CHARBONNIER
  101. */
  102. + (AKAZE*)create:(DescriptorType)descriptor_type descriptor_size:(int)descriptor_size descriptor_channels:(int)descriptor_channels threshold:(float)threshold NS_SWIFT_NAME(create(descriptor_type:descriptor_size:descriptor_channels:threshold:));
  103. /**
  104. * The AKAZE constructor
  105. *
  106. * @param descriptor_type Type of the extracted descriptor: DESCRIPTOR_KAZE,
  107. * DESCRIPTOR_KAZE_UPRIGHT, DESCRIPTOR_MLDB or DESCRIPTOR_MLDB_UPRIGHT.
  108. * @param descriptor_size Size of the descriptor in bits. 0 -\> Full size
  109. * @param descriptor_channels Number of channels in the descriptor (1, 2, 3)
  110. * DIFF_CHARBONNIER
  111. */
  112. + (AKAZE*)create:(DescriptorType)descriptor_type descriptor_size:(int)descriptor_size descriptor_channels:(int)descriptor_channels NS_SWIFT_NAME(create(descriptor_type:descriptor_size:descriptor_channels:));
  113. /**
  114. * The AKAZE constructor
  115. *
  116. * @param descriptor_type Type of the extracted descriptor: DESCRIPTOR_KAZE,
  117. * DESCRIPTOR_KAZE_UPRIGHT, DESCRIPTOR_MLDB or DESCRIPTOR_MLDB_UPRIGHT.
  118. * @param descriptor_size Size of the descriptor in bits. 0 -\> Full size
  119. * DIFF_CHARBONNIER
  120. */
  121. + (AKAZE*)create:(DescriptorType)descriptor_type descriptor_size:(int)descriptor_size NS_SWIFT_NAME(create(descriptor_type:descriptor_size:));
  122. /**
  123. * The AKAZE constructor
  124. *
  125. * @param descriptor_type Type of the extracted descriptor: DESCRIPTOR_KAZE,
  126. * DESCRIPTOR_KAZE_UPRIGHT, DESCRIPTOR_MLDB or DESCRIPTOR_MLDB_UPRIGHT.
  127. * DIFF_CHARBONNIER
  128. */
  129. + (AKAZE*)create:(DescriptorType)descriptor_type NS_SWIFT_NAME(create(descriptor_type:));
  130. /**
  131. * The AKAZE constructor
  132. *
  133. * DESCRIPTOR_KAZE_UPRIGHT, DESCRIPTOR_MLDB or DESCRIPTOR_MLDB_UPRIGHT.
  134. * DIFF_CHARBONNIER
  135. */
  136. + (AKAZE*)create NS_SWIFT_NAME(create());
  137. //
  138. // void cv::AKAZE::setDescriptorType(AKAZE_DescriptorType dtype)
  139. //
  140. - (void)setDescriptorType:(DescriptorType)dtype NS_SWIFT_NAME(setDescriptorType(dtype:));
  141. //
  142. // AKAZE_DescriptorType cv::AKAZE::getDescriptorType()
  143. //
  144. - (DescriptorType)getDescriptorType NS_SWIFT_NAME(getDescriptorType());
  145. //
  146. // void cv::AKAZE::setDescriptorSize(int dsize)
  147. //
  148. - (void)setDescriptorSize:(int)dsize NS_SWIFT_NAME(setDescriptorSize(dsize:));
  149. //
  150. // int cv::AKAZE::getDescriptorSize()
  151. //
  152. - (int)getDescriptorSize NS_SWIFT_NAME(getDescriptorSize());
  153. //
  154. // void cv::AKAZE::setDescriptorChannels(int dch)
  155. //
  156. - (void)setDescriptorChannels:(int)dch NS_SWIFT_NAME(setDescriptorChannels(dch:));
  157. //
  158. // int cv::AKAZE::getDescriptorChannels()
  159. //
  160. - (int)getDescriptorChannels NS_SWIFT_NAME(getDescriptorChannels());
  161. //
  162. // void cv::AKAZE::setThreshold(double threshold)
  163. //
  164. - (void)setThreshold:(double)threshold NS_SWIFT_NAME(setThreshold(threshold:));
  165. //
  166. // double cv::AKAZE::getThreshold()
  167. //
  168. - (double)getThreshold NS_SWIFT_NAME(getThreshold());
  169. //
  170. // void cv::AKAZE::setNOctaves(int octaves)
  171. //
  172. - (void)setNOctaves:(int)octaves NS_SWIFT_NAME(setNOctaves(octaves:));
  173. //
  174. // int cv::AKAZE::getNOctaves()
  175. //
  176. - (int)getNOctaves NS_SWIFT_NAME(getNOctaves());
  177. //
  178. // void cv::AKAZE::setNOctaveLayers(int octaveLayers)
  179. //
  180. - (void)setNOctaveLayers:(int)octaveLayers NS_SWIFT_NAME(setNOctaveLayers(octaveLayers:));
  181. //
  182. // int cv::AKAZE::getNOctaveLayers()
  183. //
  184. - (int)getNOctaveLayers NS_SWIFT_NAME(getNOctaveLayers());
  185. //
  186. // void cv::AKAZE::setDiffusivity(KAZE_DiffusivityType diff)
  187. //
  188. - (void)setDiffusivity:(DiffusivityType)diff NS_SWIFT_NAME(setDiffusivity(diff:));
  189. //
  190. // KAZE_DiffusivityType cv::AKAZE::getDiffusivity()
  191. //
  192. - (DiffusivityType)getDiffusivity NS_SWIFT_NAME(getDiffusivity());
  193. //
  194. // String cv::AKAZE::getDefaultName()
  195. //
  196. - (NSString*)getDefaultName NS_SWIFT_NAME(getDefaultName());
  197. @end
  198. NS_ASSUME_NONNULL_END