IplImage *pyr; //声明IplImage指针
    pyr=new IplImage;
 CvSize size = cvSize(800,600); // get current frame size
 int p_w_picpath_width_bits = 800*3;
 cvInitImageHeader(pyr, size, 8, 3,IPL_ORIGIN_BL, 4); //创建iplp_w_picpath
 cvSetData(pyr, pImg->p_w_picpathData, p_w_picpath_width_bits); //copy数据
 if (pyr!=NULL)
 {
  delete pyr;
  pyr=NULL;
 }