From 93326c7dc0990a2b53ca36de0d8d219a839fa002 Mon Sep 17 00:00:00 2001 From: Ethan Rublee Date: Fri, 27 May 2011 17:17:02 +0000 Subject: [PATCH] Adding a default constructor to ORB that initializes. Had segfaults on non initialized orb detector. --- .../features2d/include/opencv2/features2d/features2d.hpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/modules/features2d/include/opencv2/features2d/features2d.hpp b/modules/features2d/include/opencv2/features2d/features2d.hpp index b24aabed11..3f339f135d 100644 --- a/modules/features2d/include/opencv2/features2d/features2d.hpp +++ b/modules/features2d/include/opencv2/features2d/features2d.hpp @@ -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;