#include <opencv2/opencv.hpp>
...
IplImage* img = cvLoadImage("TestImage.jpg", 1);
Mat mtx(img);
This code should convert the img to Mat format. However, when I implement this I receive an error saying "No matching constructor for initialization of cv::Mat".
Where am I doing wrong? The syntax should be correct so I assume the problem lies somewhere else. I am using OpenCV 3.1.0 and Xcode 7.2.1 in OSX Yosemite.
Thank you in advance