//13.Point类
#include <opencv2/opencv.hpp>
using namespace cv;
using namespace std;
int main(){
Point2f p1(6,2);//二维点的定义和输出
cout<<"p1="<<p1<<endl;
Point3f p2(1,2,3);//三维点的定义和输出
cout<<"p2="<<p2<<endl;
vector<float> v;
v.push_back(4);
v.push_back(5);
v.push_back(6);
cout<<"vector="<<Mat(v);//因为vector是基于Mat的
cout<<endl;
vector<Point2f> points(20);
for(size_t i=0;i<points.size();++i)
points[i]=Point2f(float(i*5),float(i%7));
cout<<points<<";";
return 0;
}