How I can adapt this code to opencv 3.0.0
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
tmpImg.data=m_pcImageMemory
; but what ism_pcImageMemory
? How did you allocated it?you probably wanted:
Thanks berak, failing in the last variable..... solved