StructuredLightPattern.h 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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/structured_light.hpp"
  9. #else
  10. #define CV_EXPORTS
  11. #endif
  12. #import <Foundation/Foundation.h>
  13. #import "Algorithm.h"
  14. @class Mat;
  15. NS_ASSUME_NONNULL_BEGIN
  16. // C++: class StructuredLightPattern
  17. /**
  18. * Abstract base class for generating and decoding structured light patterns.
  19. *
  20. * Member of `Structured_light`
  21. */
  22. CV_EXPORTS @interface StructuredLightPattern : Algorithm
  23. #ifdef __cplusplus
  24. @property(readonly)cv::Ptr<cv::structured_light::StructuredLightPattern> nativePtrStructuredLightPattern;
  25. #endif
  26. #ifdef __cplusplus
  27. - (instancetype)initWithNativePtr:(cv::Ptr<cv::structured_light::StructuredLightPattern>)nativePtr;
  28. + (instancetype)fromNative:(cv::Ptr<cv::structured_light::StructuredLightPattern>)nativePtr;
  29. #endif
  30. #pragma mark - Methods
  31. //
  32. // bool cv::structured_light::StructuredLightPattern::generate(vector_Mat& patternImages)
  33. //
  34. /**
  35. * Generates the structured light pattern to project.
  36. *
  37. * @param patternImages The generated pattern: a vector<Mat>, in which each image is a CV_8U Mat at projector's resolution.
  38. */
  39. - (BOOL)generate:(NSMutableArray<Mat*>*)patternImages NS_SWIFT_NAME(generate(patternImages:));
  40. //
  41. // bool cv::structured_light::StructuredLightPattern::decode(vector_vector_Mat patternImages, Mat& disparityMap, vector_Mat blackImages = vector_Mat(), vector_Mat whiteImages = vector_Mat(), int flags = DECODE_3D_UNDERWORLD)
  42. //
  43. /**
  44. * Decodes the structured light pattern, generating a disparity map
  45. *
  46. * @param patternImages The acquired pattern images to decode (vector<vector<Mat>>), loaded as grayscale and previously rectified.
  47. * @param disparityMap The decoding result: a CV_64F Mat at image resolution, storing the computed disparity map.
  48. * @param blackImages The all-black images needed for shadowMasks computation.
  49. * @param whiteImages The all-white images needed for shadowMasks computation.
  50. * @param flags Flags setting decoding algorithms. Default: DECODE_3D_UNDERWORLD.
  51. * NOTE: All the images must be at the same resolution.
  52. */
  53. - (BOOL)decode:(NSArray<NSArray<Mat*>*>*)patternImages disparityMap:(Mat*)disparityMap blackImages:(NSArray<Mat*>*)blackImages whiteImages:(NSArray<Mat*>*)whiteImages flags:(int)flags NS_SWIFT_NAME(decode(patternImages:disparityMap:blackImages:whiteImages:flags:));
  54. /**
  55. * Decodes the structured light pattern, generating a disparity map
  56. *
  57. * @param patternImages The acquired pattern images to decode (vector<vector<Mat>>), loaded as grayscale and previously rectified.
  58. * @param disparityMap The decoding result: a CV_64F Mat at image resolution, storing the computed disparity map.
  59. * @param blackImages The all-black images needed for shadowMasks computation.
  60. * @param whiteImages The all-white images needed for shadowMasks computation.
  61. * NOTE: All the images must be at the same resolution.
  62. */
  63. - (BOOL)decode:(NSArray<NSArray<Mat*>*>*)patternImages disparityMap:(Mat*)disparityMap blackImages:(NSArray<Mat*>*)blackImages whiteImages:(NSArray<Mat*>*)whiteImages NS_SWIFT_NAME(decode(patternImages:disparityMap:blackImages:whiteImages:));
  64. /**
  65. * Decodes the structured light pattern, generating a disparity map
  66. *
  67. * @param patternImages The acquired pattern images to decode (vector<vector<Mat>>), loaded as grayscale and previously rectified.
  68. * @param disparityMap The decoding result: a CV_64F Mat at image resolution, storing the computed disparity map.
  69. * @param blackImages The all-black images needed for shadowMasks computation.
  70. * NOTE: All the images must be at the same resolution.
  71. */
  72. - (BOOL)decode:(NSArray<NSArray<Mat*>*>*)patternImages disparityMap:(Mat*)disparityMap blackImages:(NSArray<Mat*>*)blackImages NS_SWIFT_NAME(decode(patternImages:disparityMap:blackImages:));
  73. /**
  74. * Decodes the structured light pattern, generating a disparity map
  75. *
  76. * @param patternImages The acquired pattern images to decode (vector<vector<Mat>>), loaded as grayscale and previously rectified.
  77. * @param disparityMap The decoding result: a CV_64F Mat at image resolution, storing the computed disparity map.
  78. * NOTE: All the images must be at the same resolution.
  79. */
  80. - (BOOL)decode:(NSArray<NSArray<Mat*>*>*)patternImages disparityMap:(Mat*)disparityMap NS_SWIFT_NAME(decode(patternImages:disparityMap:));
  81. @end
  82. NS_ASSUME_NONNULL_END