#include<iostream>
#include<opencv2\opencv.hpp>
using namespace std;
using namespace cv;
int main()
{
Point2f p(6, 2);
cout << "【二维点】p=" << p << ";\n" << endl;//【1】定义和输出二维点
Point3f p3f(8, 2, 0);
cout << "【三维点】p3f=" << p3f << ";\n" << endl;//【2】定义和输出三维点
vector<float>v;
v.push_back(3);
v.push_back(5);
v.push_back(7);
cout << "【基于Mat的Vec】shortvec=" << Mat(v) << ";\n" << endl;//【3】定义和输出基于Mat的std::vector
vector<Point2f>points(20);
for (size_t i = 0; i < points.size(); ++i)
points[i] = Point2f((float)(i * 5), (float)(i % 7));
cout << "【二维点向量】points=" << points << ";";//【4】定义和输出Std::vector点
}