Conversion from IplImage* to cv::MAT

前端 未结 5 466
爱一瞬间的悲伤
爱一瞬间的悲伤 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:29

    Check out the Mat documentation.

    // converts old-style IplImage to the new matrix; the data is not copied by default
    Mat(const IplImage* img, bool copyData=false);
    

提交回复
热议问题