1、Mat转换为IplImage*
Mat img;
IplImage *src;
src=&IplImage(img);
2、Mat转换为IplImage
Mat img;
IplImage ipl_img(img);//第一种方法
IplImage ipl_img = img;//第二种方法
3、IplImage转换为Mat
//! converts old-style IplImage to the new matrix; the data is not copied by default
Mat(const IplImage* img, bool copyData=false);
【重要总结】opencv Mat&IplImage
最新推荐文章于 2022-12-23 15:45:42 发布