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

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;
主站蜘蛛池模板: 临海市| 普宁市| 交城县| 项城市| 长阳| 共和县| 海口市| 肇东市| 徐汇区| 祁连县| 浏阳市| 轮台县| 顺昌县| 柞水县| 高密市| 枣强县| 诸暨市| 绥德县| 托克托县| 溧水县| 襄城县| 南江县| 三原县| 密云县| 集贤县| 德庆县| 永州市| 田林县| 射洪县| 和政县| 东乌珠穆沁旗| 六枝特区| 丘北县| 砚山县| 监利县| 都昌县| 商都县| 白山市| 克什克腾旗| 运城市| 靖远县|