OpenCV中IplImage* 与Mat相互转化

OpenCV中,IplImage* 与Mat相互转化

 

IplImage* img = NULL;

cv::Mat cvDepthImg;

img=&cvDepthImg.operator IplImage();//Mat 把Mat转换成IplImage*

 

cv::Mat SiuImage;

SiuImage = cv::Mat(img);//把IplImage*转换成Mat

Leave a Reply

Your email address will not be published. Required fields are marked *