Added WITH_CLP flag support into cmake scripts.

This commit is contained in:
Alexey Spizhevoy
2012-04-11 12:34:30 +00:00
parent b5a1bad7a4
commit ae839df55d
5 changed files with 65 additions and 1 deletions

View File

@@ -45,6 +45,10 @@
#include "opencv2/videostab/global_motion.hpp"
#include "opencv2/videostab/ring_buffer.hpp"
#ifdef HAVE_CLP
#include "coin/ClpSimplex.hpp"
#endif
using namespace std;
namespace cv
@@ -254,5 +258,27 @@ float estimateOptimalTrimRatio(const Mat &M, Size size)
return r;
}
LpMotionStabilizer::LpMotionStabilizer(MotionModel model)
{
setMotionModel(model);
}
#ifndef HAVE_CLP
void LpMotionStabilizer::stabilize(int, const vector<Mat>&, pair<int,int>, Mat*) const
{
CV_Error(CV_StsError, "The library is built without Clp support");
}
#else
void LpMotionStabilizer::stabilize(
int size, const vector<Mat> &motions, pair<int,int> range,
Mat *stabilizationMotions) const
{
// TODO implement
CV_Error(CV_StsNotImplemented, "LpMotionStabilizer::stabilize");
}
#endif
} // namespace videostab
} // namespace cv