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 ...