Skip to content

Commit c8e3ae2

Browse files
committed
More refinement on alignment code
1 parent 1f66286 commit c8e3ae2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ImageAlignment-FeatureBased/align.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ using namespace std;
66
using namespace cv;
77
using namespace cv::xfeatures2d;
88

9-
const int MAX_MATCHES = 500;
9+
const int MAX_FEATURES = 500;
1010
const float GOOD_MATCH_PERCENT = 0.15f;
1111

1212

@@ -24,7 +24,7 @@ void alignImages(Mat &im1, Mat &im2, Mat &im1Reg, Mat &h)
2424
Mat descriptors1, descriptors2;
2525

2626
// Detect ORB features and compute descriptors.
27-
Ptr<Feature2D> orb = ORB::create(MAX_MATCHES);
27+
Ptr<Feature2D> orb = ORB::create(MAX_FEATURES);
2828
orb->detectAndCompute(im1Gray, Mat(), keypoints1, descriptors1);
2929
orb->detectAndCompute(im2Gray, Mat(), keypoints2, descriptors2);
3030

0 commit comments

Comments
 (0)