IplImage* tmpImg=cvCreateImageHeader(cvSize(imX,imY),IPL_DEPTH_8U,1);
tmpImg->imageData=m_pcImageMemory;
I tried a lot but I am not able to adapt correctly the code
this is the last one I have
Mat tmpImg = Mat(imX,mY,CV_8U,1);
tmpImg->=m_pcImageMemory
thanks in advance