O'Reilly logo

Emgu CV Essentials by Shin Shi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Function mapping

Emgu.CV.Invoke class introduces an easy way to directly call OpenCV functions in .NET programming languages. Every method in the Emgu.CV.Invoke class keeps the original name in OpenCV. An example of cvCreateImage is given here. In Emgu CV, we write it like this:

IntPtr img1 = CvInvoke.cvCreateImage(new Size(256, 256), IPL_DEPTH.IPL_DEPTH_16U, 1);

It shows the same effects in OpenCV code:

IplImage* img1 = cvCreateImage(cvSize(256, 256), IPL_DEPTH_16U, 1);

Both of them will create an image with the size of 256 x 256 pixels, the depth of 16 bit unsigned, and the channel 1.

According to Emgu CV library documentation, the CvInvoke type exposes the many members and methods. All those hundreds of methods are very useful because they are base ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required