HistogramPhaseUnwrapping.h 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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/phase_unwrapping.hpp"
  8. #import "phase_unwrapping/histogramphaseunwrapping.hpp"
  9. #import "opencv2/phase_unwrapping/histogramphaseunwrapping.hpp"
  10. #else
  11. #define CV_EXPORTS
  12. #endif
  13. #import <Foundation/Foundation.h>
  14. #import "PhaseUnwrapping.h"
  15. @class HistogramPhaseUnwrappingParams;
  16. @class Mat;
  17. NS_ASSUME_NONNULL_BEGIN
  18. // C++: class HistogramPhaseUnwrapping
  19. /**
  20. * Class implementing two-dimensional phase unwrapping based on CITE: histogramUnwrapping
  21. * This algorithm belongs to the quality-guided phase unwrapping methods.
  22. * First, it computes a reliability map from second differences between a pixel and its eight neighbours.
  23. * Reliability values lie between 0 and 16*pi*pi. Then, this reliability map is used to compute
  24. * the reliabilities of "edges". An edge is an entity defined by two pixels that are connected
  25. * horizontally or vertically. Its reliability is found by adding the the reliabilities of the
  26. * two pixels connected through it. Edges are sorted in a histogram based on their reliability values.
  27. * This histogram is then used to unwrap pixels, starting from the highest quality pixel.
  28. *
  29. * The wrapped phase map and the unwrapped result are stored in CV_32FC1 Mat.
  30. *
  31. * Member of `Phase_unwrapping`
  32. */
  33. CV_EXPORTS @interface HistogramPhaseUnwrapping : PhaseUnwrapping
  34. #ifdef __cplusplus
  35. @property(readonly)cv::Ptr<cv::phase_unwrapping::HistogramPhaseUnwrapping> nativePtrHistogramPhaseUnwrapping;
  36. #endif
  37. #ifdef __cplusplus
  38. - (instancetype)initWithNativePtr:(cv::Ptr<cv::phase_unwrapping::HistogramPhaseUnwrapping>)nativePtr;
  39. + (instancetype)fromNative:(cv::Ptr<cv::phase_unwrapping::HistogramPhaseUnwrapping>)nativePtr;
  40. #endif
  41. #pragma mark - Methods
  42. //
  43. // static Ptr_HistogramPhaseUnwrapping cv::phase_unwrapping::HistogramPhaseUnwrapping::create(HistogramPhaseUnwrapping_Params parameters = HistogramPhaseUnwrapping::Params())
  44. //
  45. /**
  46. * Constructor
  47. *
  48. * @param parameters HistogramPhaseUnwrapping parameters HistogramPhaseUnwrapping::Params: width,height of the phase map and histogram characteristics.
  49. */
  50. + (HistogramPhaseUnwrapping*)create:(HistogramPhaseUnwrappingParams*)parameters NS_SWIFT_NAME(create(parameters:));
  51. /**
  52. * Constructor
  53. *
  54. */
  55. + (HistogramPhaseUnwrapping*)create NS_SWIFT_NAME(create());
  56. //
  57. // void cv::phase_unwrapping::HistogramPhaseUnwrapping::getInverseReliabilityMap(Mat& reliabilityMap)
  58. //
  59. /**
  60. * Get the reliability map computed from the wrapped phase map.
  61. *
  62. * @param reliabilityMap Image where the reliability map is stored.
  63. */
  64. - (void)getInverseReliabilityMap:(Mat*)reliabilityMap NS_SWIFT_NAME(getInverseReliabilityMap(reliabilityMap:));
  65. @end
  66. NS_ASSUME_NONNULL_END