opencv复制图像

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

你可能感兴趣的:(职场,opencv,休闲)