StereoBM.h 5.4 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/calib3d.hpp"
  8. #else
  9. #define CV_EXPORTS
  10. #endif
  11. #import <Foundation/Foundation.h>
  12. #import "StereoMatcher.h"
  13. @class Rect2i;
  14. NS_ASSUME_NONNULL_BEGIN
  15. // C++: class StereoBM
  16. /**
  17. * Class for computing stereo correspondence using the block matching algorithm, introduced and
  18. * contributed to OpenCV by K. Konolige.
  19. *
  20. * Member of `Calib3d`
  21. */
  22. CV_EXPORTS @interface StereoBM : StereoMatcher
  23. #ifdef __cplusplus
  24. @property(readonly)cv::Ptr<cv::StereoBM> nativePtrStereoBM;
  25. #endif
  26. #ifdef __cplusplus
  27. - (instancetype)initWithNativePtr:(cv::Ptr<cv::StereoBM>)nativePtr;
  28. + (instancetype)fromNative:(cv::Ptr<cv::StereoBM>)nativePtr;
  29. #endif
  30. #pragma mark - Class Constants
  31. @property (class, readonly) int PREFILTER_NORMALIZED_RESPONSE NS_SWIFT_NAME(PREFILTER_NORMALIZED_RESPONSE);
  32. @property (class, readonly) int PREFILTER_XSOBEL NS_SWIFT_NAME(PREFILTER_XSOBEL);
  33. #pragma mark - Methods
  34. //
  35. // int cv::StereoBM::getPreFilterType()
  36. //
  37. - (int)getPreFilterType NS_SWIFT_NAME(getPreFilterType());
  38. //
  39. // void cv::StereoBM::setPreFilterType(int preFilterType)
  40. //
  41. - (void)setPreFilterType:(int)preFilterType NS_SWIFT_NAME(setPreFilterType(preFilterType:));
  42. //
  43. // int cv::StereoBM::getPreFilterSize()
  44. //
  45. - (int)getPreFilterSize NS_SWIFT_NAME(getPreFilterSize());
  46. //
  47. // void cv::StereoBM::setPreFilterSize(int preFilterSize)
  48. //
  49. - (void)setPreFilterSize:(int)preFilterSize NS_SWIFT_NAME(setPreFilterSize(preFilterSize:));
  50. //
  51. // int cv::StereoBM::getPreFilterCap()
  52. //
  53. - (int)getPreFilterCap NS_SWIFT_NAME(getPreFilterCap());
  54. //
  55. // void cv::StereoBM::setPreFilterCap(int preFilterCap)
  56. //
  57. - (void)setPreFilterCap:(int)preFilterCap NS_SWIFT_NAME(setPreFilterCap(preFilterCap:));
  58. //
  59. // int cv::StereoBM::getTextureThreshold()
  60. //
  61. - (int)getTextureThreshold NS_SWIFT_NAME(getTextureThreshold());
  62. //
  63. // void cv::StereoBM::setTextureThreshold(int textureThreshold)
  64. //
  65. - (void)setTextureThreshold:(int)textureThreshold NS_SWIFT_NAME(setTextureThreshold(textureThreshold:));
  66. //
  67. // int cv::StereoBM::getUniquenessRatio()
  68. //
  69. - (int)getUniquenessRatio NS_SWIFT_NAME(getUniquenessRatio());
  70. //
  71. // void cv::StereoBM::setUniquenessRatio(int uniquenessRatio)
  72. //
  73. - (void)setUniquenessRatio:(int)uniquenessRatio NS_SWIFT_NAME(setUniquenessRatio(uniquenessRatio:));
  74. //
  75. // int cv::StereoBM::getSmallerBlockSize()
  76. //
  77. - (int)getSmallerBlockSize NS_SWIFT_NAME(getSmallerBlockSize());
  78. //
  79. // void cv::StereoBM::setSmallerBlockSize(int blockSize)
  80. //
  81. - (void)setSmallerBlockSize:(int)blockSize NS_SWIFT_NAME(setSmallerBlockSize(blockSize:));
  82. //
  83. // Rect cv::StereoBM::getROI1()
  84. //
  85. - (Rect2i*)getROI1 NS_SWIFT_NAME(getROI1());
  86. //
  87. // void cv::StereoBM::setROI1(Rect roi1)
  88. //
  89. - (void)setROI1:(Rect2i*)roi1 NS_SWIFT_NAME(setROI1(roi1:));
  90. //
  91. // Rect cv::StereoBM::getROI2()
  92. //
  93. - (Rect2i*)getROI2 NS_SWIFT_NAME(getROI2());
  94. //
  95. // void cv::StereoBM::setROI2(Rect roi2)
  96. //
  97. - (void)setROI2:(Rect2i*)roi2 NS_SWIFT_NAME(setROI2(roi2:));
  98. //
  99. // static Ptr_StereoBM cv::StereoBM::create(int numDisparities = 0, int blockSize = 21)
  100. //
  101. /**
  102. * Creates StereoBM object
  103. *
  104. * @param numDisparities the disparity search range. For each pixel algorithm will find the best
  105. * disparity from 0 (default minimum disparity) to numDisparities. The search range can then be
  106. * shifted by changing the minimum disparity.
  107. * @param blockSize the linear size of the blocks compared by the algorithm. The size should be odd
  108. * (as the block is centered at the current pixel). Larger block size implies smoother, though less
  109. * accurate disparity map. Smaller block size gives more detailed disparity map, but there is higher
  110. * chance for algorithm to find a wrong correspondence.
  111. *
  112. * The function create StereoBM object. You can then call StereoBM::compute() to compute disparity for
  113. * a specific stereo pair.
  114. */
  115. + (StereoBM*)create:(int)numDisparities blockSize:(int)blockSize NS_SWIFT_NAME(create(numDisparities:blockSize:));
  116. /**
  117. * Creates StereoBM object
  118. *
  119. * @param numDisparities the disparity search range. For each pixel algorithm will find the best
  120. * disparity from 0 (default minimum disparity) to numDisparities. The search range can then be
  121. * shifted by changing the minimum disparity.
  122. * (as the block is centered at the current pixel). Larger block size implies smoother, though less
  123. * accurate disparity map. Smaller block size gives more detailed disparity map, but there is higher
  124. * chance for algorithm to find a wrong correspondence.
  125. *
  126. * The function create StereoBM object. You can then call StereoBM::compute() to compute disparity for
  127. * a specific stereo pair.
  128. */
  129. + (StereoBM*)create:(int)numDisparities NS_SWIFT_NAME(create(numDisparities:));
  130. /**
  131. * Creates StereoBM object
  132. *
  133. * disparity from 0 (default minimum disparity) to numDisparities. The search range can then be
  134. * shifted by changing the minimum disparity.
  135. * (as the block is centered at the current pixel). Larger block size implies smoother, though less
  136. * accurate disparity map. Smaller block size gives more detailed disparity map, but there is higher
  137. * chance for algorithm to find a wrong correspondence.
  138. *
  139. * The function create StereoBM object. You can then call StereoBM::compute() to compute disparity for
  140. * a specific stereo pair.
  141. */
  142. + (StereoBM*)create NS_SWIFT_NAME(create());
  143. @end
  144. NS_ASSUME_NONNULL_END