Search code examples
c++opencviplimagemat

Conversion from IplImage* to cv::MAT


I searched to convert an IplImage* to Mat, but all answers were about the conversion to cvMat.

How, can I do it? and what is the difference between Mat and cvMat?

Thanks in advance


Solution

  • here is a good solution

    Mat(const IplImage* img, bool copyData=false);