trajectory widget display options: display path, display frames, display both

This commit is contained in:
ozantonkal
2013-07-25 10:56:54 +02:00
parent aa2594c06c
commit 7d458e852e
2 changed files with 45 additions and 39 deletions

View File

@@ -180,7 +180,9 @@ namespace cv
class CV_EXPORTS TrajectoryWidget : public Widget3D
{
public:
TrajectoryWidget(const std::vector<Affine3f> &path, const Color &color = Color::white(), bool show_frames = false, double scale = 1.0);
enum {DISPLAY_FRAMES = 1, DISPLAY_PATH = 2};
TrajectoryWidget(const std::vector<Affine3f> &path, int display_mode = TrajectoryWidget::DISPLAY_PATH, const Color &color = Color::white(), double scale = 1.0);
TrajectoryWidget(const std::vector<Affine3f> &path, const Matx33f &K, double scale = 1.0, const Color &color = Color::white()); // Camera frustums
private: