I am trying to understand the code here: http://devernay.free.fr/vision/src/prosac.c
Mainly because I want to translate it into python.
Here is a snippet:
for(n_test = N, I_n_test = I_N; n_test > m; n_test--) {
// Loop invariants:
// - I_n_test is the number of inliers for the n_test first correspondences
// - n_best is the value between n_test+1 and N that maximizes the ratio
I_n_best/n_best
assert(n_test >= I_n_test);
...
...
// prepare for next loop iteration
I_n_test -= isInlier[n_test-1];
} // for(n_test ...
So what does this do I_n_test = I_N;
in the loop statement ?
Is it a stopping condition ? Shouldn't it be "=="
then ?