Point_<float> <--> Point2f
Point_<int> <--> Point2i <--> Point
Point表示二維座標系下的點ios
#include <iostream> #include <opencv2/opencv.hpp> using namespace cv; using namespace std; int main() { system("chcp 65001"); //控制檯中文支持 Point2i point; point.x = 10; point.y = 8; Point point2 = Point(10, 8); return 0; }