OpenCV Mat::copyTO function error

Friday, July 4, 2014

I am trying to copy a smaller image at the center of a bigger image. here is the code src.copyTo(dest(Rect(50,50,src.cols,src.rows))); where both src and dest are of type MAT, Dest is 5 times bigger than src and assuming 50,50 to be the center of dest. i am getting the following errors no matching function for call to ‘cv::Mat::copyTo(cv::Mat)' any fixes ? Thank you