diff --git a/modules/features2d/include/opencv2/features2d/features2d.hpp b/modules/features2d/include/opencv2/features2d/features2d.hpp index 47ccf9ffc3..d5243e0f88 100644 --- a/modules/features2d/include/opencv2/features2d/features2d.hpp +++ b/modules/features2d/include/opencv2/features2d/features2d.hpp @@ -266,7 +266,7 @@ CV_EXPORTS void read(const FileNode& node, CV_OUT vector& keypoints); class CV_EXPORTS SIFT { public: - struct CommonParams + struct CV_EXPORTS CommonParams { static const int DEFAULT_NOCTAVES = 4; static const int DEFAULT_NOCTAVE_LAYERS = 3; @@ -279,7 +279,7 @@ public: int angleMode; }; - struct DetectorParams + struct CV_EXPORTS DetectorParams { static double GET_DEFAULT_THRESHOLD() { return 0.04 / SIFT::CommonParams::DEFAULT_NOCTAVE_LAYERS / 2.0; } static double GET_DEFAULT_EDGE_THRESHOLD() { return 10.0; } @@ -289,7 +289,7 @@ public: double threshold, edgeThreshold; }; - struct DescriptorParams + struct CV_EXPORTS DescriptorParams { static double GET_DEFAULT_MAGNIFICATION() { return 3.0; } static const bool DEFAULT_IS_NORMALIZE = true; @@ -2143,7 +2143,7 @@ CV_EXPORTS Ptr createDescriptorMatcher( const string& descrip * GenericDescriptorMatcher * \****************************************************************************************/ /* - * Abstract interface for a keypoint descriptor + * Abstract interface for a keypoint descriptor and matcher */ class GenericDescriptorMatcher; typedef GenericDescriptorMatcher GenericDescriptorMatch;