Skip to content

Commit

Permalink
mapping change for opencv to oxford abc
Browse files Browse the repository at this point in the history
  • Loading branch information
kmyi committed Jan 6, 2016
1 parent 62ca63b commit 2bdd835
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,11 @@ main(int argc, char *argv[]) {
for(int i=0; i < keypts.size(); ++i){
ofs_keypoints << std::setprecision(10) << keypts[i].pt.x << " ";
ofs_keypoints << std::setprecision(10) << keypts[i].pt.y << " ";
ofs_keypoints << std::setprecision(10) << 1.0 / (keypts[i].size*keypts[i].size) << " ";
ofs_keypoints << std::setprecision(10) << 1.0 / (0.5*keypts[i].size*0.5*keypts[i].size) << " "; // 0.5 since
// opencv uses
// diameter
ofs_keypoints << 0 << " ";
ofs_keypoints << std::setprecision(10) << 1.0 / (keypts[i].size*keypts[i].size) ;
ofs_keypoints << std::setprecision(10) << 1.0 / (0.5*keypts[i].size*0.5*keypts[i].size) ;
ofs_keypoints << endl;
ofs_score << std::setprecision(10) << keypts[i].response << endl;
}
Expand Down

0 comments on commit 2bdd835

Please sign in to comment.