![]() |
OpenCV 4.10.0
开源计算机视觉
|
#include <opencv2/viz/widgets.hpp>
公有成员函数 | |
| WCloudCollection () | |
| void | addCloud (InputArray cloud, const Color &color=Color::white(), const Affine3d &pose=Affine3d::Identity()) |
| 将云添加到集合中。 | |
| void | addCloud (InputArray cloud, InputArray colors, const Affine3d &pose=Affine3d::Identity()) |
| 将云添加到集合中。 | |
| void | finalize () |
| 通过重新打包为单个云来完成云数据。 | |
从 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::WCloudCollection::WCloudCollection | ( | ) |
| void cv::viz::WCloudCollection::addCloud | ( | InputArray | cloud, |
| const Color & | color = Color::white(), |
||
| const Affine3d & | pose = Affine3d::Identity() |
||
| ) |
将云添加到集合中。
| cloud | 可以是以下类型的点集:CV_32FC3、CV_32FC4、CV_64FC3、CV_64FC4。 |
| color | 整个云的单个 Color。 |
| pose | 云的姿态。当云中的点设置为 (NaN, NaN, NaN) 时,它们属于蒙版。 |
| void cv::viz::WCloudCollection::addCloud | ( | InputArray | cloud, |
| InputArray | colors, | ||
| const Affine3d & | pose = Affine3d::Identity() |
||
| ) |
将云添加到集合中。
| cloud | 可以是以下类型的点集:CV_32FC3、CV_32FC4、CV_64FC3、CV_64FC4。 |
| colors | 颜色集。它必须与云的大小相同。 |
| pose | 云的姿态。当云中的点设置为 (NaN, NaN, NaN) 时,它们属于蒙版。 |
| void cv::viz::WCloudCollection::finalize | ( | ) |
通过重新打包为单个云来完成云数据。
对于大型云集合来说非常有用,可以减少内存使用量
1.9.8