Convert OpenCV Mat type to IplImage * type. OpenCV Mat 类型转化为IplImage*指针类型

Mat srcImg;                         // Mat type variable .
IplImage *resIplPtr = NULL;         // Initialize by NULL.
srcImg = imread(imagePath);         // read image;         
resIplPtr = &(IplImage(srcImg));    // Mat to IplImage Pointer 
resIplPtr = NULL;                   // set as NULL.
    

转载于:https://www.cnblogs.com/xiangwengao/archive/2012/04/10/2440755.html

你可能感兴趣的:(Convert OpenCV Mat type to IplImage * type. OpenCV Mat 类型转化为IplImage*指针类型)