一.简介
OpenCV提供了一些工具方法函数来辅助完成图像运算
二.时间相关
1.getTickCount()和getTickFrequency()
double tTime;
tTime = (double)getTickCount();
const int nTimes = 100;
for (int i = 0; i < nTimes; ++i)
{
..测试代码
}
tTime = 1000 * ((double)getTickCount() - tTime) / getTickFrequency();
tTime /= nTime;
std::cout << tTime << std::endl;