From c8e3ae2d2b0423f5c6d21c6189ee8ff3192c0555 Mon Sep 17 00:00:00 2001 From: Satya Mallick Date: Sat, 10 Mar 2018 09:05:55 +0530 Subject: [PATCH] More refinement on alignment code --- ImageAlignment-FeatureBased/align.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ImageAlignment-FeatureBased/align.cpp b/ImageAlignment-FeatureBased/align.cpp index 6c5a46e..a1a82a3 100644 --- a/ImageAlignment-FeatureBased/align.cpp +++ b/ImageAlignment-FeatureBased/align.cpp @@ -6,7 +6,7 @@ using namespace std; using namespace cv; using namespace cv::xfeatures2d; -const int MAX_MATCHES = 500; +const int MAX_FEATURES = 500; const float GOOD_MATCH_PERCENT = 0.15f; @@ -24,7 +24,7 @@ void alignImages(Mat &im1, Mat &im2, Mat &im1Reg, Mat &h) Mat descriptors1, descriptors2; // Detect ORB features and compute descriptors. - Ptr orb = ORB::create(MAX_MATCHES); + Ptr orb = ORB::create(MAX_FEATURES); orb->detectAndCompute(im1Gray, Mat(), keypoints1, descriptors1); orb->detectAndCompute(im2Gray, Mat(), keypoints2, descriptors2);