Added homography time in the example application

git-svn-id: http://find-object.googlecode.com/svn/trunk/find_object@21 620bd6b2-0a58-f614-fd9a-1bd335dccda9
This commit is contained in:
matlabbe 2011-11-15 18:45:10 +00:00
parent a761af58da
commit 856e9f42e8

View File

@ -144,11 +144,13 @@ int main(int argc, char * argv[])
int minInliers = 8;
if(mpts_1.size() >= minInliers)
{
time.start();
cv::Mat H = findHomography(mpts_1,
mpts_2,
cv::RANSAC,
1.0,
outlier_mask);
printf("Time finding homography = %d ms\n", time.restart());
int inliers=0, outliers=0;
for(int k=0; k<mpts_1.size();++k)
{
@ -203,7 +205,7 @@ int main(int argc, char * argv[])
sceneWidget.setWindowTitle("Scene");
sceneWidget.show();
int r = app.exec();
printf("Closing...\n");
////////////////////////////
//Cleanup
////////////////////////////