Algorithm.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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/core.hpp"
  8. #else
  9. #define CV_EXPORTS
  10. #endif
  11. #import <Foundation/Foundation.h>
  12. NS_ASSUME_NONNULL_BEGIN
  13. // C++: class Algorithm
  14. /**
  15. * This is a base class for all more or less complex algorithms in OpenCV
  16. *
  17. * especially for classes of algorithms, for which there can be multiple implementations. The examples
  18. * are stereo correspondence (for which there are algorithms like block matching, semi-global block
  19. * matching, graph-cut etc.), background subtraction (which can be done using mixture-of-gaussians
  20. * models, codebook-based algorithm etc.), optical flow (block matching, Lucas-Kanade, Horn-Schunck
  21. * etc.).
  22. *
  23. * Here is example of SimpleBlobDetector use in your application via Algorithm interface:
  24. * SNIPPET: snippets/core_various.cpp Algorithm
  25. *
  26. * Member of `Core`
  27. */
  28. CV_EXPORTS @interface Algorithm : NSObject
  29. #ifdef __cplusplus
  30. @property(readonly)cv::Ptr<cv::Algorithm> nativePtr;
  31. #endif
  32. #ifdef __cplusplus
  33. - (instancetype)initWithNativePtr:(cv::Ptr<cv::Algorithm>)nativePtr;
  34. + (instancetype)fromNative:(cv::Ptr<cv::Algorithm>)nativePtr;
  35. #endif
  36. #pragma mark - Methods
  37. //
  38. // void cv::Algorithm::clear()
  39. //
  40. /**
  41. * Clears the algorithm state
  42. */
  43. - (void)clear NS_SWIFT_NAME(clear());
  44. //
  45. // void cv::Algorithm::write(Ptr_FileStorage fs, String name = String())
  46. //
  47. // Unknown type 'Ptr_FileStorage' (I), skipping the function
  48. //
  49. // void cv::Algorithm::read(FileNode fn)
  50. //
  51. // Unknown type 'FileNode' (I), skipping the function
  52. //
  53. // bool cv::Algorithm::empty()
  54. //
  55. /**
  56. * Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
  57. */
  58. - (BOOL)empty NS_SWIFT_NAME(empty());
  59. //
  60. // void cv::Algorithm::save(String filename)
  61. //
  62. /**
  63. * Saves the algorithm to a file.
  64. * In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
  65. */
  66. - (void)save:(NSString*)filename NS_SWIFT_NAME(save(filename:));
  67. //
  68. // String cv::Algorithm::getDefaultName()
  69. //
  70. /**
  71. * Returns the algorithm string identifier.
  72. * This string is used as top level xml/yml node tag when the object is saved to a file or string.
  73. */
  74. - (NSString*)getDefaultName NS_SWIFT_NAME(getDefaultName());
  75. @end
  76. NS_ASSUME_NONNULL_END