Skip to content

Commit 84f113e

Browse files
authored
Merge pull request #4049 from TheNetos:fix/build-shared-vgg-without-download-data
Fix VGG::getDefaultName unresolved external symbol link error
2 parents 5ed0a37 + ec1266b commit 84f113e

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

modules/xfeatures2d/src/vgg.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -559,12 +559,7 @@ void VGG_Impl::write (FileStorage& fs) const
559559
}
560560
}
561561

562-
String VGG::getDefaultName() const
563-
{
564-
return (Feature2D::getDefaultName() + ".VGG");
565-
}
566-
567-
#endif
562+
#endif // OPENCV_XFEATURES2D_HAS_VGG_DATA
568563

569564
Ptr<VGG> VGG::create( int desc, float isigma, bool img_normalize, bool use_scale_orientation,
570565
float scale_factor, bool dsc_normalize )
@@ -578,6 +573,10 @@ Ptr<VGG> VGG::create( int desc, float isigma, bool img_normalize, bool use_scale
578573
#endif
579574
}
580575

576+
String VGG::getDefaultName() const
577+
{
578+
return (Feature2D::getDefaultName() + ".VGG");
579+
}
581580

582581
} // END NAMESPACE XFEATURES2D
583582
} // END NAMESPACE CV

0 commit comments

Comments
 (0)