Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the full name of `IplImage` and `CvMat` in OpenCV?

Tags:

opencv

There is a IplImage and CvMat in OpenCV. What are the full names of them?

like image 207
Freewind Avatar asked Aug 10 '12 02:08

Freewind


People also ask

What is IplImage in OpenCV?

The IplImage is taken from the Intel Image Processing Library, in which the format is native. OpenCV only supports a subset of possible IplImage formats, as outlined in the parameter list above. In addition to the above restrictions, OpenCV handles ROIs differently.

What is cvMat?

cv::Mat is the c++ version of cvMat , they are identical and if you look through the code you will see that the c++ version just goes to the c code. If you use C++ use cv::Mat . C doesn't have namespaces so you have the kludge of putting cv in front of each function name so it doesn't clash with other library.


1 Answers

IPL in IplImage stands for Intel Processing Library, which is a remnant of when OpenCV was maintained by Intel.

CV in cvMat stands for Computer Vision Matrix, which is a data structure commonly used in graphics.

IplImage is an old structure, which I believe is internally converted into cv::Mat, or just Mat if you're in the cv namespace already. Likewise, cvMat is converted into Mat as well.

http://opencv.willowgarage.com/documentation/cpp/basic_structures.html?highlight=iplimage

like image 147
Alex W Avatar answered Sep 22 '22 18:09

Alex W