Skip to content

Commit b9111a9

Browse files
authored
Merge pull request #3403 from asmorkalov:as/surf_link_fix
Fixed SURF linkage issue without nonfree.
2 parents af3a467 + 2b95a6d commit b9111a9

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

modules/xfeatures2d/src/surf.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,12 +1020,6 @@ Ptr<SURF> SURF::create(double _threshold, int _nOctaves, int _nOctaveLayers, boo
10201020
return makePtr<SURF_Impl>(_threshold, _nOctaves, _nOctaveLayers, _extended, _upright);
10211021
}
10221022

1023-
String SURF::getDefaultName() const
1024-
{
1025-
return (Feature2D::getDefaultName() + ".SURF");
1026-
}
1027-
1028-
10291023
#else // ! #ifdef OPENCV_ENABLE_NONFREE
10301024
Ptr<SURF> SURF::create(double, int, int, bool, bool)
10311025
{
@@ -1035,6 +1029,11 @@ Ptr<SURF> SURF::create(double, int, int, bool, bool)
10351029
}
10361030
#endif
10371031

1032+
String SURF::getDefaultName() const
1033+
{
1034+
return (Feature2D::getDefaultName() + ".SURF");
1035+
}
1036+
10381037
}
10391038
}
10401039

0 commit comments

Comments
 (0)