在Ptr <featuredetector> </featuredetector>上设置Hessian阈值

时间:2015-01-14 16:09:58

标签: c++ opencv surf hessian-matrix

使用此特定FeatureDetector,我无法弄清楚如何设置Hessian阈值。

Ptr<FeatureDetector> detector = FeatureDetector::create("SURF");

任何人都知道怎么做?

1 个答案:

答案 0 :(得分:-2)

试试这个:

float newThresh = detector->getDouble("threshold") + 3;
detector->set("threshold", newThresh);