stitcher.stitch(imgs, pano);
stopTimer();
}
+
+ SANITY_CHECK(pano, 2);
}
PERF_TEST_P(stitch, b12, TEST_DETECTORS)
stitcher.stitch(imgs, pano);
stopTimer();
}
+
+ SANITY_CHECK(pano, 2);
}
PERF_TEST_P( match, bestOf2Nearest, TEST_DETECTORS)
detail::MatchesInfo pairwise_matches;
- declare.in(features1.descriptors, features2.descriptors)
- .iterations(100);
+ declare.in(features1.descriptors, features2.descriptors);
while(next())
{
stopTimer();
matcher->collectGarbage();
}
+
+ SANITY_CHECK_MATCHES(pairwise_matches.matches);
}
PERF_TEST_P( matchVector, bestOf2NearestVectorFeatures, testing::Combine(
stopTimer();
matcher->collectGarbage();
}
+
+
+ std::vector<DMatch>& matches = pairwise_matches[0].matches;
+ SANITY_CHECK_MATCHES(matches);
}