Skip to content

Commit

Permalink
remove dependency on 'cv::viz'
Browse files Browse the repository at this point in the history
  • Loading branch information
christianrauch committed Jan 2, 2024
1 parent 1b534de commit f650560
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/match.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include <random>
#include <super_point_inference.hpp>
#include <opencv2/opencv.hpp>
#include <opencv2/viz/types.hpp>
#include <opencv2/core/eigen.hpp>
#include <experimental/filesystem>

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit f650560

Please sign in to comment.