SinusoidalPattern.h 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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/structured_light.hpp"
  8. #import "opencv2/structured_light/sinusoidalpattern.hpp"
  9. #else
  10. #define CV_EXPORTS
  11. #endif
  12. #import <Foundation/Foundation.h>
  13. #import "StructuredLightPattern.h"
  14. @class Mat;
  15. @class SinusoidalPatternParams;
  16. @class Size2i;
  17. NS_ASSUME_NONNULL_BEGIN
  18. // C++: class SinusoidalPattern
  19. /**
  20. * Class implementing Fourier transform profilometry (FTP) , phase-shifting profilometry (PSP)
  21. * and Fourier-assisted phase-shifting profilometry (FAPS) based on CITE: faps.
  22. *
  23. * This class generates sinusoidal patterns that can be used with FTP, PSP and FAPS.
  24. *
  25. * Member of `Structured_light`
  26. */
  27. CV_EXPORTS @interface SinusoidalPattern : StructuredLightPattern
  28. #ifdef __cplusplus
  29. @property(readonly)cv::Ptr<cv::structured_light::SinusoidalPattern> nativePtrSinusoidalPattern;
  30. #endif
  31. #ifdef __cplusplus
  32. - (instancetype)initWithNativePtr:(cv::Ptr<cv::structured_light::SinusoidalPattern>)nativePtr;
  33. + (instancetype)fromNative:(cv::Ptr<cv::structured_light::SinusoidalPattern>)nativePtr;
  34. #endif
  35. #pragma mark - Methods
  36. //
  37. // static Ptr_SinusoidalPattern cv::structured_light::SinusoidalPattern::create(Ptr_SinusoidalPattern_Params parameters = makePtr<SinusoidalPattern::Params>())
  38. //
  39. /**
  40. * Constructor.
  41. * @param parameters SinusoidalPattern parameters SinusoidalPattern::Params: width, height of the projector and patterns parameters.
  42. *
  43. */
  44. + (SinusoidalPattern*)create:(SinusoidalPatternParams*)parameters NS_SWIFT_NAME(create(parameters:));
  45. /**
  46. * Constructor.
  47. *
  48. */
  49. + (SinusoidalPattern*)create NS_SWIFT_NAME(create());
  50. //
  51. // void cv::structured_light::SinusoidalPattern::computePhaseMap(vector_Mat patternImages, Mat& wrappedPhaseMap, Mat& shadowMask = Mat(), Mat fundamental = Mat())
  52. //
  53. /**
  54. * Compute a wrapped phase map from sinusoidal patterns.
  55. * @param patternImages Input data to compute the wrapped phase map.
  56. * @param wrappedPhaseMap Wrapped phase map obtained through one of the three methods.
  57. * @param shadowMask Mask used to discard shadow regions.
  58. * @param fundamental Fundamental matrix used to compute epipolar lines and ease the matching step.
  59. */
  60. - (void)computePhaseMap:(NSArray<Mat*>*)patternImages wrappedPhaseMap:(Mat*)wrappedPhaseMap shadowMask:(Mat*)shadowMask fundamental:(Mat*)fundamental NS_SWIFT_NAME(computePhaseMap(patternImages:wrappedPhaseMap:shadowMask:fundamental:));
  61. /**
  62. * Compute a wrapped phase map from sinusoidal patterns.
  63. * @param patternImages Input data to compute the wrapped phase map.
  64. * @param wrappedPhaseMap Wrapped phase map obtained through one of the three methods.
  65. * @param shadowMask Mask used to discard shadow regions.
  66. */
  67. - (void)computePhaseMap:(NSArray<Mat*>*)patternImages wrappedPhaseMap:(Mat*)wrappedPhaseMap shadowMask:(Mat*)shadowMask NS_SWIFT_NAME(computePhaseMap(patternImages:wrappedPhaseMap:shadowMask:));
  68. /**
  69. * Compute a wrapped phase map from sinusoidal patterns.
  70. * @param patternImages Input data to compute the wrapped phase map.
  71. * @param wrappedPhaseMap Wrapped phase map obtained through one of the three methods.
  72. */
  73. - (void)computePhaseMap:(NSArray<Mat*>*)patternImages wrappedPhaseMap:(Mat*)wrappedPhaseMap NS_SWIFT_NAME(computePhaseMap(patternImages:wrappedPhaseMap:));
  74. //
  75. // void cv::structured_light::SinusoidalPattern::unwrapPhaseMap(Mat wrappedPhaseMap, Mat& unwrappedPhaseMap, Size camSize, Mat shadowMask = Mat())
  76. //
  77. /**
  78. * Unwrap the wrapped phase map to remove phase ambiguities.
  79. * @param wrappedPhaseMap The wrapped phase map computed from the pattern.
  80. * @param unwrappedPhaseMap The unwrapped phase map used to find correspondences between the two devices.
  81. * @param camSize Resolution of the camera.
  82. * @param shadowMask Mask used to discard shadow regions.
  83. */
  84. - (void)unwrapPhaseMap:(Mat*)wrappedPhaseMap unwrappedPhaseMap:(Mat*)unwrappedPhaseMap camSize:(Size2i*)camSize shadowMask:(Mat*)shadowMask NS_SWIFT_NAME(unwrapPhaseMap(wrappedPhaseMap:unwrappedPhaseMap:camSize:shadowMask:));
  85. /**
  86. * Unwrap the wrapped phase map to remove phase ambiguities.
  87. * @param wrappedPhaseMap The wrapped phase map computed from the pattern.
  88. * @param unwrappedPhaseMap The unwrapped phase map used to find correspondences between the two devices.
  89. * @param camSize Resolution of the camera.
  90. */
  91. - (void)unwrapPhaseMap:(Mat*)wrappedPhaseMap unwrappedPhaseMap:(Mat*)unwrappedPhaseMap camSize:(Size2i*)camSize NS_SWIFT_NAME(unwrapPhaseMap(wrappedPhaseMap:unwrappedPhaseMap:camSize:));
  92. //
  93. // void cv::structured_light::SinusoidalPattern::findProCamMatches(Mat projUnwrappedPhaseMap, Mat camUnwrappedPhaseMap, vector_Mat& matches)
  94. //
  95. /**
  96. * Find correspondences between the two devices thanks to unwrapped phase maps.
  97. * @param projUnwrappedPhaseMap Projector's unwrapped phase map.
  98. * @param camUnwrappedPhaseMap Camera's unwrapped phase map.
  99. * @param matches Images used to display correspondences map.
  100. */
  101. - (void)findProCamMatches:(Mat*)projUnwrappedPhaseMap camUnwrappedPhaseMap:(Mat*)camUnwrappedPhaseMap matches:(NSMutableArray<Mat*>*)matches NS_SWIFT_NAME(findProCamMatches(projUnwrappedPhaseMap:camUnwrappedPhaseMap:matches:));
  102. //
  103. // void cv::structured_light::SinusoidalPattern::computeDataModulationTerm(vector_Mat patternImages, Mat& dataModulationTerm, Mat shadowMask)
  104. //
  105. /**
  106. * compute the data modulation term.
  107. * @param patternImages captured images with projected patterns.
  108. * @param dataModulationTerm Mat where the data modulation term is saved.
  109. * @param shadowMask Mask used to discard shadow regions.
  110. */
  111. - (void)computeDataModulationTerm:(NSArray<Mat*>*)patternImages dataModulationTerm:(Mat*)dataModulationTerm shadowMask:(Mat*)shadowMask NS_SWIFT_NAME(computeDataModulationTerm(patternImages:dataModulationTerm:shadowMask:));
  112. @end
  113. NS_ASSUME_NONNULL_END