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

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;
主站蜘蛛池模板: 青川县| 江陵县| 唐山市| 柞水县| 丰顺县| 连南| 开平市| 固安县| 霍山县| 承德市| 乌鲁木齐县| 株洲市| 科技| 威海市| 宣威市| 区。| 莎车县| 密山市| 修武县| 平邑县| 克什克腾旗| 旌德县| 济南市| 永康市| 翼城县| 兰坪| 福贡县| 南溪县| 仙游县| 潞城市| 昌吉市| 琼海市| 太康县| 巢湖市| 阿鲁科尔沁旗| 天峻县| 宜宾县| 晋州市| 屏山县| 辽中县| 宜良县|