First time here? Check out the FAQ!
answered 2013-12-14 01:14:32 -0600
OpenCV cv::Mat class uses reference counting approach. So, both objects shares a single buffer with image without actual copying. If you need honest copy, call cv::Mat::copyTo method.
cv::Mat
cv::Mat::copyTo