I searched to convert an IplImage* to Mat, but all answers were about the conversion to cvMat.
How, can I do it? and what is the difference between Mat and cvMat?
Check out the Mat documentation.
// converts old-style IplImage to the new matrix; the data is not copied by default Mat(const IplImage* img, bool copyData=false);