1、将Mat转化为IplImage:
Mat src;
IplImage* dst=&src.operator IplImage();
如此便实现将Mat的src转化为IplImage的dst
2、将IplImage转化为Mat:
IplImage* src;
Mat dst(src);
如此便实现将IplImage的src转化为Mat的dst
1、将Mat转化为IplImage:
Mat src;
IplImage* dst=&src.operator IplImage();
如此便实现将Mat的src转化为IplImage的dst
2、将IplImage转化为Mat:
IplImage* src;
Mat dst(src);
如此便实现将IplImage的src转化为Mat的dst