shape_based_matching icon indicating copy to clipboard operation
shape_based_matching copied to clipboard

如何方便的设置图像金字塔层数和提取特征的个数

Open Leslie20200401 opened this issue 5 years ago • 7 comments

如何方便的设置图像金字塔层数和提取特征的个数

Leslie20200401 avatar Feb 02 '21 03:02 Leslie20200401

传参数就可以

meiqua avatar Feb 03 '21 13:02 meiqua

line2Dup::Detector detector(128, { 4, 8 }); 是从上面这里春如参数吗,我改成{2,4,8}就会在下面,退出程序,提示特征太少 const std::vector<Template> &Detector::getTemplates(const std::string &class_id, int template_id) const { TemplatesMap::const_iterator i = class_templates.find(class_id); CV_Assert(i != class_templates.end()); CV_Assert(i->second.size() > size_t(template_id)); return i->second[template_id]; } 我将 Detector(int num_features, std::vector T, float weak_thresh = 30.0f, float strong_thresh = 60.0f);中的strong_thresh调到很小也还是会出现上面的报错,我的模板大小是73*73的。

Leslie20200401 avatar Feb 04 '21 02:02 Leslie20200401

我测试了一下将模板图像resize为128,然后设置三层,这样就不会出现错误了,就是放模板图像分辨率比较小时,时很难设置成三层金字塔的。

Leslie20200401 avatar Feb 04 '21 02:02 Leslie20200401

是的,缩小太多了

meiqua avatar Feb 04 '21 12:02 meiqua

我认为此源代码的问题是难以设置参数。 融合分支的准确性很差。

frigiddragon avatar Feb 18 '21 08:02 frigiddragon

有什么例子说明准确性的问题吗

meiqua avatar Feb 19 '21 05:02 meiqua