Skip to content
Snippets Groups Projects
Commit 7e165e35 authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Cosmetics

parent 122e1ca6
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment