cv::Point3i p; //创建三维点对象 cv::Point2i p1; //创建二维点对象 /* i 表示坐标点的数据类型 i是32-bit integer f是32-bit floating-point number b是unsigned character s是short integer d是64-bit floating-point number */ cv::Point3i p2(10,20,40); cv::Point3f p3(p2); //拷贝构造 cv::Point3i p4(1,2,3); qDebug()<<p3.x<<" "<<p3.y<<" "<<p3.z; //成员访问