Feature2D.h 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  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 "Algorithm.h"
  13. @class KeyPoint;
  14. @class Mat;
  15. NS_ASSUME_NONNULL_BEGIN
  16. // C++: class Feature2D
  17. /**
  18. * Abstract base class for 2D image feature detectors and descriptor extractors
  19. *
  20. * Member of `Features2d`
  21. */
  22. CV_EXPORTS @interface Feature2D : Algorithm
  23. #ifdef __cplusplus
  24. @property(readonly)cv::Ptr<cv::Feature2D> nativePtrFeature2D;
  25. #endif
  26. #ifdef __cplusplus
  27. - (instancetype)initWithNativePtr:(cv::Ptr<cv::Feature2D>)nativePtr;
  28. + (instancetype)fromNative:(cv::Ptr<cv::Feature2D>)nativePtr;
  29. #endif
  30. #pragma mark - Methods
  31. //
  32. // void cv::Feature2D::detect(Mat image, vector_KeyPoint& keypoints, Mat mask = Mat())
  33. //
  34. /**
  35. * Detects keypoints in an image (first variant) or image set (second variant).
  36. *
  37. * @param image Image.
  38. * @param keypoints The detected keypoints. In the second variant of the method keypoints[i] is a set
  39. * of keypoints detected in images[i] .
  40. * @param mask Mask specifying where to look for keypoints (optional). It must be a 8-bit integer
  41. * matrix with non-zero values in the region of interest.
  42. */
  43. - (void)detect:(Mat*)image keypoints:(NSMutableArray<KeyPoint*>*)keypoints mask:(Mat*)mask NS_SWIFT_NAME(detect(image:keypoints:mask:));
  44. /**
  45. * Detects keypoints in an image (first variant) or image set (second variant).
  46. *
  47. * @param image Image.
  48. * @param keypoints The detected keypoints. In the second variant of the method keypoints[i] is a set
  49. * of keypoints detected in images[i] .
  50. * matrix with non-zero values in the region of interest.
  51. */
  52. - (void)detect:(Mat*)image keypoints:(NSMutableArray<KeyPoint*>*)keypoints NS_SWIFT_NAME(detect(image:keypoints:));
  53. //
  54. // void cv::Feature2D::detect(vector_Mat images, vector_vector_KeyPoint& keypoints, vector_Mat masks = vector_Mat())
  55. //
  56. /**
  57. *
  58. * @param images Image set.
  59. * @param keypoints The detected keypoints. In the second variant of the method keypoints[i] is a set
  60. * of keypoints detected in images[i] .
  61. * @param masks Masks for each input image specifying where to look for keypoints (optional).
  62. * masks[i] is a mask for images[i].
  63. */
  64. - (void)detect2:(NSArray<Mat*>*)images keypoints:(NSMutableArray<NSMutableArray<KeyPoint*>*>*)keypoints masks:(NSArray<Mat*>*)masks NS_SWIFT_NAME(detect(images:keypoints:masks:));
  65. /**
  66. *
  67. * @param images Image set.
  68. * @param keypoints The detected keypoints. In the second variant of the method keypoints[i] is a set
  69. * of keypoints detected in images[i] .
  70. * masks[i] is a mask for images[i].
  71. */
  72. - (void)detect2:(NSArray<Mat*>*)images keypoints:(NSMutableArray<NSMutableArray<KeyPoint*>*>*)keypoints NS_SWIFT_NAME(detect(images:keypoints:));
  73. //
  74. // void cv::Feature2D::compute(Mat image, vector_KeyPoint& keypoints, Mat& descriptors)
  75. //
  76. /**
  77. * Computes the descriptors for a set of keypoints detected in an image (first variant) or image set
  78. * (second variant).
  79. *
  80. * @param image Image.
  81. * @param keypoints Input collection of keypoints. Keypoints for which a descriptor cannot be
  82. * computed are removed. Sometimes new keypoints can be added, for example: SIFT duplicates keypoint
  83. * with several dominant orientations (for each orientation).
  84. * @param descriptors Computed descriptors. In the second variant of the method descriptors[i] are
  85. * descriptors computed for a keypoints[i]. Row j is the keypoints (or keypoints[i]) is the
  86. * descriptor for keypoint j-th keypoint.
  87. */
  88. - (void)compute:(Mat*)image keypoints:(NSMutableArray<KeyPoint*>*)keypoints descriptors:(Mat*)descriptors NS_SWIFT_NAME(compute(image:keypoints:descriptors:));
  89. //
  90. // void cv::Feature2D::compute(vector_Mat images, vector_vector_KeyPoint& keypoints, vector_Mat& descriptors)
  91. //
  92. /**
  93. *
  94. *
  95. * @param images Image set.
  96. * @param keypoints Input collection of keypoints. Keypoints for which a descriptor cannot be
  97. * computed are removed. Sometimes new keypoints can be added, for example: SIFT duplicates keypoint
  98. * with several dominant orientations (for each orientation).
  99. * @param descriptors Computed descriptors. In the second variant of the method descriptors[i] are
  100. * descriptors computed for a keypoints[i]. Row j is the keypoints (or keypoints[i]) is the
  101. * descriptor for keypoint j-th keypoint.
  102. */
  103. - (void)compute2:(NSArray<Mat*>*)images keypoints:(NSMutableArray<NSMutableArray<KeyPoint*>*>*)keypoints descriptors:(NSMutableArray<Mat*>*)descriptors NS_SWIFT_NAME(compute(images:keypoints:descriptors:));
  104. //
  105. // void cv::Feature2D::detectAndCompute(Mat image, Mat mask, vector_KeyPoint& keypoints, Mat& descriptors, bool useProvidedKeypoints = false)
  106. //
  107. /**
  108. * Detects keypoints and computes the descriptors
  109. */
  110. - (void)detectAndCompute:(Mat*)image mask:(Mat*)mask keypoints:(NSMutableArray<KeyPoint*>*)keypoints descriptors:(Mat*)descriptors useProvidedKeypoints:(BOOL)useProvidedKeypoints NS_SWIFT_NAME(detectAndCompute(image:mask:keypoints:descriptors:useProvidedKeypoints:));
  111. /**
  112. * Detects keypoints and computes the descriptors
  113. */
  114. - (void)detectAndCompute:(Mat*)image mask:(Mat*)mask keypoints:(NSMutableArray<KeyPoint*>*)keypoints descriptors:(Mat*)descriptors NS_SWIFT_NAME(detectAndCompute(image:mask:keypoints:descriptors:));
  115. //
  116. // int cv::Feature2D::descriptorSize()
  117. //
  118. - (int)descriptorSize NS_SWIFT_NAME(descriptorSize());
  119. //
  120. // int cv::Feature2D::descriptorType()
  121. //
  122. - (int)descriptorType NS_SWIFT_NAME(descriptorType());
  123. //
  124. // int cv::Feature2D::defaultNorm()
  125. //
  126. - (int)defaultNorm NS_SWIFT_NAME(defaultNorm());
  127. //
  128. // void cv::Feature2D::write(String fileName)
  129. //
  130. - (void)write:(NSString*)fileName NS_SWIFT_NAME(write(fileName:));
  131. //
  132. // void cv::Feature2D::read(String fileName)
  133. //
  134. - (void)read:(NSString*)fileName NS_SWIFT_NAME(read(fileName:));
  135. //
  136. // void cv::Feature2D::read(FileNode arg1)
  137. //
  138. // Unknown type 'FileNode' (I), skipping the function
  139. //
  140. // bool cv::Feature2D::empty()
  141. //
  142. - (BOOL)empty NS_SWIFT_NAME(empty());
  143. //
  144. // String cv::Feature2D::getDefaultName()
  145. //
  146. - (NSString*)getDefaultName NS_SWIFT_NAME(getDefaultName());
  147. //
  148. // void cv::Feature2D::write(Ptr_FileStorage fs, String name = String())
  149. //
  150. // Unknown type 'Ptr_FileStorage' (I), skipping the function
  151. @end
  152. NS_ASSUME_NONNULL_END