mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
Move C API of opencv_calib3d to separate file
This commit is contained in:
@@ -471,7 +471,7 @@ Mat MotionEstimatorRansacL2::estimate(InputArray points0, InputArray points1, bo
|
||||
else
|
||||
{
|
||||
std::vector<uchar> mask;
|
||||
M = findHomography(points0, points1, mask, CV_LMEDS);
|
||||
M = findHomography(points0, points1, mask, LMEDS);
|
||||
for (int i = 0; i < npoints; ++i)
|
||||
if (mask[i]) ninliers++;
|
||||
}
|
||||
@@ -504,7 +504,7 @@ Mat MotionEstimatorL1::estimate(InputArray points0, InputArray points1, bool *ok
|
||||
|
||||
#ifndef HAVE_CLP
|
||||
|
||||
CV_Error(CV_StsError, "The library is built without Clp support");
|
||||
CV_Error(Error::StsError, "The library is built without Clp support");
|
||||
if (ok) *ok = false;
|
||||
return Mat::eye(3, 3, CV_32F);
|
||||
|
||||
|
||||
@@ -326,7 +326,7 @@ MotionInpainter::MotionInpainter()
|
||||
#ifdef HAVE_OPENCV_GPU
|
||||
setOptFlowEstimator(new DensePyrLkOptFlowEstimatorGpu());
|
||||
#else
|
||||
CV_Error(CV_StsNotImplemented, "Current implementation of MotionInpainter requires GPU");
|
||||
CV_Error(Error::StsNotImplemented, "Current implementation of MotionInpainter requires GPU");
|
||||
#endif
|
||||
setFlowErrorThreshold(1e-4f);
|
||||
setDistThreshold(5.f);
|
||||
|
||||
@@ -134,7 +134,7 @@ LpMotionStabilizer::LpMotionStabilizer(MotionModel model)
|
||||
|
||||
void LpMotionStabilizer::stabilize(int, const std::vector<Mat>&, std::pair<int,int>, Mat*)
|
||||
{
|
||||
CV_Error(CV_StsError, "The library is built without Clp support");
|
||||
CV_Error(Error::StsError, "The library is built without Clp support");
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user