Opencv定义输出vector容器的point类型的点——一些理解
#include<opencv2/opencv.hpp> #include<iostream> #include"stdio.h" using namespace std; using namespace cv; int main() { vector<Point2f&g
·
- #include<opencv2/opencv.hpp>
- #include<iostream>
- #include"stdio.h"
- using namespace std;
- using namespace cv;
- int main()
- {
- vector<Point2f> vp2f;
- vp2f.push_back(Point2f(2, 3));
- cout << "【二维点向量】" << endl << vp2f << endl;
- vector<Point3f> vp3f(20);
- for (size_t i = 0; i < vp3f.size(); i++)
- {
- vp3f[i] = Point3f((float)(i + i), (float)(i * i), (float)(i + 1));
- }
- cout << "【三维点向量】" << endl << vp3f << endl;
- system("pause");
- return 0;
- }
原文链接https://blog.csdn.net/qq_23880193/article/details/47903619
更多推荐
已为社区贡献1条内容
所有评论(0)