2014-07-04 29 views
1

我試圖在較大圖像的中心複製較小的圖像。 下面是代碼:Mat :: copyTo()函數錯誤

src.copyTo(dest(Rect(50,50,src.cols,src.rows))); 

其中兩個srcdest是墊,destsrc更大,假設50,50是dest的中心的5倍。

我收到以下錯誤:

no matching function for call to 'cv::Mat::copyTo(cv::Mat)' 

任何修復?

回答