class cv::viz::WCloudCollection
Overview
This 3D Widget defines a collection of clouds. : Moreā¦
#include <widgets.hpp> class WCloudCollection: public cv::viz::Widget3D { public: // methods void addCloud( InputArray cloud, InputArray colors, const Affine3d& pose = Affine3d::Identity() ); void addCloud( InputArray cloud, const Color& color = Color::white(), const Affine3d& pose = Affine3d::Identity() ); void finalize(); };
Inherited Members
public: // methods template <typename _W> _W cast(); Widget2D cast(); WWidgetMerger cast(); double getRenderingProperty(int property) const; Widget& operator=(const Widget& other); void setRenderingProperty( int property, double value ); static Widget fromPlyFile(const String& file_name); void applyTransform(const Affine3d& transform); Affine3d getPose() const; void setColor(const Color& color); void setPose(const Affine3d& pose); void updatePose(const Affine3d& pose);
Detailed Documentation
This 3D Widget defines a collection of clouds. :
In case there are four channels in the cloud, fourth channel is ignored.
Methods
void addCloud( InputArray cloud, InputArray colors, const Affine3d& pose = Affine3d::Identity() )
Adds a cloud to the collection.
Parameters:
cloud | Point set which can be of type: CV_32FC3, CV_32FC4, CV_64FC3, CV_64FC4. |
colors | Set of colors. It has to be of the same size with cloud. |
pose | Pose of the cloud. Points in the cloud belong to mask when they are set to (NaN, NaN, NaN). |
void addCloud( InputArray cloud, const Color& color = Color::white(), const Affine3d& pose = Affine3d::Identity() )
Adds a cloud to the collection.
Parameters:
cloud | Point set which can be of type: CV_32FC3, CV_32FC4, CV_64FC3, CV_64FC4. |
color | A single Color for the whole cloud. |
pose | Pose of the cloud. Points in the cloud belong to mask when they are set to (NaN, NaN, NaN). |
void finalize()
Finalizes cloud data by repacking to single cloud.
Useful for large cloud collections to reduce memory usage