摘要: Given an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1, b1), (a2, b2), ..., (an, bn) which makes sum of 阅读全文
posted @ 2017-08-02 16:32 两猿社 阅读(98) 评论(0) 推荐(0) 编辑
摘要: In MATLAB, there is a very useful function called 'reshape', which can reshape a matrix into a new one with different size but keep its original data. 阅读全文
posted @ 2017-08-02 14:43 两猿社 阅读(140) 评论(0) 推荐(0) 编辑
摘要: opencv3.1属于阉割版的opencv,很多以前的函数被改版,甚至删除掉,比如circle函数。 Mat初始化 Mat sampleMat = (Mat_<float>(1, 2) << j,i);是Mat的一种初始化方式,将每次循环的i,j输入进Mat,然后初始化。 .at<Vec3b>(i, 阅读全文
posted @ 2017-08-02 09:42 两猿社 阅读(3301) 评论(0) 推荐(1) 编辑