Difference between revisions of "Tutorial"

From Emgu CV: OpenCV in .NET (C#, VB, C++ and more)
Jump to: navigation, search
(New page: ==Namespace== ===Emgu=== All libraries provided by Emgu(R) are provided under the namespace Emgu. ===Emgu.CV== The Emgu.CV namespace implement wrapper functions for OpenCV ==== Emgu.CV...)
 
Line 4: Line 4:
 
All libraries provided by Emgu(R) are provided under the namespace Emgu.  
 
All libraries provided by Emgu(R) are provided under the namespace Emgu.  
  
===Emgu.CV==
+
===Emgu.CV===
 
The Emgu.CV namespace implement wrapper functions for OpenCV
 
The Emgu.CV namespace implement wrapper functions for OpenCV
  
 
==== Emgu.CV.CvInvoke class ====
 
==== Emgu.CV.CvInvoke class ====
 +
This class is written to provided a way to directly invoke opencv function within .NET languages. Each method in this class corresponds to the same function in opencv. For example, <code> CvInvoke.cvCreateImage(new MCvSize(400, 300), CvEnum.IPL_DEPTH.IPL_DEPTH_8U, 1); </code> is equivalent to the function in C/C++ <code> cvCreateImage(cvSize(400, 300), IPL_DEPTH_8U, 1); </code>. Both of which create a 400x300 single-channel image of 8-bit depth.
 +
 +
==== Emgu.CV.CvEnum namespace ====
 +
This namespace provides direct mapping to opencv enumerations. For example, <code> CvEnum.IPL_DEPTH.IPL_DEPTH_8U </code> is equivalent to the value in C/C++ <code> IPL_DEPTH_8U </code>, both of which equals <code>8</code>.
 +
 +
==== Emgu.CV.Mxxx Structure ====
 +
This type of structure is a direct mapping to opencv structures. For example, <code> MIplImage </code> is equivalent to the <code> IplImage </code> structure in opencv and <code> MCvMat</code> is equivalent to the <code>CvMat</code>.

Revision as of 20:57, 25 February 2008

Namespace

Emgu

All libraries provided by Emgu(R) are provided under the namespace Emgu.

Emgu.CV

The Emgu.CV namespace implement wrapper functions for OpenCV

Emgu.CV.CvInvoke class

This class is written to provided a way to directly invoke opencv function within .NET languages. Each method in this class corresponds to the same function in opencv. For example, CvInvoke.cvCreateImage(new MCvSize(400, 300), CvEnum.IPL_DEPTH.IPL_DEPTH_8U, 1); is equivalent to the function in C/C++ cvCreateImage(cvSize(400, 300), IPL_DEPTH_8U, 1); . Both of which create a 400x300 single-channel image of 8-bit depth.

Emgu.CV.CvEnum namespace

This namespace provides direct mapping to opencv enumerations. For example, CvEnum.IPL_DEPTH.IPL_DEPTH_8U is equivalent to the value in C/C++ IPL_DEPTH_8U , both of which equals 8.

Emgu.CV.Mxxx Structure

This type of structure is a direct mapping to opencv structures. For example, MIplImage is equivalent to the IplImage structure in opencv and MCvMat is equivalent to the CvMat.