Skip to content

Commit

Permalink
Merge pull request #1 from nlw0/patch-1
Browse files Browse the repository at this point in the history
RANSAC subset sampling bug fix
  • Loading branch information
poine authored Aug 21, 2016
2 parents 2cb2d91 + d5c661c commit f93eefe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PnPsolver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ cv::Mat PnPsolver::iterate(int nIterations, bool &bNoMore, vector<bool> &vbInlie

add_correspondence(mvP3Dw[idx].x,mvP3Dw[idx].y,mvP3Dw[idx].z,mvP2D[idx].x,mvP2D[idx].y);

vAvailableIndices[idx] = vAvailableIndices.back();
vAvailableIndices[randi] = vAvailableIndices.back();
vAvailableIndices.pop_back();
}

Expand Down

0 comments on commit f93eefe

Please sign in to comment.