Adding a default constructor to ORB that initializes. Had segfaults on non
authorEthan Rublee <no@email>
Fri, 27 May 2011 17:17:02 +0000 (17:17 +0000)
committerEthan Rublee <no@email>
Fri, 27 May 2011 17:17:02 +0000 (17:17 +0000)
initialized orb detector.

modules/features2d/include/opencv2/features2d/features2d.hpp

index b24aabe..3f339f1 100644 (file)
@@ -434,16 +434,11 @@ public:
     int patch_size_;
   };
 
-  /** Default Constructor */
-  ORB()
-  {
-  }
-
   /** Constructor
    * @param n_features the number of desired features
    * @param detector_params parameters to use
    */
-  ORB(size_t n_features, const CommonParams & detector_params = CommonParams());
+  ORB(size_t n_features = 500, const CommonParams & detector_params = CommonParams());
 
   /** returns the descriptor size in bytes */
   int descriptorSize() const;