AlignMTB.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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/photo.hpp"
  8. #else
  9. #define CV_EXPORTS
  10. #endif
  11. #import <Foundation/Foundation.h>
  12. #import "AlignExposures.h"
  13. @class Mat;
  14. @class Point2i;
  15. NS_ASSUME_NONNULL_BEGIN
  16. // C++: class AlignMTB
  17. /**
  18. * This algorithm converts images to median threshold bitmaps (1 for pixels brighter than median
  19. * luminance and 0 otherwise) and than aligns the resulting bitmaps using bit operations.
  20. *
  21. * It is invariant to exposure, so exposure values and camera response are not necessary.
  22. *
  23. * In this implementation new image regions are filled with zeros.
  24. *
  25. * For more information see CITE: GW03 .
  26. *
  27. * Member of `Photo`
  28. */
  29. CV_EXPORTS @interface AlignMTB : AlignExposures
  30. #ifdef __cplusplus
  31. @property(readonly)cv::Ptr<cv::AlignMTB> nativePtrAlignMTB;
  32. #endif
  33. #ifdef __cplusplus
  34. - (instancetype)initWithNativePtr:(cv::Ptr<cv::AlignMTB>)nativePtr;
  35. + (instancetype)fromNative:(cv::Ptr<cv::AlignMTB>)nativePtr;
  36. #endif
  37. #pragma mark - Methods
  38. //
  39. // void cv::AlignMTB::process(vector_Mat src, vector_Mat dst, Mat times, Mat response)
  40. //
  41. - (void)process:(NSArray<Mat*>*)src dst:(NSArray<Mat*>*)dst times:(Mat*)times response:(Mat*)response NS_SWIFT_NAME(process(src:dst:times:response:));
  42. //
  43. // void cv::AlignMTB::process(vector_Mat src, vector_Mat dst)
  44. //
  45. /**
  46. * Short version of process, that doesn't take extra arguments.
  47. *
  48. * @param src vector of input images
  49. * @param dst vector of aligned images
  50. */
  51. - (void)process:(NSArray<Mat*>*)src dst:(NSArray<Mat*>*)dst NS_SWIFT_NAME(process(src:dst:));
  52. //
  53. // Point cv::AlignMTB::calculateShift(Mat img0, Mat img1)
  54. //
  55. /**
  56. * Calculates shift between two images, i. e. how to shift the second image to correspond it with the
  57. * first.
  58. *
  59. * @param img0 first image
  60. * @param img1 second image
  61. */
  62. - (Point2i*)calculateShift:(Mat*)img0 img1:(Mat*)img1 NS_SWIFT_NAME(calculateShift(img0:img1:));
  63. //
  64. // void cv::AlignMTB::shiftMat(Mat src, Mat& dst, Point shift)
  65. //
  66. /**
  67. * Helper function, that shift Mat filling new regions with zeros.
  68. *
  69. * @param src input image
  70. * @param dst result image
  71. * @param shift shift value
  72. */
  73. - (void)shiftMat:(Mat*)src dst:(Mat*)dst shift:(Point2i*)shift NS_SWIFT_NAME(shiftMat(src:dst:shift:));
  74. //
  75. // void cv::AlignMTB::computeBitmaps(Mat img, Mat& tb, Mat& eb)
  76. //
  77. /**
  78. * Computes median threshold and exclude bitmaps of given image.
  79. *
  80. * @param img input image
  81. * @param tb median threshold bitmap
  82. * @param eb exclude bitmap
  83. */
  84. - (void)computeBitmaps:(Mat*)img tb:(Mat*)tb eb:(Mat*)eb NS_SWIFT_NAME(computeBitmaps(img:tb:eb:));
  85. //
  86. // int cv::AlignMTB::getMaxBits()
  87. //
  88. - (int)getMaxBits NS_SWIFT_NAME(getMaxBits());
  89. //
  90. // void cv::AlignMTB::setMaxBits(int max_bits)
  91. //
  92. - (void)setMaxBits:(int)max_bits NS_SWIFT_NAME(setMaxBits(max_bits:));
  93. //
  94. // int cv::AlignMTB::getExcludeRange()
  95. //
  96. - (int)getExcludeRange NS_SWIFT_NAME(getExcludeRange());
  97. //
  98. // void cv::AlignMTB::setExcludeRange(int exclude_range)
  99. //
  100. - (void)setExcludeRange:(int)exclude_range NS_SWIFT_NAME(setExcludeRange(exclude_range:));
  101. //
  102. // bool cv::AlignMTB::getCut()
  103. //
  104. - (BOOL)getCut NS_SWIFT_NAME(getCut());
  105. //
  106. // void cv::AlignMTB::setCut(bool value)
  107. //
  108. - (void)setCut:(BOOL)value NS_SWIFT_NAME(setCut(value:));
  109. @end
  110. NS_ASSUME_NONNULL_END