Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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