mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
Fixed Android build of new videostab module
This commit is contained in:
@@ -72,7 +72,7 @@ private:
|
||||
float dist;
|
||||
int x, y;
|
||||
|
||||
DXY() {}
|
||||
DXY() : dist(0), x(0), y(0) {}
|
||||
DXY(float dist, int x, int y) : dist(dist), x(x), y(y) {}
|
||||
bool operator <(const DXY &dxy) const { return dist < dxy.dist; }
|
||||
};
|
||||
|
||||
@@ -44,7 +44,11 @@
|
||||
#define __OPENCV_VIDEOSTAB_OPTICAL_FLOW_HPP__
|
||||
|
||||
#include "opencv2/core/core.hpp"
|
||||
#include "opencv2/gpu/gpu.hpp"
|
||||
#include "opencv2/opencv_modules.hpp"
|
||||
|
||||
#if HAVE_OPENCV_GPU
|
||||
# include "opencv2/gpu/gpu.hpp"
|
||||
#endif
|
||||
|
||||
namespace cv
|
||||
{
|
||||
@@ -94,6 +98,7 @@ public:
|
||||
OutputArray status, OutputArray errors);
|
||||
};
|
||||
|
||||
#if HAVE_OPENCV_GPU
|
||||
class DensePyrLkOptFlowEstimatorGpu
|
||||
: public PyrLkOptFlowEstimatorBase, public IDenseOptFlowEstimator
|
||||
{
|
||||
@@ -107,6 +112,7 @@ private:
|
||||
gpu::PyrLKOpticalFlow optFlowEstimator_;
|
||||
gpu::GpuMat frame0_, frame1_, flowX_, flowY_, errors_;
|
||||
};
|
||||
#endif
|
||||
|
||||
} // namespace videostab
|
||||
} // namespace cv
|
||||
|
||||
Reference in New Issue
Block a user