![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
基础知识
Alex_Dong
这个作者很懒,什么都没留下…
展开
-
C++中得到随机数
为了得到在区间 [0,m) 上的随机整数int getRandom(int m){srand(time(0));return rand() % m;}time()的头文件是 #includesrand(), rand() 的头文件是 #include原创 2015-01-23 21:47:55 · 662 阅读 · 0 评论 -
平行线判断函数+求平行线之间的距离
// 得到直线的tan斜率double GetTanOfLine( LINE line ){ double x_dis = line.pt0.x - line.pt1.x; if ( x_dis == 0.0 ) return 10e9; return (line.pt0.y - line.pt1.y) / x_dis;}// 得到两条平行线之间的距离dou原创 2015-03-25 14:11:26 · 6256 阅读 · 0 评论 -
提取某种颜色的像素点
// 洗刷掉某种颜色void WashOffTheColor( IplImage* src ){ if ( src == NULL ) { return ; } const int width = src->width; const int height = src->heigh原创 2015-03-26 20:58:03 · 1455 阅读 · 0 评论 -
opencv找轮廓线并绘制轮廓线
IplImage* bin = cvCloneImage( gray );cvAdaptiveThreshold( gray, bin, 255, CV_ADAPTIVE_THRESH_MEAN_C, 0, 101, 5 );cvDilate( bin, bin, 0, 1 );CvMemStorage* storage = cvCreateMemStorage(0);CvContou原创 2015-03-25 17:16:39 · 3197 阅读 · 0 评论 -
求算法执行时间的方法
double t = (double)cvGetTickCount();ProcessOneSample(); // 算法函数t = (double)cvGetTickCount() - t;//相减为算法执行的时间printf( "detection time = %g ms\n", t/((double)cvGetTickFrequency()*1000.) );原创 2015-04-02 02:20:55 · 1260 阅读 · 0 评论 -
《云计算核心技术剖析》学习笔记
第三章 Google App Engine 总体而言,Datastore在设计理念上和传统的关系型数据库有很大的不同,所以它在反应速度和数据的写方面不是最优的,但是现在Web应用以数据读为主,而且需要通过简单的扩展来支持海量数据,而这两点却是Datastore所擅长的,所以Datastore非常适合支撑Web应用。原创 2016-02-09 22:53:56 · 541 阅读 · 0 评论 -
《研磨设计模式》读书笔记
《研磨设计模式》——陈臣.王斌.原创 2017-05-13 18:31:34 · 371 阅读 · 0 评论