![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
opencv
yayali98
这个作者很懒,什么都没留下…
展开
-
opencv像素点获取
单通道img像素点读取 :img.at<Vec3b>(i,j)多通道图像像素点读取:Vec3b S=img.at<Vec3b>(i,j); cout<<S.val[0]<<" "<<S.val[1]<<" "<<s.val[2]<<endl;或者k=img.at<Vec3b>(i,j)[0] 实例#include<opencv2/core/core.hpp>#include<openc原创 2015-09-30 10:50:48 · 645 阅读 · 0 评论 -
多维转一维的方法
//生成彩图的值 char imgpath[256]; int* cube = new int[500 * 500 * 500 * 3]; for (int s = 0; s < 500; s++) { sprintf_s(imgpath, "D:\\cubeimg\\%d.png", s + 2150);原创 2015-11-06 14:48:08 · 604 阅读 · 0 评论 -
OpenCV的矩阵合并方法
Mat mergeRows(Mat A, Mat B) { CV_ASSERT(A.cols == B.cols&&A.type() == B.type()); int totalRows = A.rows + B.rows;Mat mergedDescriptors(totalRows, A.cols, A.type());Mat submat = mergedDescri转载 2015-10-28 08:46:40 · 1812 阅读 · 0 评论 -
角点检测,圆形检测
https://en.wikipedia.org/wiki/Hough_transform http://blog.csdn.net/xw20084898/article/details/21180729 角点检测 http://xueshu.baidu.com/s?wd=paperuri%3A%288b719ca5f86b75be4dccea6676b0cacf%29&filter=sc_lo翻译 2016-01-05 09:38:49 · 1315 阅读 · 0 评论