官术网_书友最值得收藏!

Point object type

Another very common class template is Point. This class defines a 2D point specified by its coordinates x and y.

Like Point, there is a Point3 template class for 3D point support.

Like the Vec class, OpenCV defines the following Point aliases for our convenience:

typedef Point_<int> Point2i; 
typedef Point2i Point; 
typedef Point_<float> Point2f; 
typedef Point_<double> Point2d; 
 The following operators are defined for points:
pt1 = pt2 + pt3;
pt1 = pt2 - pt3; pt1 = pt2 * a; pt1 = a * pt2; pt1 = pt2 / a; pt1 += pt2; pt1 -= pt2; pt1 *= a; pt1 /= a; double value = norm(pt); // L2 norm pt1 == pt2; pt1 != pt2;
主站蜘蛛池模板: 高唐县| 金坛市| 壤塘县| 洛南县| 青岛市| 略阳县| 定州市| 南开区| 云霄县| 静宁县| 永川市| 页游| 南乐县| 屏边| 云梦县| 堆龙德庆县| 蕲春县| 会理县| 东乡族自治县| 孝感市| 岳普湖县| 陇南市| 石台县| 册亨县| 邢台市| 砀山县| 商城县| 容城县| 永昌县| 临高县| 宾川县| 大化| 修文县| 绍兴市| 鄂尔多斯市| 沙洋县| 子长县| 三门峡市| 长葛市| 吉木萨尔县| 乐至县|