Basic description of operator = is missing (Bug #9)
Description
It is not straightforward from the documentation what happens when I write
cv::Mat m1(5, 10);
cv::Mat m2 = m1;
is data copied there or I should use clone for that? I am missing this description a lot.
Associated revisions
Merge pull request #9 from taka-no-me/perf_tests
History
Updated by Mithun Jacob about 15 years ago
In page 449 of the documentation (/trunk/opencv/doc/opencv.pdf):
by using a copy constructor or assignment operator(emphasis added), where on the right side it can be a matrix or expression, see below. Again, as noted in the introduction, matrix assignment is O(1) operation because it only copies the header and increases the reference counter. Mat::clone() method can be used to get a full (a.k.a. deep) copy of the matrix when you need it.
- Status deleted (
Open)
Updated by anonymous - about 15 years ago
- Status set to Done
- (deleted custom field) set to invalid