码迷,mamicode.com
首页 > 其他好文 > 详细

OpenCV2:总结篇 工具方法函数

时间:2019-06-24 15:10:45      阅读:84      评论:0      收藏:0      [点我收藏+]

标签:cpp   div   int   count()   frequency   open   for   完成   nbsp   

一.简介

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;

 

OpenCV2:总结篇 工具方法函数

标签:cpp   div   int   count()   frequency   open   for   完成   nbsp   

原文地址:https://www.cnblogs.com/k5bg/p/11077081.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!