Added performance tests for findCirclesGrid and solvePnP

This commit is contained in:
Andrey Kamaev
2011-09-13 07:54:19 +00:00
parent 16dd655dd3
commit 99d3ce52c5
7 changed files with 110 additions and 4 deletions

View File

@@ -472,12 +472,12 @@ void TestBase::warmup(cv::InputOutputArray a, int wtype)
{
if (a.empty()) return;
if (a.kind() != cv::_InputArray::STD_VECTOR_MAT && a.kind() != cv::_InputArray::STD_VECTOR_VECTOR)
warmup(a.getMat(), wtype);
warmup_impl(a.getMat(), wtype);
else
{
size_t total = a.total();
for (size_t i = 0; i < total; ++i)
warmup(a.getMat(i), wtype);
warmup_impl(a.getMat(i), wtype);
}
}
@@ -507,7 +507,7 @@ bool TestBase::next()
return ++currentIter < nIters && totalTime < timeLimit;
}
void TestBase::warmup(cv::Mat m, int wtype)
void TestBase::warmup_impl(cv::Mat m, int wtype)
{
switch(wtype)
{