RICInterpolator.h 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401
  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/sparse_match_interpolator.hpp"
  9. #else
  10. #define CV_EXPORTS
  11. #endif
  12. #import <Foundation/Foundation.h>
  13. #import "SparseMatchInterpolator.h"
  14. @class Mat;
  15. NS_ASSUME_NONNULL_BEGIN
  16. // C++: class RICInterpolator
  17. /**
  18. * Sparse match interpolation algorithm based on modified piecewise locally-weighted affine
  19. * estimator called Robust Interpolation method of Correspondences or RIC from CITE: Hu2017 and Variational
  20. * and Fast Global Smoother as post-processing filter. The RICInterpolator is a extension of the EdgeAwareInterpolator.
  21. * Main concept of this extension is an piece-wise affine model based on over-segmentation via SLIC superpixel estimation.
  22. * The method contains an efficient propagation mechanism to estimate among the pieces-wise models.
  23. *
  24. * Member of `Ximgproc`
  25. */
  26. CV_EXPORTS @interface RICInterpolator : SparseMatchInterpolator
  27. #ifdef __cplusplus
  28. @property(readonly)cv::Ptr<cv::ximgproc::RICInterpolator> nativePtrRICInterpolator;
  29. #endif
  30. #ifdef __cplusplus
  31. - (instancetype)initWithNativePtr:(cv::Ptr<cv::ximgproc::RICInterpolator>)nativePtr;
  32. + (instancetype)fromNative:(cv::Ptr<cv::ximgproc::RICInterpolator>)nativePtr;
  33. #endif
  34. #pragma mark - Methods
  35. //
  36. // void cv::ximgproc::RICInterpolator::setK(int k = 32)
  37. //
  38. /**
  39. * K is a number of nearest-neighbor matches considered, when fitting a locally affine
  40. * model for a superpixel segment. However, lower values would make the interpolation
  41. * noticeably faster. The original implementation of CITE: Hu2017 uses 32.
  42. */
  43. - (void)setK:(int)k NS_SWIFT_NAME(setK(k:));
  44. /**
  45. * K is a number of nearest-neighbor matches considered, when fitting a locally affine
  46. * model for a superpixel segment. However, lower values would make the interpolation
  47. * noticeably faster. The original implementation of CITE: Hu2017 uses 32.
  48. */
  49. - (void)setK NS_SWIFT_NAME(setK());
  50. //
  51. // int cv::ximgproc::RICInterpolator::getK()
  52. //
  53. /**
  54. * setK
  55. * @see `-setK:`
  56. */
  57. - (int)getK NS_SWIFT_NAME(getK());
  58. //
  59. // void cv::ximgproc::RICInterpolator::setCostMap(Mat costMap)
  60. //
  61. /**
  62. * Interface to provide a more elaborated cost map, i.e. edge map, for the edge-aware term.
  63. * This implementation is based on a rather simple gradient-based edge map estimation.
  64. * To used more complex edge map estimator (e.g. StructuredEdgeDetection that has been
  65. * used in the original publication) that may lead to improved accuracies, the internal
  66. * edge map estimation can be bypassed here.
  67. * @param costMap a type CV_32FC1 Mat is required.
  68. * @see `cv::ximgproc::createSuperpixelSLIC`
  69. */
  70. - (void)setCostMap:(Mat*)costMap NS_SWIFT_NAME(setCostMap(costMap:));
  71. //
  72. // void cv::ximgproc::RICInterpolator::setSuperpixelSize(int spSize = 15)
  73. //
  74. /**
  75. * Get the internal cost, i.e. edge map, used for estimating the edge-aware term.
  76. * @see `-setCostMap:`
  77. */
  78. - (void)setSuperpixelSize:(int)spSize NS_SWIFT_NAME(setSuperpixelSize(spSize:));
  79. /**
  80. * Get the internal cost, i.e. edge map, used for estimating the edge-aware term.
  81. * @see `-setCostMap:`
  82. */
  83. - (void)setSuperpixelSize NS_SWIFT_NAME(setSuperpixelSize());
  84. //
  85. // int cv::ximgproc::RICInterpolator::getSuperpixelSize()
  86. //
  87. /**
  88. * setSuperpixelSize
  89. * @see `-setSuperpixelSize:`
  90. */
  91. - (int)getSuperpixelSize NS_SWIFT_NAME(getSuperpixelSize());
  92. //
  93. // void cv::ximgproc::RICInterpolator::setSuperpixelNNCnt(int spNN = 150)
  94. //
  95. /**
  96. * Parameter defines the number of nearest-neighbor matches for each superpixel considered, when fitting a locally affine
  97. * model.
  98. */
  99. - (void)setSuperpixelNNCnt:(int)spNN NS_SWIFT_NAME(setSuperpixelNNCnt(spNN:));
  100. /**
  101. * Parameter defines the number of nearest-neighbor matches for each superpixel considered, when fitting a locally affine
  102. * model.
  103. */
  104. - (void)setSuperpixelNNCnt NS_SWIFT_NAME(setSuperpixelNNCnt());
  105. //
  106. // int cv::ximgproc::RICInterpolator::getSuperpixelNNCnt()
  107. //
  108. /**
  109. * setSuperpixelNNCnt
  110. * @see `-setSuperpixelNNCnt:`
  111. */
  112. - (int)getSuperpixelNNCnt NS_SWIFT_NAME(getSuperpixelNNCnt());
  113. //
  114. // void cv::ximgproc::RICInterpolator::setSuperpixelRuler(float ruler = 15.f)
  115. //
  116. /**
  117. * Parameter to tune enforcement of superpixel smoothness factor used for oversegmentation.
  118. * @see `cv::ximgproc::createSuperpixelSLIC`
  119. */
  120. - (void)setSuperpixelRuler:(float)ruler NS_SWIFT_NAME(setSuperpixelRuler(ruler:));
  121. /**
  122. * Parameter to tune enforcement of superpixel smoothness factor used for oversegmentation.
  123. * @see `cv::ximgproc::createSuperpixelSLIC`
  124. */
  125. - (void)setSuperpixelRuler NS_SWIFT_NAME(setSuperpixelRuler());
  126. //
  127. // float cv::ximgproc::RICInterpolator::getSuperpixelRuler()
  128. //
  129. /**
  130. * setSuperpixelRuler
  131. * @see `-setSuperpixelRuler:`
  132. */
  133. - (float)getSuperpixelRuler NS_SWIFT_NAME(getSuperpixelRuler());
  134. //
  135. // void cv::ximgproc::RICInterpolator::setSuperpixelMode(int mode = 100)
  136. //
  137. /**
  138. * Parameter to choose superpixel algorithm variant to use:
  139. * - cv::ximgproc::SLICType SLIC segments image using a desired region_size (value: 100)
  140. * - cv::ximgproc::SLICType SLICO will optimize using adaptive compactness factor (value: 101)
  141. * - cv::ximgproc::SLICType MSLIC will optimize using manifold methods resulting in more content-sensitive superpixels (value: 102).
  142. * @see `cv::ximgproc::createSuperpixelSLIC`
  143. */
  144. - (void)setSuperpixelMode:(int)mode NS_SWIFT_NAME(setSuperpixelMode(mode:));
  145. /**
  146. * Parameter to choose superpixel algorithm variant to use:
  147. * - cv::ximgproc::SLICType SLIC segments image using a desired region_size (value: 100)
  148. * - cv::ximgproc::SLICType SLICO will optimize using adaptive compactness factor (value: 101)
  149. * - cv::ximgproc::SLICType MSLIC will optimize using manifold methods resulting in more content-sensitive superpixels (value: 102).
  150. * @see `cv::ximgproc::createSuperpixelSLIC`
  151. */
  152. - (void)setSuperpixelMode NS_SWIFT_NAME(setSuperpixelMode());
  153. //
  154. // int cv::ximgproc::RICInterpolator::getSuperpixelMode()
  155. //
  156. /**
  157. * setSuperpixelMode
  158. * @see `-setSuperpixelMode:`
  159. */
  160. - (int)getSuperpixelMode NS_SWIFT_NAME(getSuperpixelMode());
  161. //
  162. // void cv::ximgproc::RICInterpolator::setAlpha(float alpha = 0.7f)
  163. //
  164. /**
  165. * Alpha is a parameter defining a global weight for transforming geodesic distance into weight.
  166. */
  167. - (void)setAlpha:(float)alpha NS_SWIFT_NAME(setAlpha(alpha:));
  168. /**
  169. * Alpha is a parameter defining a global weight for transforming geodesic distance into weight.
  170. */
  171. - (void)setAlpha NS_SWIFT_NAME(setAlpha());
  172. //
  173. // float cv::ximgproc::RICInterpolator::getAlpha()
  174. //
  175. /**
  176. * setAlpha
  177. * @see `-setAlpha:`
  178. */
  179. - (float)getAlpha NS_SWIFT_NAME(getAlpha());
  180. //
  181. // void cv::ximgproc::RICInterpolator::setModelIter(int modelIter = 4)
  182. //
  183. /**
  184. * Parameter defining the number of iterations for piece-wise affine model estimation.
  185. */
  186. - (void)setModelIter:(int)modelIter NS_SWIFT_NAME(setModelIter(modelIter:));
  187. /**
  188. * Parameter defining the number of iterations for piece-wise affine model estimation.
  189. */
  190. - (void)setModelIter NS_SWIFT_NAME(setModelIter());
  191. //
  192. // int cv::ximgproc::RICInterpolator::getModelIter()
  193. //
  194. /**
  195. * setModelIter
  196. * @see `-setModelIter:`
  197. */
  198. - (int)getModelIter NS_SWIFT_NAME(getModelIter());
  199. //
  200. // void cv::ximgproc::RICInterpolator::setRefineModels(bool refineModles = true)
  201. //
  202. /**
  203. * Parameter to choose wether additional refinement of the piece-wise affine models is employed.
  204. */
  205. - (void)setRefineModels:(BOOL)refineModles NS_SWIFT_NAME(setRefineModels(refineModles:));
  206. /**
  207. * Parameter to choose wether additional refinement of the piece-wise affine models is employed.
  208. */
  209. - (void)setRefineModels NS_SWIFT_NAME(setRefineModels());
  210. //
  211. // bool cv::ximgproc::RICInterpolator::getRefineModels()
  212. //
  213. /**
  214. * setRefineModels
  215. * @see `-setRefineModels:`
  216. */
  217. - (BOOL)getRefineModels NS_SWIFT_NAME(getRefineModels());
  218. //
  219. // void cv::ximgproc::RICInterpolator::setMaxFlow(float maxFlow = 250.f)
  220. //
  221. /**
  222. * MaxFlow is a threshold to validate the predictions using a certain piece-wise affine model.
  223. * If the prediction exceeds the treshold the translational model will be applied instead.
  224. */
  225. - (void)setMaxFlow:(float)maxFlow NS_SWIFT_NAME(setMaxFlow(maxFlow:));
  226. /**
  227. * MaxFlow is a threshold to validate the predictions using a certain piece-wise affine model.
  228. * If the prediction exceeds the treshold the translational model will be applied instead.
  229. */
  230. - (void)setMaxFlow NS_SWIFT_NAME(setMaxFlow());
  231. //
  232. // float cv::ximgproc::RICInterpolator::getMaxFlow()
  233. //
  234. /**
  235. * setMaxFlow
  236. * @see `-setMaxFlow:`
  237. */
  238. - (float)getMaxFlow NS_SWIFT_NAME(getMaxFlow());
  239. //
  240. // void cv::ximgproc::RICInterpolator::setUseVariationalRefinement(bool use_variational_refinement = false)
  241. //
  242. /**
  243. * Parameter to choose wether the VariationalRefinement post-processing is employed.
  244. */
  245. - (void)setUseVariationalRefinement:(BOOL)use_variational_refinement NS_SWIFT_NAME(setUseVariationalRefinement(use_variational_refinement:));
  246. /**
  247. * Parameter to choose wether the VariationalRefinement post-processing is employed.
  248. */
  249. - (void)setUseVariationalRefinement NS_SWIFT_NAME(setUseVariationalRefinement());
  250. //
  251. // bool cv::ximgproc::RICInterpolator::getUseVariationalRefinement()
  252. //
  253. /**
  254. * setUseVariationalRefinement
  255. * @see `-setUseVariationalRefinement:`
  256. */
  257. - (BOOL)getUseVariationalRefinement NS_SWIFT_NAME(getUseVariationalRefinement());
  258. //
  259. // void cv::ximgproc::RICInterpolator::setUseGlobalSmootherFilter(bool use_FGS = true)
  260. //
  261. /**
  262. * Sets whether the fastGlobalSmootherFilter() post-processing is employed.
  263. */
  264. - (void)setUseGlobalSmootherFilter:(BOOL)use_FGS NS_SWIFT_NAME(setUseGlobalSmootherFilter(use_FGS:));
  265. /**
  266. * Sets whether the fastGlobalSmootherFilter() post-processing is employed.
  267. */
  268. - (void)setUseGlobalSmootherFilter NS_SWIFT_NAME(setUseGlobalSmootherFilter());
  269. //
  270. // bool cv::ximgproc::RICInterpolator::getUseGlobalSmootherFilter()
  271. //
  272. /**
  273. * setUseGlobalSmootherFilter
  274. * @see `-setUseGlobalSmootherFilter:`
  275. */
  276. - (BOOL)getUseGlobalSmootherFilter NS_SWIFT_NAME(getUseGlobalSmootherFilter());
  277. //
  278. // void cv::ximgproc::RICInterpolator::setFGSLambda(float lambda = 500.f)
  279. //
  280. /**
  281. * Sets the respective fastGlobalSmootherFilter() parameter.
  282. */
  283. - (void)setFGSLambda:(float)lambda NS_SWIFT_NAME(setFGSLambda(lambda:));
  284. /**
  285. * Sets the respective fastGlobalSmootherFilter() parameter.
  286. */
  287. - (void)setFGSLambda NS_SWIFT_NAME(setFGSLambda());
  288. //
  289. // float cv::ximgproc::RICInterpolator::getFGSLambda()
  290. //
  291. /**
  292. * setFGSLambda
  293. * @see `-setFGSLambda:`
  294. */
  295. - (float)getFGSLambda NS_SWIFT_NAME(getFGSLambda());
  296. //
  297. // void cv::ximgproc::RICInterpolator::setFGSSigma(float sigma = 1.5f)
  298. //
  299. /**
  300. * Sets the respective fastGlobalSmootherFilter() parameter.
  301. */
  302. - (void)setFGSSigma:(float)sigma NS_SWIFT_NAME(setFGSSigma(sigma:));
  303. /**
  304. * Sets the respective fastGlobalSmootherFilter() parameter.
  305. */
  306. - (void)setFGSSigma NS_SWIFT_NAME(setFGSSigma());
  307. //
  308. // float cv::ximgproc::RICInterpolator::getFGSSigma()
  309. //
  310. /**
  311. * setFGSSigma
  312. * @see `-setFGSSigma:`
  313. */
  314. - (float)getFGSSigma NS_SWIFT_NAME(getFGSSigma());
  315. @end
  316. NS_ASSUME_NONNULL_END