Fixed Windows build of videostab module.
This commit is contained in:
parent
2e03e6c06c
commit
7cabfc5441
@ -97,7 +97,7 @@ static Mat estimateGlobMotionLeastSquaresTranslationAndScale(
|
|||||||
solve(A, b, sol, DECOMP_SVD);
|
solve(A, b, sol, DECOMP_SVD);
|
||||||
|
|
||||||
if (rmse)
|
if (rmse)
|
||||||
*rmse = norm(A*sol, b, NORM_L2) / sqrt(npoints);
|
*rmse = norm(A*sol, b, NORM_L2) / sqrt((double)npoints);
|
||||||
|
|
||||||
Mat_<float> M = Mat::eye(3, 3, CV_32F);
|
Mat_<float> M = Mat::eye(3, 3, CV_32F);
|
||||||
M(0,0) = M(1,1) = sol(0,0);
|
M(0,0) = M(1,1) = sol(0,0);
|
||||||
@ -130,7 +130,7 @@ static Mat estimateGlobMotionLeastSquaresAffine(
|
|||||||
solve(A, b, sol, DECOMP_SVD);
|
solve(A, b, sol, DECOMP_SVD);
|
||||||
|
|
||||||
if (rmse)
|
if (rmse)
|
||||||
*rmse = norm(A*sol, b, NORM_L2) / sqrt(npoints);
|
*rmse = norm(A*sol, b, NORM_L2) / sqrt((double)npoints);
|
||||||
|
|
||||||
Mat_<float> M = Mat::eye(3, 3, CV_32F);
|
Mat_<float> M = Mat::eye(3, 3, CV_32F);
|
||||||
for (int i = 0, k = 0; i < 2; ++i)
|
for (int i = 0, k = 0; i < 2; ++i)
|
||||||
|
@ -54,7 +54,7 @@ Stabilizer::Stabilizer()
|
|||||||
{
|
{
|
||||||
setFrameSource(new NullFrameSource());
|
setFrameSource(new NullFrameSource());
|
||||||
setMotionEstimator(new PyrLkRobustMotionEstimator());
|
setMotionEstimator(new PyrLkRobustMotionEstimator());
|
||||||
setMotionFilter(new GaussianMotionFilter(15, sqrt(15)));
|
setMotionFilter(new GaussianMotionFilter(15, sqrt(15.0)));
|
||||||
setDeblurer(new NullDeblurer());
|
setDeblurer(new NullDeblurer());
|
||||||
setInpainter(new NullInpainter());
|
setInpainter(new NullInpainter());
|
||||||
setEstimateTrimRatio(true);
|
setEstimateTrimRatio(true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user