Skip to content

Commit

Permalink
fixed build with opencv >=4.4 and nonfree detected
Browse files Browse the repository at this point in the history
  • Loading branch information
matlabbe committed Nov 15, 2020
1 parent b1d0147 commit 4a2b9d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/similarity/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ int main(int argc, char * argv[])
////////////////////////////
// EXTRACT KEYPOINTS
////////////////////////////
#if CV_MAJOR_VERSION < 4 || (CV_MAJOR_VERSION == 4 and CV_MINOR_VERSION < 3)
#if (CV_MAJOR_VERSION == 4 && CV_MINOR_VERSION <= 3) || (CV_MAJOR_VERSION == 3 && (CV_MINOR_VERSION < 4 || (CV_MINOR_VERSION==4 && CV_SUBMINOR_VERSION<11)))
cv::Ptr<cv::xfeatures2d::SIFT> sift = cv::xfeatures2d::SIFT::create();
#else
cv::Ptr<cv::SIFT> sift = cv::SIFT::create();
Expand Down

0 comments on commit 4a2b9d6

Please sign in to comment.