From 856e9f42e89032e91ad10ba432983fca708f8e7a Mon Sep 17 00:00:00 2001 From: matlabbe Date: Tue, 15 Nov 2011 18:45:10 +0000 Subject: [PATCH] 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 --- example/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/example/main.cpp b/example/main.cpp index 762aba32..cdce658f 100644 --- a/example/main.cpp +++ b/example/main.cpp @@ -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