Conversion from IplImage* to cv::MAT

前端 未结 5 354
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-04 20:05

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?

5条回答
  •  有刺的猬
    2020-12-04 20:36

    The recommended way is the cv::cvarrToMat function

    cv::Mat - is base data structure for OpenCV 2.x

    CvMat - is old C analog of cv::Mat

提交回复
热议问题