added perf test for cv::goodFeaturesToTrack

This commit is contained in:
Ilya Lavrenov
2014-01-18 21:13:50 +04:00
parent 52ed6d0d27
commit 5abfd40989
6 changed files with 100 additions and 10 deletions

View File

@@ -1199,7 +1199,7 @@ void TestBase::validateMetrics()
double mean = metrics.mean * 1000.0f / metrics.frequency;
double stddev = metrics.stddev * 1000.0f / metrics.frequency;
double percents = stddev / mean * 100.f;
printf(" samples = %d, mean = %.2f, stddev = %.2f (%.1f%%)\n", (int)metrics.samples, mean, stddev, percents);
printf("[ PERFSTAT ] (samples = %d, mean = %.2f, stddev = %.2f (%.1f%%))\n", (int)metrics.samples, mean, stddev, percents);
}
else
{
@@ -1611,6 +1611,11 @@ void PrintTo(const MatType& t, ::std::ostream* os)
\*****************************************************************************************/
namespace cv {
void PrintTo(const String& str, ::std::ostream* os)
{
*os << str;
}
void PrintTo(const Size& sz, ::std::ostream* os)
{
*os << /*"Size:" << */sz.width << "x" << sz.height;