class cv::viz::WTrajectoryFrustums

Overview

This 3D Widget represents a trajectory. : Moreā€¦

#include <widgets.hpp>

class WTrajectoryFrustums: public cv::viz::Widget3D
{
public:
    // construction

    WTrajectoryFrustums(
        InputArray path,
        const Matx33d& K,
        double scale = 1.,
        const Color& color = Color::white()
        );

    WTrajectoryFrustums(
        InputArray path,
        const Vec2d& fov,
        double scale = 1.,
        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

This 3D Widget represents a trajectory. :

Construction

WTrajectoryFrustums(
    InputArray path,
    const Matx33d& K,
    double scale = 1.,
    const Color& color = Color::white()
    )

Constructs a WTrajectoryFrustums.

Displays frustums at each pose of the trajectory.

Parameters:

path List of poses on a trajectory. Takes std::vector<Affine<T>> with T == [float | double]
K Intrinsic matrix of the camera.
scale Scale of the frustums.
color Color of the frustums.
WTrajectoryFrustums(
    InputArray path,
    const Vec2d& fov,
    double scale = 1.,
    const Color& color = Color::white()
    )

Constructs a WTrajectoryFrustums.

Displays frustums at each pose of the trajectory.

Parameters:

path List of poses on a trajectory. Takes std::vector<Affine<T>> with T == [float | double]
fov Field of view of the camera (horizontal, vertical).
scale Scale of the frustums.
color Color of the frustums.