SparseMatchInterpolator.h 1.9 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/ximgproc.hpp"
  8. #import "opencv2/ximgproc/sparse_match_interpolator.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 SparseMatchInterpolator
  17. /**
  18. * Main interface for all filters, that take sparse matches as an
  19. * input and produce a dense per-pixel matching (optical flow) as an output.
  20. *
  21. * Member of `Ximgproc`
  22. */
  23. CV_EXPORTS @interface SparseMatchInterpolator : Algorithm
  24. #ifdef __cplusplus
  25. @property(readonly)cv::Ptr<cv::ximgproc::SparseMatchInterpolator> nativePtrSparseMatchInterpolator;
  26. #endif
  27. #ifdef __cplusplus
  28. - (instancetype)initWithNativePtr:(cv::Ptr<cv::ximgproc::SparseMatchInterpolator>)nativePtr;
  29. + (instancetype)fromNative:(cv::Ptr<cv::ximgproc::SparseMatchInterpolator>)nativePtr;
  30. #endif
  31. #pragma mark - Methods
  32. //
  33. // void cv::ximgproc::SparseMatchInterpolator::interpolate(Mat from_image, Mat from_points, Mat to_image, Mat to_points, Mat& dense_flow)
  34. //
  35. /**
  36. * Interpolate input sparse matches.
  37. *
  38. * @param from_image first of the two matched images, 8-bit single-channel or three-channel.
  39. *
  40. * @param from_points points of the from_image for which there are correspondences in the
  41. * to_image (Point2f vector or Mat of depth CV_32F)
  42. *
  43. * @param to_image second of the two matched images, 8-bit single-channel or three-channel.
  44. *
  45. * @param to_points points in the to_image corresponding to from_points
  46. * (Point2f vector or Mat of depth CV_32F)
  47. *
  48. * @param dense_flow output dense matching (two-channel CV_32F image)
  49. */
  50. - (void)interpolate:(Mat*)from_image from_points:(Mat*)from_points to_image:(Mat*)to_image to_points:(Mat*)to_points dense_flow:(Mat*)dense_flow NS_SWIFT_NAME(interpolate(from_image:from_points:to_image:to_points:dense_flow:));
  51. @end
  52. NS_ASSUME_NONNULL_END