提交 9170ff6f 编写于 作者: V Vincent Rabaud

- assign some members outside the header (fixes #1081)

上级 92d1262f
...@@ -415,9 +415,9 @@ public: ...@@ -415,9 +415,9 @@ public:
struct CommonParams struct CommonParams
{ {
static const unsigned int DEFAULT_N_LEVELS = 3; static const unsigned int DEFAULT_N_LEVELS = 3;
static const float DEFAULT_SCALE_FACTOR = 1.2; static const float DEFAULT_SCALE_FACTOR;
static const unsigned int DEFAULT_FIRST_LEVEL = 0; static const unsigned int DEFAULT_FIRST_LEVEL = 0;
static const PatchSize DEFAULT_PATCH_SIZE = PATCH_LEARNED_31; static const PatchSize DEFAULT_PATCH_SIZE;
/** default constructor */ /** default constructor */
CommonParams(float scale_factor = DEFAULT_SCALE_FACTOR, unsigned int n_levels = DEFAULT_N_LEVELS, CommonParams(float scale_factor = DEFAULT_SCALE_FACTOR, unsigned int n_levels = DEFAULT_N_LEVELS,
......
...@@ -447,6 +447,9 @@ std::vector<cv::Mat> ORB::OrbPatterns::rotated_patterns_ = OrbPatterns::generate ...@@ -447,6 +447,9 @@ std::vector<cv::Mat> ORB::OrbPatterns::rotated_patterns_ = OrbPatterns::generate
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
const float ORB::CommonParams::DEFAULT_SCALE_FACTOR = 1.2;
const ORB::PatchSize ORB::CommonParams::DEFAULT_PATCH_SIZE = ORB::PATCH_LEARNED_31;
/** Constructor /** Constructor
* @param detector_params parameters to use * @param detector_params parameters to use
*/ */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册