StructuredEdgeDetection.h 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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/ximgproc.hpp"
  8. #import "opencv2/ximgproc/structured_edge_detection.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 StructuredEdgeDetection
  17. /**
  18. * Class implementing edge detection algorithm from CITE: Dollar2013 :
  19. *
  20. * Member of `Ximgproc`
  21. */
  22. CV_EXPORTS @interface StructuredEdgeDetection : Algorithm
  23. #ifdef __cplusplus
  24. @property(readonly)cv::Ptr<cv::ximgproc::StructuredEdgeDetection> nativePtrStructuredEdgeDetection;
  25. #endif
  26. #ifdef __cplusplus
  27. - (instancetype)initWithNativePtr:(cv::Ptr<cv::ximgproc::StructuredEdgeDetection>)nativePtr;
  28. + (instancetype)fromNative:(cv::Ptr<cv::ximgproc::StructuredEdgeDetection>)nativePtr;
  29. #endif
  30. #pragma mark - Methods
  31. //
  32. // void cv::ximgproc::StructuredEdgeDetection::detectEdges(Mat src, Mat& dst)
  33. //
  34. /**
  35. * The function detects edges in src and draw them to dst.
  36. *
  37. * The algorithm underlies this function is much more robust to texture presence, than common
  38. * approaches, e.g. Sobel
  39. * @param src source image (RGB, float, in [0;1]) to detect edges
  40. * @param dst destination image (grayscale, float, in [0;1]) where edges are drawn
  41. * @see `Sobel`, `Canny`
  42. */
  43. - (void)detectEdges:(Mat*)src dst:(Mat*)dst NS_SWIFT_NAME(detectEdges(src:dst:));
  44. //
  45. // void cv::ximgproc::StructuredEdgeDetection::computeOrientation(Mat src, Mat& dst)
  46. //
  47. /**
  48. * The function computes orientation from edge image.
  49. *
  50. * @param src edge image.
  51. * @param dst orientation image.
  52. */
  53. - (void)computeOrientation:(Mat*)src dst:(Mat*)dst NS_SWIFT_NAME(computeOrientation(src:dst:));
  54. //
  55. // void cv::ximgproc::StructuredEdgeDetection::edgesNms(Mat edge_image, Mat orientation_image, Mat& dst, int r = 2, int s = 0, float m = 1, bool isParallel = true)
  56. //
  57. /**
  58. * The function edgenms in edge image and suppress edges where edge is stronger in orthogonal direction.
  59. *
  60. * @param edge_image edge image from detectEdges function.
  61. * @param orientation_image orientation image from computeOrientation function.
  62. * @param dst suppressed image (grayscale, float, in [0;1])
  63. * @param r radius for NMS suppression.
  64. * @param s radius for boundary suppression.
  65. * @param m multiplier for conservative suppression.
  66. * @param isParallel enables/disables parallel computing.
  67. */
  68. - (void)edgesNms:(Mat*)edge_image orientation_image:(Mat*)orientation_image dst:(Mat*)dst r:(int)r s:(int)s m:(float)m isParallel:(BOOL)isParallel NS_SWIFT_NAME(edgesNms(edge_image:orientation_image:dst:r:s:m:isParallel:));
  69. /**
  70. * The function edgenms in edge image and suppress edges where edge is stronger in orthogonal direction.
  71. *
  72. * @param edge_image edge image from detectEdges function.
  73. * @param orientation_image orientation image from computeOrientation function.
  74. * @param dst suppressed image (grayscale, float, in [0;1])
  75. * @param r radius for NMS suppression.
  76. * @param s radius for boundary suppression.
  77. * @param m multiplier for conservative suppression.
  78. */
  79. - (void)edgesNms:(Mat*)edge_image orientation_image:(Mat*)orientation_image dst:(Mat*)dst r:(int)r s:(int)s m:(float)m NS_SWIFT_NAME(edgesNms(edge_image:orientation_image:dst:r:s:m:));
  80. /**
  81. * The function edgenms in edge image and suppress edges where edge is stronger in orthogonal direction.
  82. *
  83. * @param edge_image edge image from detectEdges function.
  84. * @param orientation_image orientation image from computeOrientation function.
  85. * @param dst suppressed image (grayscale, float, in [0;1])
  86. * @param r radius for NMS suppression.
  87. * @param s radius for boundary suppression.
  88. */
  89. - (void)edgesNms:(Mat*)edge_image orientation_image:(Mat*)orientation_image dst:(Mat*)dst r:(int)r s:(int)s NS_SWIFT_NAME(edgesNms(edge_image:orientation_image:dst:r:s:));
  90. /**
  91. * The function edgenms in edge image and suppress edges where edge is stronger in orthogonal direction.
  92. *
  93. * @param edge_image edge image from detectEdges function.
  94. * @param orientation_image orientation image from computeOrientation function.
  95. * @param dst suppressed image (grayscale, float, in [0;1])
  96. * @param r radius for NMS suppression.
  97. */
  98. - (void)edgesNms:(Mat*)edge_image orientation_image:(Mat*)orientation_image dst:(Mat*)dst r:(int)r NS_SWIFT_NAME(edgesNms(edge_image:orientation_image:dst:r:));
  99. /**
  100. * The function edgenms in edge image and suppress edges where edge is stronger in orthogonal direction.
  101. *
  102. * @param edge_image edge image from detectEdges function.
  103. * @param orientation_image orientation image from computeOrientation function.
  104. * @param dst suppressed image (grayscale, float, in [0;1])
  105. */
  106. - (void)edgesNms:(Mat*)edge_image orientation_image:(Mat*)orientation_image dst:(Mat*)dst NS_SWIFT_NAME(edgesNms(edge_image:orientation_image:dst:));
  107. @end
  108. NS_ASSUME_NONNULL_END