SparseOpticalFlow.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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 SparseOpticalFlow
  17. /**
  18. * Base interface for sparse optical flow algorithms.
  19. *
  20. * Member of `Video`
  21. */
  22. CV_EXPORTS @interface SparseOpticalFlow : Algorithm
  23. #ifdef __cplusplus
  24. @property(readonly)cv::Ptr<cv::SparseOpticalFlow> nativePtrSparseOpticalFlow;
  25. #endif
  26. #ifdef __cplusplus
  27. - (instancetype)initWithNativePtr:(cv::Ptr<cv::SparseOpticalFlow>)nativePtr;
  28. + (instancetype)fromNative:(cv::Ptr<cv::SparseOpticalFlow>)nativePtr;
  29. #endif
  30. #pragma mark - Methods
  31. //
  32. // void cv::SparseOpticalFlow::calc(Mat prevImg, Mat nextImg, Mat prevPts, Mat& nextPts, Mat& status, Mat& err = cv::Mat())
  33. //
  34. /**
  35. * Calculates a sparse optical flow.
  36. *
  37. * @param prevImg First input image.
  38. * @param nextImg Second input image of the same size and the same type as prevImg.
  39. * @param prevPts Vector of 2D points for which the flow needs to be found.
  40. * @param nextPts Output vector of 2D points containing the calculated new positions of input features in the second image.
  41. * @param status Output status vector. Each element of the vector is set to 1 if the
  42. * flow for the corresponding features has been found. Otherwise, it is set to 0.
  43. * @param err Optional output vector that contains error response for each point (inverse confidence).
  44. */
  45. - (void)calc:(Mat*)prevImg nextImg:(Mat*)nextImg prevPts:(Mat*)prevPts nextPts:(Mat*)nextPts status:(Mat*)status err:(Mat*)err NS_SWIFT_NAME(calc(prevImg:nextImg:prevPts:nextPts:status:err:));
  46. /**
  47. * Calculates a sparse optical flow.
  48. *
  49. * @param prevImg First input image.
  50. * @param nextImg Second input image of the same size and the same type as prevImg.
  51. * @param prevPts Vector of 2D points for which the flow needs to be found.
  52. * @param nextPts Output vector of 2D points containing the calculated new positions of input features in the second image.
  53. * @param status Output status vector. Each element of the vector is set to 1 if the
  54. * flow for the corresponding features has been found. Otherwise, it is set to 0.
  55. */
  56. - (void)calc:(Mat*)prevImg nextImg:(Mat*)nextImg prevPts:(Mat*)prevPts nextPts:(Mat*)nextPts status:(Mat*)status NS_SWIFT_NAME(calc(prevImg:nextImg:prevPts:nextPts:status:));
  57. @end
  58. NS_ASSUME_NONNULL_END