VariationalRefinement.h 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  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/video.hpp"
  8. #import "opencv2/video/tracking.hpp"
  9. #else
  10. #define CV_EXPORTS
  11. #endif
  12. #import <Foundation/Foundation.h>
  13. #import "DenseOpticalFlow.h"
  14. @class Mat;
  15. NS_ASSUME_NONNULL_BEGIN
  16. // C++: class VariationalRefinement
  17. /**
  18. * Variational optical flow refinement
  19. *
  20. * This class implements variational refinement of the input flow field, i.e.
  21. * it uses input flow to initialize the minimization of the following functional:
  22. * `$$E(U) = \int_{\Omega} \delta \Psi(E_I) + \gamma \Psi(E_G) + \alpha \Psi(E_S) $$`,
  23. * where `$$E_I,E_G,E_S$$` are color constancy, gradient constancy and smoothness terms
  24. * respectively. `$$\Psi(s^2)=\sqrt{s^2+\epsilon^2}$$` is a robust penalizer to limit the
  25. * influence of outliers. A complete formulation and a description of the minimization
  26. * procedure can be found in CITE: Brox2004
  27. *
  28. * Member of `Video`
  29. */
  30. CV_EXPORTS @interface VariationalRefinement : DenseOpticalFlow
  31. #ifdef __cplusplus
  32. @property(readonly)cv::Ptr<cv::VariationalRefinement> nativePtrVariationalRefinement;
  33. #endif
  34. #ifdef __cplusplus
  35. - (instancetype)initWithNativePtr:(cv::Ptr<cv::VariationalRefinement>)nativePtr;
  36. + (instancetype)fromNative:(cv::Ptr<cv::VariationalRefinement>)nativePtr;
  37. #endif
  38. #pragma mark - Methods
  39. //
  40. // void cv::VariationalRefinement::calcUV(Mat I0, Mat I1, Mat& flow_u, Mat& flow_v)
  41. //
  42. /**
  43. * REF: calc function overload to handle separate horizontal (u) and vertical (v) flow components
  44. * (to avoid extra splits/merges)
  45. */
  46. - (void)calcUV:(Mat*)I0 I1:(Mat*)I1 flow_u:(Mat*)flow_u flow_v:(Mat*)flow_v NS_SWIFT_NAME(calcUV(I0:I1:flow_u:flow_v:));
  47. //
  48. // int cv::VariationalRefinement::getFixedPointIterations()
  49. //
  50. /**
  51. * Number of outer (fixed-point) iterations in the minimization procedure.
  52. * @see `-setFixedPointIterations:`
  53. */
  54. - (int)getFixedPointIterations NS_SWIFT_NAME(getFixedPointIterations());
  55. //
  56. // void cv::VariationalRefinement::setFixedPointIterations(int val)
  57. //
  58. /**
  59. * getFixedPointIterations @see `-getFixedPointIterations:`
  60. */
  61. - (void)setFixedPointIterations:(int)val NS_SWIFT_NAME(setFixedPointIterations(val:));
  62. //
  63. // int cv::VariationalRefinement::getSorIterations()
  64. //
  65. /**
  66. * Number of inner successive over-relaxation (SOR) iterations
  67. * in the minimization procedure to solve the respective linear system.
  68. * @see `-setSorIterations:`
  69. */
  70. - (int)getSorIterations NS_SWIFT_NAME(getSorIterations());
  71. //
  72. // void cv::VariationalRefinement::setSorIterations(int val)
  73. //
  74. /**
  75. * getSorIterations @see `-getSorIterations:`
  76. */
  77. - (void)setSorIterations:(int)val NS_SWIFT_NAME(setSorIterations(val:));
  78. //
  79. // float cv::VariationalRefinement::getOmega()
  80. //
  81. /**
  82. * Relaxation factor in SOR
  83. * @see `-setOmega:`
  84. */
  85. - (float)getOmega NS_SWIFT_NAME(getOmega());
  86. //
  87. // void cv::VariationalRefinement::setOmega(float val)
  88. //
  89. /**
  90. * getOmega @see `-getOmega:`
  91. */
  92. - (void)setOmega:(float)val NS_SWIFT_NAME(setOmega(val:));
  93. //
  94. // float cv::VariationalRefinement::getAlpha()
  95. //
  96. /**
  97. * Weight of the smoothness term
  98. * @see `-setAlpha:`
  99. */
  100. - (float)getAlpha NS_SWIFT_NAME(getAlpha());
  101. //
  102. // void cv::VariationalRefinement::setAlpha(float val)
  103. //
  104. /**
  105. * getAlpha @see `-getAlpha:`
  106. */
  107. - (void)setAlpha:(float)val NS_SWIFT_NAME(setAlpha(val:));
  108. //
  109. // float cv::VariationalRefinement::getDelta()
  110. //
  111. /**
  112. * Weight of the color constancy term
  113. * @see `-setDelta:`
  114. */
  115. - (float)getDelta NS_SWIFT_NAME(getDelta());
  116. //
  117. // void cv::VariationalRefinement::setDelta(float val)
  118. //
  119. /**
  120. * getDelta @see `-getDelta:`
  121. */
  122. - (void)setDelta:(float)val NS_SWIFT_NAME(setDelta(val:));
  123. //
  124. // float cv::VariationalRefinement::getGamma()
  125. //
  126. /**
  127. * Weight of the gradient constancy term
  128. * @see `-setGamma:`
  129. */
  130. - (float)getGamma NS_SWIFT_NAME(getGamma());
  131. //
  132. // void cv::VariationalRefinement::setGamma(float val)
  133. //
  134. /**
  135. * getGamma @see `-getGamma:`
  136. */
  137. - (void)setGamma:(float)val NS_SWIFT_NAME(setGamma(val:));
  138. //
  139. // static Ptr_VariationalRefinement cv::VariationalRefinement::create()
  140. //
  141. /**
  142. * Creates an instance of VariationalRefinement
  143. */
  144. + (VariationalRefinement*)create NS_SWIFT_NAME(create());
  145. @end
  146. NS_ASSUME_NONNULL_END