I am using OpenCV's remap function as shown below:
Mat lg,lr;
Mat *mxl = (Mat *) cvLoad("mx1.xml");
Mat *myl = (Mat *) cvLoad("my1.xml");
remap(lg, lr, mxl, myl);
mx1 and my1 are loaded as cv::Mat, but remap needs cv::_InputArray, how do I achieve this?