Ask Your Question

Revision history [back]

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.