From 7e165e357ef9fa8d413dc334b6cddc6dd83784e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20Sol=C3=A0?= <jsola@iri.upc.edu> Date: Wed, 16 May 2018 17:22:30 +0200 Subject: [PATCH] Cosmetics --- src/examples/fundamental_matrix.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/examples/fundamental_matrix.cpp b/src/examples/fundamental_matrix.cpp index f540897..4aefecb 100644 --- a/src/examples/fundamental_matrix.cpp +++ b/src/examples/fundamental_matrix.cpp @@ -135,7 +135,7 @@ int main(int argc, char** argv) if (dist < min_dist) min_dist = dist; if (dist > max_dist) - max_dist = dist; + max_dist = dist; } } else @@ -180,8 +180,15 @@ int main(int argc, char** argv) // Draw RANSAC inliers - cv::drawMatches(image_buffer[image_buffer.size()-2], keypoints_1, image_buffer.back(), keypoints_2, inlier_matches, img_matches, - cv::Scalar::all(-1), cv::Scalar::all(-1), std::vector<char>(), 0); //cv::DrawMatchesFlags::NOT_DRAW_SINGLE_POINTS ); + cv::drawMatches(image_buffer[image_buffer.size()-2], // before the last img + keypoints_1, + image_buffer.back(), // last img + keypoints_2, + inlier_matches, + img_matches, + cv::Scalar::all(-1), + cv::Scalar::all(-1), + std::vector<char>(), 0); //cv::DrawMatchesFlags::NOT_DRAW_SINGLE_POINTS ); // Show detected matches imshow("Feature tracker", img_matches); -- GitLab