From ec1266b609c3cb9c75001a33ce5a1a7b723b83a1 Mon Sep 17 00:00:00 2001 From: Aliaksandr Anishchuk Date: Tue, 9 Dec 2025 17:40:53 +0300 Subject: [PATCH] Fixed VGG::getDefaultName unresolved ref link error --- modules/xfeatures2d/src/vgg.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/modules/xfeatures2d/src/vgg.cpp b/modules/xfeatures2d/src/vgg.cpp index 19184979b40..c7232b88ccb 100644 --- a/modules/xfeatures2d/src/vgg.cpp +++ b/modules/xfeatures2d/src/vgg.cpp @@ -559,12 +559,7 @@ void VGG_Impl::write (FileStorage& fs) const } } -String VGG::getDefaultName() const -{ - return (Feature2D::getDefaultName() + ".VGG"); -} - -#endif +#endif // OPENCV_XFEATURES2D_HAS_VGG_DATA Ptr VGG::create( int desc, float isigma, bool img_normalize, bool use_scale_orientation, float scale_factor, bool dsc_normalize ) @@ -578,6 +573,10 @@ Ptr VGG::create( int desc, float isigma, bool img_normalize, bool use_scale #endif } +String VGG::getDefaultName() const +{ + return (Feature2D::getDefaultName() + ".VGG"); +} } // END NAMESPACE XFEATURES2D } // END NAMESPACE CV