From f650560b2cbb3f9ad15552ba309756937986f9dc Mon Sep 17 00:00:00 2001 From: Christian Rauch Date: Tue, 2 Jan 2024 19:44:45 +0100 Subject: [PATCH] remove dependency on 'cv::viz' --- src/match.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/match.cpp b/src/match.cpp index 56d0937..db83977 100644 --- a/src/match.cpp +++ b/src/match.cpp @@ -5,7 +5,6 @@ #include #include #include -#include #include #include @@ -88,9 +87,8 @@ draw_tracks(const Eigen::MatrixXf &last_keypoints, for (const auto &[last_id, next_id, distance]: correspondences) { // sample random colour with track-specific seed g.seed(last_id); - const cv::viz::Color c(u(g)*255, u(g)*255, u(g)*255); // draw track segments - cv::line(img_tracks, last_kp[last_id], next_kp[next_id], c, 2); + cv::line(img_tracks, last_kp[last_id], next_kp[next_id], {u(g)*255, u(g)*255, u(g)*255}, 2); } return img_tracks;