123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- #ifndef __OPENCV_SPARSEMATCHINTERPOLATOR_HPP__
- #define __OPENCV_SPARSEMATCHINTERPOLATOR_HPP__
- #ifdef __cplusplus
- #include <opencv2/core.hpp>
- namespace cv {
- namespace ximgproc {
- class CV_EXPORTS_W SparseMatchInterpolator : public Algorithm
- {
- public:
-
- CV_WRAP virtual void interpolate(InputArray from_image, InputArray from_points,
- InputArray to_image , InputArray to_points,
- OutputArray dense_flow) = 0;
- };
- class CV_EXPORTS_W EdgeAwareInterpolator : public SparseMatchInterpolator
- {
- public:
-
- CV_WRAP virtual void setK(int _k) = 0;
-
- CV_WRAP virtual int getK() = 0;
-
- CV_WRAP virtual void setSigma(float _sigma) = 0;
-
- CV_WRAP virtual float getSigma() = 0;
-
- CV_WRAP virtual void setLambda(float _lambda) = 0;
-
- CV_WRAP virtual float getLambda() = 0;
-
- CV_WRAP virtual void setUsePostProcessing(bool _use_post_proc) = 0;
-
- CV_WRAP virtual bool getUsePostProcessing() = 0;
-
- CV_WRAP virtual void setFGSLambda(float _lambda) = 0;
-
- CV_WRAP virtual float getFGSLambda() = 0;
-
- CV_WRAP virtual void setFGSSigma(float _sigma) = 0;
-
- CV_WRAP virtual float getFGSSigma() = 0;
- };
- CV_EXPORTS_W
- Ptr<EdgeAwareInterpolator> createEdgeAwareInterpolator();
- }
- }
- #endif
- #endif
|