summaryrefslogtreecommitdiffstats
path: root/jni/feature_stab/db_vlvm
diff options
context:
space:
mode:
Diffstat (limited to 'jni/feature_stab/db_vlvm')
-rw-r--r--jni/feature_stab/db_vlvm/db_rob_image_homography.cpp3
-rw-r--r--jni/feature_stab/db_vlvm/db_utilities_linalg.cpp3
2 files changed, 4 insertions, 2 deletions
diff --git a/jni/feature_stab/db_vlvm/db_rob_image_homography.cpp b/jni/feature_stab/db_vlvm/db_rob_image_homography.cpp
index f40bef9..82dec0c 100644
--- a/jni/feature_stab/db_vlvm/db_rob_image_homography.cpp
+++ b/jni/feature_stab/db_vlvm/db_rob_image_homography.cpp
@@ -567,7 +567,8 @@ inline void db_ImageHomographyUpdateGeneric(double H_p_dx[9],double H[9],double
void db_RobCamRotation_Polish_Generic(double H[9],int point_count,int homography_type,double *x_i,double *xp_i,double one_over_scale2,
int max_iterations,double improvement_requirement)
{
- int i,update,stop,frozen_coord,n;
+ int i,update,stop,n;
+ int frozen_coord = 0;
double lambda,cost,current_cost;
double JtJ[72],min_Jtf[9],dx[8],H_p_dx[9];
double *JtJ_ref[9],d[8];
diff --git a/jni/feature_stab/db_vlvm/db_utilities_linalg.cpp b/jni/feature_stab/db_vlvm/db_utilities_linalg.cpp
index 4147dce..8f68b30 100644
--- a/jni/feature_stab/db_vlvm/db_utilities_linalg.cpp
+++ b/jni/feature_stab/db_vlvm/db_utilities_linalg.cpp
@@ -80,7 +80,8 @@ subdiagonal part in A and diagonal in d, which is n-dimensional*/
void db_CholeskyDecompSeparateDiagonal(double **A,double *d,int n)
{
int i,j,k;
- double s,temp;
+ double s;
+ double temp = 0.0;
for(i=0;i<n;i++) for(j=i;j<n;j++)
{