From f2d2c8db77c31cb428cb1348e61b09a0e3f007f6 Mon Sep 17 00:00:00 2001 From: Alexander Mordvintsev Date: Tue, 29 Nov 2011 12:24:38 +0000 Subject: [PATCH] exposed SurfFeatureDetector and SurfDescriptorExtractor to python --- .../features2d/include/opencv2/features2d/features2d.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/features2d/include/opencv2/features2d/features2d.hpp b/modules/features2d/include/opencv2/features2d/features2d.hpp index 78853a1353..91172cb68f 100644 --- a/modules/features2d/include/opencv2/features2d/features2d.hpp +++ b/modules/features2d/include/opencv2/features2d/features2d.hpp @@ -1516,10 +1516,10 @@ protected: SIFT sift; }; -class CV_EXPORTS SurfFeatureDetector : public FeatureDetector +class CV_EXPORTS_W SurfFeatureDetector : public FeatureDetector { public: - SurfFeatureDetector( double hessianThreshold=400., int octaves=3, int octaveLayers=4, bool upright=false ); + CV_WRAP SurfFeatureDetector( double hessianThreshold=400., int octaves=3, int octaveLayers=4, bool upright=false ); virtual void read( const FileNode& fn ); virtual void write( FileStorage& fs ) const; @@ -1901,10 +1901,10 @@ protected: /* * SurfDescriptorExtractor */ -class CV_EXPORTS SurfDescriptorExtractor : public DescriptorExtractor +class CV_EXPORTS_W SurfDescriptorExtractor : public DescriptorExtractor { public: - SurfDescriptorExtractor( int nOctaves=4, int nOctaveLayers=2, bool extended=false, bool upright=false ); + CV_WRAP SurfDescriptorExtractor( int nOctaves=4, int nOctaveLayers=2, bool extended=false, bool upright=false ); virtual void read( const FileNode &fn ); virtual void write( FileStorage &fs ) const;