GraphSegmentation.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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/segmentation.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 GraphSegmentation
  17. /**
  18. * Graph Based Segmentation Algorithm.
  19. * The class implements the algorithm described in CITE: PFF2004 .
  20. *
  21. * Member of `Ximgproc`
  22. */
  23. CV_EXPORTS @interface GraphSegmentation : Algorithm
  24. #ifdef __cplusplus
  25. @property(readonly)cv::Ptr<cv::ximgproc::segmentation::GraphSegmentation> nativePtrGraphSegmentation;
  26. #endif
  27. #ifdef __cplusplus
  28. - (instancetype)initWithNativePtr:(cv::Ptr<cv::ximgproc::segmentation::GraphSegmentation>)nativePtr;
  29. + (instancetype)fromNative:(cv::Ptr<cv::ximgproc::segmentation::GraphSegmentation>)nativePtr;
  30. #endif
  31. #pragma mark - Methods
  32. //
  33. // void cv::ximgproc::segmentation::GraphSegmentation::processImage(Mat src, Mat& dst)
  34. //
  35. /**
  36. * Segment an image and store output in dst
  37. * @param src The input image. Any number of channel (1 (Eg: Gray), 3 (Eg: RGB), 4 (Eg: RGB-D)) can be provided
  38. * @param dst The output segmentation. It's a CV_32SC1 Mat with the same number of cols and rows as input image, with an unique, sequential, id for each pixel.
  39. */
  40. - (void)processImage:(Mat*)src dst:(Mat*)dst NS_SWIFT_NAME(processImage(src:dst:));
  41. //
  42. // void cv::ximgproc::segmentation::GraphSegmentation::setSigma(double sigma)
  43. //
  44. - (void)setSigma:(double)sigma NS_SWIFT_NAME(setSigma(sigma:));
  45. //
  46. // double cv::ximgproc::segmentation::GraphSegmentation::getSigma()
  47. //
  48. - (double)getSigma NS_SWIFT_NAME(getSigma());
  49. //
  50. // void cv::ximgproc::segmentation::GraphSegmentation::setK(float k)
  51. //
  52. - (void)setK:(float)k NS_SWIFT_NAME(setK(k:));
  53. //
  54. // float cv::ximgproc::segmentation::GraphSegmentation::getK()
  55. //
  56. - (float)getK NS_SWIFT_NAME(getK());
  57. //
  58. // void cv::ximgproc::segmentation::GraphSegmentation::setMinSize(int min_size)
  59. //
  60. - (void)setMinSize:(int)min_size NS_SWIFT_NAME(setMinSize(min_size:));
  61. //
  62. // int cv::ximgproc::segmentation::GraphSegmentation::getMinSize()
  63. //
  64. - (int)getMinSize NS_SWIFT_NAME(getMinSize());
  65. @end
  66. NS_ASSUME_NONNULL_END