StereoMatcher.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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 "Algorithm.h"
  13. @class Mat;
  14. NS_ASSUME_NONNULL_BEGIN
  15. // C++: class StereoMatcher
  16. /**
  17. * The base class for stereo correspondence algorithms.
  18. *
  19. * Member of `Calib3d`
  20. */
  21. CV_EXPORTS @interface StereoMatcher : Algorithm
  22. #ifdef __cplusplus
  23. @property(readonly)cv::Ptr<cv::StereoMatcher> nativePtrStereoMatcher;
  24. #endif
  25. #ifdef __cplusplus
  26. - (instancetype)initWithNativePtr:(cv::Ptr<cv::StereoMatcher>)nativePtr;
  27. + (instancetype)fromNative:(cv::Ptr<cv::StereoMatcher>)nativePtr;
  28. #endif
  29. #pragma mark - Class Constants
  30. @property (class, readonly) int DISP_SHIFT NS_SWIFT_NAME(DISP_SHIFT);
  31. @property (class, readonly) int DISP_SCALE NS_SWIFT_NAME(DISP_SCALE);
  32. #pragma mark - Methods
  33. //
  34. // void cv::StereoMatcher::compute(Mat left, Mat right, Mat& disparity)
  35. //
  36. /**
  37. * Computes disparity map for the specified stereo pair
  38. *
  39. * @param left Left 8-bit single-channel image.
  40. * @param right Right image of the same size and the same type as the left one.
  41. * @param disparity Output disparity map. It has the same size as the input images. Some algorithms,
  42. * like StereoBM or StereoSGBM compute 16-bit fixed-point disparity map (where each disparity value
  43. * has 4 fractional bits), whereas other algorithms output 32-bit floating-point disparity map.
  44. */
  45. - (void)compute:(Mat*)left right:(Mat*)right disparity:(Mat*)disparity NS_SWIFT_NAME(compute(left:right:disparity:));
  46. //
  47. // int cv::StereoMatcher::getMinDisparity()
  48. //
  49. - (int)getMinDisparity NS_SWIFT_NAME(getMinDisparity());
  50. //
  51. // void cv::StereoMatcher::setMinDisparity(int minDisparity)
  52. //
  53. - (void)setMinDisparity:(int)minDisparity NS_SWIFT_NAME(setMinDisparity(minDisparity:));
  54. //
  55. // int cv::StereoMatcher::getNumDisparities()
  56. //
  57. - (int)getNumDisparities NS_SWIFT_NAME(getNumDisparities());
  58. //
  59. // void cv::StereoMatcher::setNumDisparities(int numDisparities)
  60. //
  61. - (void)setNumDisparities:(int)numDisparities NS_SWIFT_NAME(setNumDisparities(numDisparities:));
  62. //
  63. // int cv::StereoMatcher::getBlockSize()
  64. //
  65. - (int)getBlockSize NS_SWIFT_NAME(getBlockSize());
  66. //
  67. // void cv::StereoMatcher::setBlockSize(int blockSize)
  68. //
  69. - (void)setBlockSize:(int)blockSize NS_SWIFT_NAME(setBlockSize(blockSize:));
  70. //
  71. // int cv::StereoMatcher::getSpeckleWindowSize()
  72. //
  73. - (int)getSpeckleWindowSize NS_SWIFT_NAME(getSpeckleWindowSize());
  74. //
  75. // void cv::StereoMatcher::setSpeckleWindowSize(int speckleWindowSize)
  76. //
  77. - (void)setSpeckleWindowSize:(int)speckleWindowSize NS_SWIFT_NAME(setSpeckleWindowSize(speckleWindowSize:));
  78. //
  79. // int cv::StereoMatcher::getSpeckleRange()
  80. //
  81. - (int)getSpeckleRange NS_SWIFT_NAME(getSpeckleRange());
  82. //
  83. // void cv::StereoMatcher::setSpeckleRange(int speckleRange)
  84. //
  85. - (void)setSpeckleRange:(int)speckleRange NS_SWIFT_NAME(setSpeckleRange(speckleRange:));
  86. //
  87. // int cv::StereoMatcher::getDisp12MaxDiff()
  88. //
  89. - (int)getDisp12MaxDiff NS_SWIFT_NAME(getDisp12MaxDiff());
  90. //
  91. // void cv::StereoMatcher::setDisp12MaxDiff(int disp12MaxDiff)
  92. //
  93. - (void)setDisp12MaxDiff:(int)disp12MaxDiff NS_SWIFT_NAME(setDisp12MaxDiff(disp12MaxDiff:));
  94. @end
  95. NS_ASSUME_NONNULL_END