From ae8d37756142df40789c734f6f6e15c0311a4304 Mon Sep 17 00:00:00 2001 From: Alexey Spizhevoy Date: Fri, 20 Apr 2012 09:02:39 +0000 Subject: [PATCH] Replaced DECOMP_SVD with DECOMP_NORMAL|DECOMP_LU for speed (videostab) --- modules/videostab/src/global_motion.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/videostab/src/global_motion.cpp b/modules/videostab/src/global_motion.cpp index 56c278f..f3f4fc2 100644 --- a/modules/videostab/src/global_motion.cpp +++ b/modules/videostab/src/global_motion.cpp @@ -136,7 +136,7 @@ static Mat estimateGlobMotionLeastSquaresTranslationAndScale( } Mat_ sol; - solve(A, b, sol, DECOMP_SVD); + solve(A, b, sol, DECOMP_NORMAL | DECOMP_LU); if (rmse) *rmse = static_cast(norm(A*sol, b, NORM_L2) / sqrt(static_cast(npoints))); @@ -173,7 +173,7 @@ static Mat estimateGlobMotionLeastSquaresSimilarity( } Mat_ sol; - solve(A, b, sol, DECOMP_SVD); + solve(A, b, sol, DECOMP_NORMAL | DECOMP_LU); if (rmse) *rmse = static_cast(norm(A*sol, b, NORM_L2) / sqrt(static_cast(npoints))); @@ -212,7 +212,7 @@ static Mat estimateGlobMotionLeastSquaresAffine( } Mat_ sol; - solve(A, b, sol, DECOMP_SVD); + solve(A, b, sol, DECOMP_NORMAL | DECOMP_LU); if (rmse) *rmse = static_cast(norm(A*sol, b, NORM_L2) / sqrt(static_cast(npoints))); -- 2.7.4