Ask Your Question

Needing Help With a Code

asked 2013-02-19 06:55:19 -0500

izzo gravatar image

updated 2013-02-19 06:55:57 -0500

Please someone help me to understand what's the use of this code step by step, and why do we create just the header parts ?, and what does the copy constructor do and how to use it ?

Mat A, C; //creates just the header parts
A = imread(argv[1], CV_LOAD_IMAGE_COLOR); // here we’ll know the method used (allocate matrix)
Mat B(A); // Use the copy constructor
C = A; // Assignment operator


edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2013-02-19 12:37:30 -0500

Bibliarij gravatar image

Copy constructor - create new object with data identical to source object

edit flag offensive delete link more
Login/Signup to Answer

Question Tools


Asked: 2013-02-19 06:55:19 -0500

Seen: 120 times

Last updated: Feb 19 '13