EdgeAwareInterpolator.h 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  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 EdgeAwareInterpolator
  17. /**
  18. * Sparse match interpolation algorithm based on modified locally-weighted affine
  19. * estimator from CITE: Revaud2015 and Fast Global Smoother as post-processing filter.
  20. *
  21. * Member of `Ximgproc`
  22. */
  23. CV_EXPORTS @interface EdgeAwareInterpolator : SparseMatchInterpolator
  24. #ifdef __cplusplus
  25. @property(readonly)cv::Ptr<cv::ximgproc::EdgeAwareInterpolator> nativePtrEdgeAwareInterpolator;
  26. #endif
  27. #ifdef __cplusplus
  28. - (instancetype)initWithNativePtr:(cv::Ptr<cv::ximgproc::EdgeAwareInterpolator>)nativePtr;
  29. + (instancetype)fromNative:(cv::Ptr<cv::ximgproc::EdgeAwareInterpolator>)nativePtr;
  30. #endif
  31. #pragma mark - Methods
  32. //
  33. // void cv::ximgproc::EdgeAwareInterpolator::setCostMap(Mat _costMap)
  34. //
  35. /**
  36. * Interface to provide a more elaborated cost map, i.e. edge map, for the edge-aware term.
  37. * This implementation is based on a rather simple gradient-based edge map estimation.
  38. * To used more complex edge map estimator (e.g. StructuredEdgeDetection that has been
  39. * used in the original publication) that may lead to improved accuracies, the internal
  40. * edge map estimation can be bypassed here.
  41. * @param _costMap a type CV_32FC1 Mat is required.
  42. * @see `cv::ximgproc::createSuperpixelSLIC`
  43. */
  44. - (void)setCostMap:(Mat*)_costMap NS_SWIFT_NAME(setCostMap(_costMap:));
  45. //
  46. // void cv::ximgproc::EdgeAwareInterpolator::setK(int _k)
  47. //
  48. /**
  49. * K is a number of nearest-neighbor matches considered, when fitting a locally affine
  50. * model. Usually it should be around 128. However, lower values would make the interpolation
  51. * noticeably faster.
  52. */
  53. - (void)setK:(int)_k NS_SWIFT_NAME(setK(_k:));
  54. //
  55. // int cv::ximgproc::EdgeAwareInterpolator::getK()
  56. //
  57. /**
  58. * @see `-setK:`
  59. */
  60. - (int)getK NS_SWIFT_NAME(getK());
  61. //
  62. // void cv::ximgproc::EdgeAwareInterpolator::setSigma(float _sigma)
  63. //
  64. /**
  65. * Sigma is a parameter defining how fast the weights decrease in the locally-weighted affine
  66. * fitting. Higher values can help preserve fine details, lower values can help to get rid of noise in the
  67. * output flow.
  68. */
  69. - (void)setSigma:(float)_sigma NS_SWIFT_NAME(setSigma(_sigma:));
  70. //
  71. // float cv::ximgproc::EdgeAwareInterpolator::getSigma()
  72. //
  73. /**
  74. * @see `-setSigma:`
  75. */
  76. - (float)getSigma NS_SWIFT_NAME(getSigma());
  77. //
  78. // void cv::ximgproc::EdgeAwareInterpolator::setLambda(float _lambda)
  79. //
  80. /**
  81. * Lambda is a parameter defining the weight of the edge-aware term in geodesic distance,
  82. * should be in the range of 0 to 1000.
  83. */
  84. - (void)setLambda:(float)_lambda NS_SWIFT_NAME(setLambda(_lambda:));
  85. //
  86. // float cv::ximgproc::EdgeAwareInterpolator::getLambda()
  87. //
  88. /**
  89. * @see `-setLambda:`
  90. */
  91. - (float)getLambda NS_SWIFT_NAME(getLambda());
  92. //
  93. // void cv::ximgproc::EdgeAwareInterpolator::setUsePostProcessing(bool _use_post_proc)
  94. //
  95. /**
  96. * Sets whether the fastGlobalSmootherFilter() post-processing is employed. It is turned on by
  97. * default.
  98. */
  99. - (void)setUsePostProcessing:(BOOL)_use_post_proc NS_SWIFT_NAME(setUsePostProcessing(_use_post_proc:));
  100. //
  101. // bool cv::ximgproc::EdgeAwareInterpolator::getUsePostProcessing()
  102. //
  103. /**
  104. * @see `-setUsePostProcessing:`
  105. */
  106. - (BOOL)getUsePostProcessing NS_SWIFT_NAME(getUsePostProcessing());
  107. //
  108. // void cv::ximgproc::EdgeAwareInterpolator::setFGSLambda(float _lambda)
  109. //
  110. /**
  111. * Sets the respective fastGlobalSmootherFilter() parameter.
  112. */
  113. - (void)setFGSLambda:(float)_lambda NS_SWIFT_NAME(setFGSLambda(_lambda:));
  114. //
  115. // float cv::ximgproc::EdgeAwareInterpolator::getFGSLambda()
  116. //
  117. /**
  118. * @see `-setFGSLambda:`
  119. */
  120. - (float)getFGSLambda NS_SWIFT_NAME(getFGSLambda());
  121. //
  122. // void cv::ximgproc::EdgeAwareInterpolator::setFGSSigma(float _sigma)
  123. //
  124. /**
  125. * @see `-setFGSLambda:`
  126. */
  127. - (void)setFGSSigma:(float)_sigma NS_SWIFT_NAME(setFGSSigma(_sigma:));
  128. //
  129. // float cv::ximgproc::EdgeAwareInterpolator::getFGSSigma()
  130. //
  131. /**
  132. * @see `-setFGSLambda:`
  133. */
  134. - (float)getFGSSigma NS_SWIFT_NAME(getFGSSigma());
  135. @end
  136. NS_ASSUME_NONNULL_END