SelectiveSearchSegmentation.h 7.1 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/ximgproc.hpp"
  8. #import "opencv2/ximgproc/segmentation.hpp"
  9. #else
  10. #define CV_EXPORTS
  11. #endif
  12. #import <Foundation/Foundation.h>
  13. #import "Algorithm.h"
  14. @class GraphSegmentation;
  15. @class Mat;
  16. @class Rect2i;
  17. @class SelectiveSearchSegmentationStrategy;
  18. NS_ASSUME_NONNULL_BEGIN
  19. // C++: class SelectiveSearchSegmentation
  20. /**
  21. * Selective search segmentation algorithm
  22. * The class implements the algorithm described in CITE: uijlings2013selective.
  23. *
  24. * Member of `Ximgproc`
  25. */
  26. CV_EXPORTS @interface SelectiveSearchSegmentation : Algorithm
  27. #ifdef __cplusplus
  28. @property(readonly)cv::Ptr<cv::ximgproc::segmentation::SelectiveSearchSegmentation> nativePtrSelectiveSearchSegmentation;
  29. #endif
  30. #ifdef __cplusplus
  31. - (instancetype)initWithNativePtr:(cv::Ptr<cv::ximgproc::segmentation::SelectiveSearchSegmentation>)nativePtr;
  32. + (instancetype)fromNative:(cv::Ptr<cv::ximgproc::segmentation::SelectiveSearchSegmentation>)nativePtr;
  33. #endif
  34. #pragma mark - Methods
  35. //
  36. // void cv::ximgproc::segmentation::SelectiveSearchSegmentation::setBaseImage(Mat img)
  37. //
  38. /**
  39. * Set a image used by switch* functions to initialize the class
  40. * @param img The image
  41. */
  42. - (void)setBaseImage:(Mat*)img NS_SWIFT_NAME(setBaseImage(img:));
  43. //
  44. // void cv::ximgproc::segmentation::SelectiveSearchSegmentation::switchToSingleStrategy(int k = 200, float sigma = 0.8f)
  45. //
  46. /**
  47. * Initialize the class with the 'Single stragegy' parameters describled in CITE: uijlings2013selective.
  48. * @param k The k parameter for the graph segmentation
  49. * @param sigma The sigma parameter for the graph segmentation
  50. */
  51. - (void)switchToSingleStrategy:(int)k sigma:(float)sigma NS_SWIFT_NAME(switchToSingleStrategy(k:sigma:));
  52. /**
  53. * Initialize the class with the 'Single stragegy' parameters describled in CITE: uijlings2013selective.
  54. * @param k The k parameter for the graph segmentation
  55. */
  56. - (void)switchToSingleStrategy:(int)k NS_SWIFT_NAME(switchToSingleStrategy(k:));
  57. /**
  58. * Initialize the class with the 'Single stragegy' parameters describled in CITE: uijlings2013selective.
  59. */
  60. - (void)switchToSingleStrategy NS_SWIFT_NAME(switchToSingleStrategy());
  61. //
  62. // void cv::ximgproc::segmentation::SelectiveSearchSegmentation::switchToSelectiveSearchFast(int base_k = 150, int inc_k = 150, float sigma = 0.8f)
  63. //
  64. /**
  65. * Initialize the class with the 'Selective search fast' parameters describled in CITE: uijlings2013selective.
  66. * @param base_k The k parameter for the first graph segmentation
  67. * @param inc_k The increment of the k parameter for all graph segmentations
  68. * @param sigma The sigma parameter for the graph segmentation
  69. */
  70. - (void)switchToSelectiveSearchFast:(int)base_k inc_k:(int)inc_k sigma:(float)sigma NS_SWIFT_NAME(switchToSelectiveSearchFast(base_k:inc_k:sigma:));
  71. /**
  72. * Initialize the class with the 'Selective search fast' parameters describled in CITE: uijlings2013selective.
  73. * @param base_k The k parameter for the first graph segmentation
  74. * @param inc_k The increment of the k parameter for all graph segmentations
  75. */
  76. - (void)switchToSelectiveSearchFast:(int)base_k inc_k:(int)inc_k NS_SWIFT_NAME(switchToSelectiveSearchFast(base_k:inc_k:));
  77. /**
  78. * Initialize the class with the 'Selective search fast' parameters describled in CITE: uijlings2013selective.
  79. * @param base_k The k parameter for the first graph segmentation
  80. */
  81. - (void)switchToSelectiveSearchFast:(int)base_k NS_SWIFT_NAME(switchToSelectiveSearchFast(base_k:));
  82. /**
  83. * Initialize the class with the 'Selective search fast' parameters describled in CITE: uijlings2013selective.
  84. */
  85. - (void)switchToSelectiveSearchFast NS_SWIFT_NAME(switchToSelectiveSearchFast());
  86. //
  87. // void cv::ximgproc::segmentation::SelectiveSearchSegmentation::switchToSelectiveSearchQuality(int base_k = 150, int inc_k = 150, float sigma = 0.8f)
  88. //
  89. /**
  90. * Initialize the class with the 'Selective search fast' parameters describled in CITE: uijlings2013selective.
  91. * @param base_k The k parameter for the first graph segmentation
  92. * @param inc_k The increment of the k parameter for all graph segmentations
  93. * @param sigma The sigma parameter for the graph segmentation
  94. */
  95. - (void)switchToSelectiveSearchQuality:(int)base_k inc_k:(int)inc_k sigma:(float)sigma NS_SWIFT_NAME(switchToSelectiveSearchQuality(base_k:inc_k:sigma:));
  96. /**
  97. * Initialize the class with the 'Selective search fast' parameters describled in CITE: uijlings2013selective.
  98. * @param base_k The k parameter for the first graph segmentation
  99. * @param inc_k The increment of the k parameter for all graph segmentations
  100. */
  101. - (void)switchToSelectiveSearchQuality:(int)base_k inc_k:(int)inc_k NS_SWIFT_NAME(switchToSelectiveSearchQuality(base_k:inc_k:));
  102. /**
  103. * Initialize the class with the 'Selective search fast' parameters describled in CITE: uijlings2013selective.
  104. * @param base_k The k parameter for the first graph segmentation
  105. */
  106. - (void)switchToSelectiveSearchQuality:(int)base_k NS_SWIFT_NAME(switchToSelectiveSearchQuality(base_k:));
  107. /**
  108. * Initialize the class with the 'Selective search fast' parameters describled in CITE: uijlings2013selective.
  109. */
  110. - (void)switchToSelectiveSearchQuality NS_SWIFT_NAME(switchToSelectiveSearchQuality());
  111. //
  112. // void cv::ximgproc::segmentation::SelectiveSearchSegmentation::addImage(Mat img)
  113. //
  114. /**
  115. * Add a new image in the list of images to process.
  116. * @param img The image
  117. */
  118. - (void)addImage:(Mat*)img NS_SWIFT_NAME(addImage(img:));
  119. //
  120. // void cv::ximgproc::segmentation::SelectiveSearchSegmentation::clearImages()
  121. //
  122. /**
  123. * Clear the list of images to process
  124. */
  125. - (void)clearImages NS_SWIFT_NAME(clearImages());
  126. //
  127. // void cv::ximgproc::segmentation::SelectiveSearchSegmentation::addGraphSegmentation(Ptr_GraphSegmentation g)
  128. //
  129. /**
  130. * Add a new graph segmentation in the list of graph segementations to process.
  131. * @param g The graph segmentation
  132. */
  133. - (void)addGraphSegmentation:(GraphSegmentation*)g NS_SWIFT_NAME(addGraphSegmentation(g:));
  134. //
  135. // void cv::ximgproc::segmentation::SelectiveSearchSegmentation::clearGraphSegmentations()
  136. //
  137. /**
  138. * Clear the list of graph segmentations to process;
  139. */
  140. - (void)clearGraphSegmentations NS_SWIFT_NAME(clearGraphSegmentations());
  141. //
  142. // void cv::ximgproc::segmentation::SelectiveSearchSegmentation::addStrategy(Ptr_SelectiveSearchSegmentationStrategy s)
  143. //
  144. /**
  145. * Add a new strategy in the list of strategy to process.
  146. * @param s The strategy
  147. */
  148. - (void)addStrategy:(SelectiveSearchSegmentationStrategy*)s NS_SWIFT_NAME(addStrategy(s:));
  149. //
  150. // void cv::ximgproc::segmentation::SelectiveSearchSegmentation::clearStrategies()
  151. //
  152. /**
  153. * Clear the list of strategy to process;
  154. */
  155. - (void)clearStrategies NS_SWIFT_NAME(clearStrategies());
  156. //
  157. // void cv::ximgproc::segmentation::SelectiveSearchSegmentation::process(vector_Rect& rects)
  158. //
  159. /**
  160. * Based on all images, graph segmentations and stragies, computes all possible rects and return them
  161. * @param rects The list of rects. The first ones are more relevents than the lasts ones.
  162. */
  163. - (void)process:(NSMutableArray<Rect2i*>*)rects NS_SWIFT_NAME(process(rects:));
  164. @end
  165. NS_ASSUME_NONNULL_END