Basic description of operator = is missing (Bug #9)


Added by Victor Eruhimov over 15 years ago. Updated about 15 years ago.


Status:Done Start date:
Priority:High Due date:
Assignee:Mithun Jacob % Done:

0%

Category:documentation
Target version:-
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

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

Revision 60e92f77
Added by Andrey Kamaev over 12 years ago

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

Also available in: Atom PDF