在VB.NET安装EMGU步骤
下载并安装EMGU http://sourceforge.net/projects/emgucv/
项目-解决方案资源管理器,然后在解决方案资源管理器 对windowsapplication1点右键 属性 引用 ,添加在EMGU安装目录下 emgucv-windows-x86 2.3.0.1416bin的emgu.cv.dll和emgu.util.dll两个文件。 类似其他Emgu.CV.GPU.dll之类的也可以引用,具体看需求了。之后将的emgu.cv.dll和emgu.util.dll拷入.exe的目录下 贴入下面代码,我在win7 vs2008 VB.net 下运行顺利
Imports Emgu.CV
不过目前想尝试使用VB自带的picbox控件加载图片,使用cvinvoke的方法处理时,会提示类型不同。正在解决中
附emgu函数说明
Function Mapping - Emgu.CV.CvInvokeThe CvInvoke class provides a way to directly invokeOpenCVfunction within .NET languages. Each method in this class corresponds to a function inOpenCVof the same name. For example,a call to IntPtr image = CvInvoke.cvCreateImage(new System.DrawingSize(400,300),CvEnumIPL_DEPTHIPL_DEPTH_8U,0)">1); IplImage* image = cvCreateImage(cvSize(400, 300)1; Both of which create a 400x300 of 8-bit unsigned grayscale image. Structure Mapping - Emgu.CV.Structure.MxxxThis type of structure is a direct mapping toOpenCVstructures.
The prefixMhere stands for Managed structure. Emgu CValso borrows some existing structures in .Net to represent structures inOpenCV:
Enumeration Mapping - Emgu.CV.CvEnumThe CvEnum namespace provides direct mapping toOpenCVenumerations. For example, (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |