![]() |
OpenCV 4.11.0
开源计算机视觉
|
#include <opencv2/viz/widgets.hpp>
公共成员函数 | |
| WPlane (const Point3d ¢er, const Vec3d &normal, const Vec3d &new_yaxis, const Size2d &size=Size2d(1.0, 1.0), const Color &color=Color::white()) | |
| 构造一个重新定位的平面。 | |
| WPlane (const Size2d &size=Size2d(1.0, 1.0), const Color &color=Color::white()) | |
| 构造一个默认平面,中心点位于原点,法线沿 z 轴方向。 | |
从 cv::viz::Widget3D 继承的公共成员函数 | |
| Widget3D () | |
| void | applyTransform (const Affine3d &transform) |
| 使用给定的变换变换内部控件数据(即点、法线)。 | |
| Affine3d | getPose () const |
| 返回控件的当前姿态。 | |
| void | setColor (const Color &color) |
| 设置控件的颜色。 | |
| void | setPose (const Affine3d &pose) |
| 设置控件的姿态。 | |
| void | updatePose (const Affine3d &pose) |
| 通过预乘其当前姿态来更新控件的姿态。 | |
从 cv::viz::Widget 继承的公共成员函数 | |
| Widget () | |
| Widget (const Widget &other) | |
| virtual | ~Widget () |
| template<typename _W > | |
| _W | cast () const |
| 将一个控件转换为另一个控件。 | |
| template<> | |
| Widget2D | cast () const |
| 实用程序导出。 | |
| template<> | |
| Widget3D | cast () const |
| template<> | |
| WLine | cast () const |
| template<> | |
| WPlane | cast () const |
| template<> | |
| WSphere | cast () const |
| template<> | |
| WCylinder | cast () const |
| template<> | |
| WArrow | cast () const |
| template<> | |
| WCircle | cast () const |
| template<> | |
| WCone | cast () const |
| template<> | |
| WCube | cast () const |
| template<> | |
| WCoordinateSystem | cast () const |
| template<> | |
| WPolyLine | cast () const |
| template<> | |
| WGrid | cast () const |
| template<> | |
| WText3D | cast () const |
| template<> | |
| WText | cast () const |
| template<> | |
| WImageOverlay | cast () const |
| template<> | |
| WImage3D | cast () const |
| template<> | |
| WCameraPosition | cast () const |
| template<> | |
| WTrajectory | cast () const |
| template<> | |
| WTrajectoryFrustums | cast () const |
| template<> | |
| WTrajectorySpheres | cast () const |
| template<> | |
| WCloud | cast () const |
| template<> | |
| WPaintedCloud | cast () const |
| template<> | |
| WCloudCollection | cast () const |
| template<> | |
| WCloudNormals | cast () const |
| template<> | |
| WMesh | cast () const |
| template<> | |
| WWidgetMerger | cast () const |
| double | getRenderingProperty (int property) const |
| 返回控件的渲染属性。 | |
| Widget & | operator= (const Widget &other) |
| void | setRenderingProperty (int property, double value) |
| 设置控件的渲染属性。 | |
其他继承成员 | |
从 cv::viz::Widget 继承的静态公共成员函数 | |
| static Widget | fromPlyFile (const String &file_name) |
| 从 ply 文件创建控件。 | |
此 3D 控件 定义了一个有限平面。
| cv::viz::WPlane::WPlane | ( | const Size2d & | size = Size2d(1.0, 1.0), |
| const Color & | color = Color::white() ) |
构造一个默认平面,中心点位于原点,法线沿 z 轴方向。
| size | 平面的尺寸 |
| color | 颜色 of the plane. |
| cv::viz::WPlane::WPlane | ( | const Point3d & | center, |
| const Vec3d & | normal, | ||
| const Vec3d & | new_yaxis, | ||
| const Size2d & | size = Size2d(1.0, 1.0), | ||
| const Color & | color = Color::white() ) |
构造一个重新定位的平面。
| center | 平面的中心 |
| normal | 平面法线方向 |
| new_yaxis | 上向量。平面 y 轴的新方向。 |
| size | |
| color | 颜色 of the plane. |