Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
PizzaRoll04 committed Dec 3, 2024
1 parent 042b446 commit 3307ee7
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions experimental/learn_descriptors/visual_odometry_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ TEST(VIO_TEST, frontend_pipeline_sweep) {
std::vector<cv::DMatch> matches;
cv::Mat img_keypoints_out_1(height, width, CV_8UC3),
img_keypoints_out_2(height, width, CV_8UC3), img_matches_out(height, 2 * width, CV_8UC3);
cv::Mat img_display_test;
// cv::Mat img_display_test;
for (Frontend::ExtractorType extractor_type : extractor_types) {
for (Frontend::MatcherType matcher_type : matcher_types) {
printf("started frontend combination: (%d, %d)\n", static_cast<int>(extractor_type),
Expand All @@ -83,17 +83,17 @@ TEST(VIO_TEST, frontend_pipeline_sweep) {
img_keypoints_out_2);
frontend.draw_matches(image_1, keypoints_descriptors_pair_1.first, image_2,
keypoints_descriptors_pair_2.first, matches, img_matches_out);
cv::hconcat(img_keypoints_out_1, img_keypoints_out_2, img_display_test);
cv::vconcat(img_display_test, img_matches_out, img_display_test);
std::stringstream text;
text << "Extractor " << static_cast<int>(extractor_type) << ", matcher "
<< static_cast<int>(matcher_type);
cv::putText(img_display_test, text.str(), cv::Point(20, height - 50),
cv::FONT_HERSHEY_SIMPLEX, 1, cv::Scalar(0, 0, 255), 2, cv::LINE_AA);
// cv::hconcat(img_keypoints_out_1, img_keypoints_out_2, img_display_test);
// cv::vconcat(img_display_test, img_matches_out, img_display_test);
// std::stringstream text;
// text << "Extractor " << static_cast<int>(extractor_type) << ", matcher "
// << static_cast<int>(matcher_type);
// cv::putText(img_display_test, text.str(), cv::Point(20, height - 50),
// cv::FONT_HERSHEY_SIMPLEX, 1, cv::Scalar(0, 0, 255), 2, cv::LINE_AA);
// cv::imshow("Keypoints and Matches Output.", img_display_test);
std::cout << "Press spacebar to pause." << std::endl;
while (cv::waitKey(1000) == 32) {
}
// std::cout << "Press spacebar to pause." << std::endl;
// while (cv::waitKey(1000) == 32) {
// }
printf("completed frontend combination: (%d, %d)\n", static_cast<int>(extractor_type),
static_cast<int>(matcher_type));
if (extractor_type != Frontend::ExtractorType::ORB) { // don't check ORB for now
Expand Down

0 comments on commit 3307ee7

Please sign in to comment.