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:
parent
a761af58da
commit
856e9f42e8
@ -144,11 +144,13 @@ int main(int argc, char * argv[])
|
|||||||
int minInliers = 8;
|
int minInliers = 8;
|
||||||
if(mpts_1.size() >= minInliers)
|
if(mpts_1.size() >= minInliers)
|
||||||
{
|
{
|
||||||
|
time.start();
|
||||||
cv::Mat H = findHomography(mpts_1,
|
cv::Mat H = findHomography(mpts_1,
|
||||||
mpts_2,
|
mpts_2,
|
||||||
cv::RANSAC,
|
cv::RANSAC,
|
||||||
1.0,
|
1.0,
|
||||||
outlier_mask);
|
outlier_mask);
|
||||||
|
printf("Time finding homography = %d ms\n", time.restart());
|
||||||
int inliers=0, outliers=0;
|
int inliers=0, outliers=0;
|
||||||
for(int k=0; k<mpts_1.size();++k)
|
for(int k=0; k<mpts_1.size();++k)
|
||||||
{
|
{
|
||||||
@ -203,7 +205,7 @@ int main(int argc, char * argv[])
|
|||||||
sceneWidget.setWindowTitle("Scene");
|
sceneWidget.setWindowTitle("Scene");
|
||||||
sceneWidget.show();
|
sceneWidget.show();
|
||||||
int r = app.exec();
|
int r = app.exec();
|
||||||
|
printf("Closing...\n");
|
||||||
////////////////////////////
|
////////////////////////////
|
||||||
//Cleanup
|
//Cleanup
|
||||||
////////////////////////////
|
////////////////////////////
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user