1 | initial version |
You don't convert IplImage to mat, you just create new Mat object
mat=cvCreateMat(destination->height, destination->width, CV_32F);
To convert from IplImage to Mat use Mat(IplImage*)
constructor
mat = Mat(destination);