1、IplImage转Cvmat IplImage* src = cvLoadImage("rice.bmp",0); cvConvert(src,mat); 或者: Cvmat matObj; * mat=cvGetmat(src,&matObj); 2、Cvmat转IplImage cvSaveImage("rice1.bmp",pImg); |
1、IplImage转Cvmat IplImage* src = cvLoadImage("rice.bmp",0); cvConvert(src,mat); 或者: Cvmat matObj; * mat=cvGetmat(src,&matObj); 2、Cvmat转IplImage cvSaveImage("rice1.bmp",pImg); |