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.
    
posted @ 2012-04-10 16:13  gaoxw0511  阅读(1682)  评论(0编辑  收藏  举报