Commit 0ba26b31 authored by Vitaly Tuzov's avatar Vitaly Tuzov

Set initial inlier metric value to -FLT_MAX to ensure correctness of first iteration.

parent 433d6c19
...@@ -835,7 +835,7 @@ void EdgeAwareInterpolatorImpl::ransacInterpolation(vector<SparseMatch>& matches ...@@ -835,7 +835,7 @@ void EdgeAwareInterpolatorImpl::ransacInterpolation(vector<SparseMatch>& matches
float* weighted_inlier_nums = new float[match_num]; float* weighted_inlier_nums = new float[match_num];
float* eps = new float[match_num]; float* eps = new float[match_num];
for(int i=0;i<match_num;i++) for(int i=0;i<match_num;i++)
weighted_inlier_nums[i] = -1E+10F; weighted_inlier_nums[i] = -std::numeric_limits<float>::max();
for(int i=0;i<ransac_num_stripes;i++) for(int i=0;i<ransac_num_stripes;i++)
rngs[i] = RNG(0); rngs[i] = RNG(0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment