SelectiveSearchSegmentationStrategy.h 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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 SelectiveSearchSegmentationStrategy
  17. /**
  18. * Strategie for the selective search segmentation algorithm
  19. * The class implements a generic stragery for the algorithm described in CITE: uijlings2013selective.
  20. *
  21. * Member of `Ximgproc`
  22. */
  23. CV_EXPORTS @interface SelectiveSearchSegmentationStrategy : Algorithm
  24. #ifdef __cplusplus
  25. @property(readonly)cv::Ptr<cv::ximgproc::segmentation::SelectiveSearchSegmentationStrategy> nativePtrSelectiveSearchSegmentationStrategy;
  26. #endif
  27. #ifdef __cplusplus
  28. - (instancetype)initWithNativePtr:(cv::Ptr<cv::ximgproc::segmentation::SelectiveSearchSegmentationStrategy>)nativePtr;
  29. + (instancetype)fromNative:(cv::Ptr<cv::ximgproc::segmentation::SelectiveSearchSegmentationStrategy>)nativePtr;
  30. #endif
  31. #pragma mark - Methods
  32. //
  33. // void cv::ximgproc::segmentation::SelectiveSearchSegmentationStrategy::setImage(Mat img, Mat regions, Mat sizes, int image_id = -1)
  34. //
  35. /**
  36. * Set a initial image, with a segmentation.
  37. * @param img The input image. Any number of channel can be provided
  38. * @param regions A segmentation of the image. The parameter must be the same size of img.
  39. * @param sizes The sizes of different regions
  40. * @param image_id If not set to -1, try to cache pre-computations. If the same set og (img, regions, size) is used, the image_id need to be the same.
  41. */
  42. - (void)setImage:(Mat*)img regions:(Mat*)regions sizes:(Mat*)sizes image_id:(int)image_id NS_SWIFT_NAME(setImage(img:regions:sizes:image_id:));
  43. /**
  44. * Set a initial image, with a segmentation.
  45. * @param img The input image. Any number of channel can be provided
  46. * @param regions A segmentation of the image. The parameter must be the same size of img.
  47. * @param sizes The sizes of different regions
  48. */
  49. - (void)setImage:(Mat*)img regions:(Mat*)regions sizes:(Mat*)sizes NS_SWIFT_NAME(setImage(img:regions:sizes:));
  50. //
  51. // float cv::ximgproc::segmentation::SelectiveSearchSegmentationStrategy::get(int r1, int r2)
  52. //
  53. /**
  54. * Return the score between two regions (between 0 and 1)
  55. * @param r1 The first region
  56. * @param r2 The second region
  57. */
  58. - (float)get:(int)r1 r2:(int)r2 NS_SWIFT_NAME(get(r1:r2:));
  59. //
  60. // void cv::ximgproc::segmentation::SelectiveSearchSegmentationStrategy::merge(int r1, int r2)
  61. //
  62. /**
  63. * Inform the strategy that two regions will be merged
  64. * @param r1 The first region
  65. * @param r2 The second region
  66. */
  67. - (void)merge:(int)r1 r2:(int)r2 NS_SWIFT_NAME(merge(r1:r2:));
  68. @end
  69. NS_ASSUME_NONNULL_END