首先可以参考博客https://blog.csdn.net/wuxiaoyao12/article/details/7305848
其中没有提到的自己补充
1.CvMat*到Mat转换
2.Mat到CvMat转换