class cv::viz::WTrajectory
Overview
Trajectories. Moreā¦
#include <widgets.hpp> class WTrajectory: public cv::viz::Widget3D { public: // enums enum { FRAMES = 1, PATH = 2, BOTH = FRAMES + PATH, }; // construction WTrajectory( InputArray path, int display_mode = WTrajectory::PATH, double scale = 1.0, const Color& color = Color::white() ); };
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
Trajectories.
This 3D Widget represents a trajectory. :
Construction
WTrajectory( InputArray path, int display_mode = WTrajectory::PATH, double scale = 1.0, const Color& color = Color::white() )
Constructs a WTrajectory.
Frames are not affected. Displays trajectory of the given path as follows:
- PATH : Displays a poly line that represents the path.
- FRAMES : Displays coordinate frames at each pose.
- PATH & FRAMES : Displays both poly line and coordinate frames.
Parameters:
path | List of poses on a trajectory. Takes std::vector<Affine<T>> with T == [float | double] |
display_mode | Display mode. This can be PATH, FRAMES, and BOTH. |
scale | Scale of the frames. Polyline is not affected. |
color | Color of the polyline that represents path. |