找不到类型或命名空间名称'StructuringElementEx'(您是否缺少using指令或程序集引用?) [英] The type or namespace name 'StructuringElementEx' could not be found (are you missing a using directive or an assembly reference?)
本文介绍了找不到类型或命名空间名称'StructuringElementEx'(您是否缺少using指令或程序集引用?)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
即使我使用Emgu.CV并且还引用了Emgu.CV.dll,我在使用StructuringElementEx时遇到了同样的错误。请帮我。在此先感谢。
Even though I use Emgu.CV and also referenced the Emgu.CV.dll I am getting the same error when I use StructuringElementEx. Please help me. Thanks in advance.
推荐答案
一个小谷歌将帮助你。 StructuringElementEx在新版本中不再存在。
在新版本中,使用以下内容:
A little google will help out. StructuringElementEx doesn't exist anymore in the new version.
In the new version, use something like this:
Mat rect_6 = CvInvoke.GetStructuringElement(Emgu.CV.CvEnum.ElementShape.Rectangle, new Size(6, 6), new Point(3, 3));
查看此链接了解更多信息:
http://www.emgu.com /forum/viewtopic.php?t=4946 [ ^ ]
祝你好运!
Check this link for more info:
http://www.emgu.com/forum/viewtopic.php?t=4946[^]
Good luck!
这篇关于找不到类型或命名空间名称'StructuringElementEx'(您是否缺少using指令或程序集引用?)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文