@@ -59,6 +59,10 @@ class BRISK_Impl : public BRISK
59
59
explicit BRISK_Impl (const std::vector<float > &radiusList, const std::vector<int > &numberList,
60
60
float dMax=5 .85f , float dMin=8 .2f , const std::vector<int > indexChange=std::vector<int >());
61
61
62
+ explicit BRISK_Impl (int thresh, int octaves, const std::vector<float > &radiusList,
63
+ const std::vector<int > &numberList, float dMax=5 .85f , float dMin=8 .2f ,
64
+ const std::vector<int > indexChange=std::vector<int >());
65
+
62
66
virtual ~BRISK_Impl ();
63
67
64
68
int descriptorSize () const
@@ -319,6 +323,18 @@ BRISK_Impl::BRISK_Impl(const std::vector<float> &radiusList,
319
323
octaves = 3 ;
320
324
}
321
325
326
+ BRISK_Impl::BRISK_Impl (int thresh,
327
+ int octaves_in,
328
+ const std::vector<float > &radiusList,
329
+ const std::vector<int > &numberList,
330
+ float dMax, float dMin,
331
+ const std::vector<int > indexChange)
332
+ {
333
+ generateKernel (radiusList, numberList, dMax, dMin, indexChange);
334
+ threshold = thresh;
335
+ octaves = octaves_in;
336
+ }
337
+
322
338
void
323
339
BRISK_Impl::generateKernel (const std::vector<float > &radiusList,
324
340
const std::vector<int > &numberList,
@@ -2318,4 +2334,11 @@ Ptr<BRISK> BRISK::create(const std::vector<float> &radiusList, const std::vector
2318
2334
return makePtr<BRISK_Impl>(radiusList, numberList, dMax, dMin, indexChange);
2319
2335
}
2320
2336
2337
+ Ptr<BRISK> BRISK::create (int thresh, int octaves, const std::vector<float > &radiusList,
2338
+ const std::vector<int > &numberList, float dMax, float dMin,
2339
+ const std::vector<int >& indexChange)
2340
+ {
2341
+ return makePtr<BRISK_Impl>(thresh, octaves, radiusList, numberList, dMax, dMin, indexChange);
2342
+ }
2343
+
2321
2344
}
0 commit comments