无法使EMGU.CV中的SURF示例正常工作? [英] Cannot get SURF example in EMGU.CV to work?

查看:271
本文介绍了无法使EMGU.CV中的SURF示例正常工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试检测两个图像中显示的图案。因此,我一直试图使用在emgu.CV中找到的SURF算法,但是给出的 SURFFeature示例给了我以下错误:

  Emgu.CV.dll中发生了类型为'Emgu.CV.Util.CvException'的未处理异常

其他信息:OpenCV:规范== NORM_L1 ||规范== NORM_L2 ||规范== NORM_HAMMING

有什么办法解决此问题吗?



当我尝试 Hello World示例和面部检测示例时,两者似乎都可以正常工作。



感谢您的建议!



武器。



PS:可以从此处下载Emgu.CV: http://www.emgu.com/wiki/index.php/Main_Page

解决方案

显然,构建被搞砸了。



http://www.emgu.com/bugs/show_bug.cgi?format=multiple&id=74


啊哈, 找到了。这里的错误是在Emgu.Cv.Gpu / GpuBruteForceMatcher.cs第22和27行中。



第22行当前显示为:
L2Dist,



它应该显示为:L2Dist = 4,



第27行当前显示为:HammingDist



它应该显示为:HammingDist = 6


使用这些更改重建Emgu.CV.Gpu dll,并且可以正常工作。 / p>

I am trying to detect a pattern shown in two images. Hence I have been trying to use the SURF algorithim found in emgu.CV, but the "SURFFeature" example that is given gives me the following error:

    An unhandled exception of type 'Emgu.CV.Util.CvException' occurred in Emgu.CV.dll

Additional information: OpenCV: norm == NORM_L1 || norm == NORM_L2 || norm == NORM_HAMMING

Any ideas how to fix this?

When I try the "Hello World" example and the face detection example, both seem to work fine.

Thanks for any advice!

Fouad.

PS: Emgu.CV can be downloaded from here: http://www.emgu.com/wiki/index.php/Main_Page

解决方案

Apparently the build was messed up.

http://www.emgu.com/bugs/show_bug.cgi?format=multiple&id=74

Aha, found it. The error here is in Emgu.Cv.Gpu/GpuBruteForceMatcher.cs lines 22 and 27.

Line 22 currently reads: L2Dist,

It should read: L2Dist = 4,

Line 27 currently reads: HammingDist

It should read: HammingDist = 6

Rebuild the Emgu.CV.Gpu dll with those changes and it works.

这篇关于无法使EMGU.CV中的SURF示例正常工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆