1. 程式人生 > >opencv學習筆記——中文論壇上相關知識彙總

opencv學習筆記——中文論壇上相關知識彙總

IplImage* SnapImage = cvCreateImageHeader( cvSize IMAGE_WIDTH, IMAGE_HEIGHT) 
, IPL_DEPTH_8U, IMAGE_CHANNEL ); 
SnapImage->origin = 1; 
IplImage* 
char* data= new char [IMAGE_HEIGHT*IMAGE_WIDTH*IMAGE_CHANNEL]; 
SnapImage->imageData = data; 
memcpy(SnapImage->imageData,pImageBuffer,IMAGE_HEIGHT*IMAGE_WIDTH*IMAGE_CHANNEL); 

delete []data;