参考 lplimage to mat IplImage* image = cvLoadImage( "lena.jpg"); Mat mat=cvarrToMat(image); mat to lplimage IplImage img = IplImage(mat);