- 博客(6)
- 收藏
- 关注
原创 Leetcode - Valid Number
https://leetcode.com/problems/valid-number/Validate if a given string is numeric.Some examples:"0" => true" 0.1 " => true"abc" => false"1 a" => false"2e10" => trueNote: It
2015-03-15 10:39:08 608
原创 A common misunderstanding about list.append() for newbies-----> like me
Well,list.append() is to append an element to the end of a listHowever, if this element is a list too, append() will not copy this list to the newly generated list, but simply makes a reference to t
2013-04-13 22:58:57 763
原创 Convert HTML Table to an Array in Python
It's been quite a long time since my last update.Currently, I'm working as an intern in one of the GPS. Well, life now is quite different from what was in school.My first task is to extract some i
2013-04-07 23:17:49 2048
原创 OpenCV(2.4.4及之前版本)polyfit函数存在潜在的bug
1.Problem description前几天做tracking点的polyfit时,发现OpenCV在contrib模块下有社区成员贡献的polyfit函数,很高兴地觉得不用自己写代码了,结果那一整个下午和晚上都花在寻找bug上了(因为polyfit的曲线和MATLAB拟合出来的相差非常大,而且非常明显原来自带的polyfit函数有bug,见图1)。图 1. 默认的polyf
2013-03-19 22:32:42 3568
原创 OpenCV 将矩阵写入Txt文件心得
前几天验证算法的时候,为了提高验证速度,减少调试时间,打算将OpenCV中处理过程中的数据保存至Txt里面,供MATLAB读取。这是之前看到的一篇OpenCV下读写txt的文档(原帖地址:http://blog.csdn.net/chenyusiyuan/article/details/7974378),但是这种写法的前提是预先知道Mat或者Vector数据结构中的元素类型(比如int,flo
2013-03-19 16:23:36 6683
原创 OpenCV中parallel_for 和 parallel_for_学习笔记
OpenCV 从2.4.3开始加入了并行计算的函数parallel_for和parallel_for_(更准确地讲,parallel_for以前就存在于tbb模块中,但是OpenCV官网将其列在2.4.3.的New Features中,应该是重新改写过的)。2.4.3中自带的calcOpticalFlowPyrLK函数也用parallel_for重写过了,之前我一直认为parallel_for
2013-03-17 02:09:10 15692
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人