DenseOpticalFlow.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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/video.hpp"
  8. #import "opencv2/video/tracking.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 DenseOpticalFlow
  17. /**
  18. * Base class for dense optical flow algorithms
  19. *
  20. * Member of `Video`
  21. */
  22. CV_EXPORTS @interface DenseOpticalFlow : Algorithm
  23. #ifdef __cplusplus
  24. @property(readonly)cv::Ptr<cv::DenseOpticalFlow> nativePtrDenseOpticalFlow;
  25. #endif
  26. #ifdef __cplusplus
  27. - (instancetype)initWithNativePtr:(cv::Ptr<cv::DenseOpticalFlow>)nativePtr;
  28. + (instancetype)fromNative:(cv::Ptr<cv::DenseOpticalFlow>)nativePtr;
  29. #endif
  30. #pragma mark - Methods
  31. //
  32. // void cv::DenseOpticalFlow::calc(Mat I0, Mat I1, Mat& flow)
  33. //
  34. /**
  35. * Calculates an optical flow.
  36. *
  37. * @param I0 first 8-bit single-channel input image.
  38. * @param I1 second input image of the same size and the same type as prev.
  39. * @param flow computed flow image that has the same size as prev and type CV_32FC2.
  40. */
  41. - (void)calc:(Mat*)I0 I1:(Mat*)I1 flow:(Mat*)flow NS_SWIFT_NAME(calc(I0:I1:flow:));
  42. //
  43. // void cv::DenseOpticalFlow::collectGarbage()
  44. //
  45. /**
  46. * Releases all inner buffers.
  47. */
  48. - (void)collectGarbage NS_SWIFT_NAME(collectGarbage());
  49. @end
  50. NS_ASSUME_NONNULL_END