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.