From: yash Date: Tue, 18 Feb 2014 09:34:27 +0000 (+0530) Subject: edited the doc for mat::copyto and clarified the part regarding reallocation by ... X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~1314^2~591^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=394c74b349d1d0e912324b9e2136700be0a39e8b;p=platform%2Fupstream%2Fopencv.git edited the doc for mat::copyto and clarified the part regarding reallocation by .create --- diff --git a/modules/core/doc/basic_structures.rst b/modules/core/doc/basic_structures.rst index d23da8d..54a1f42 100644 --- a/modules/core/doc/basic_structures.rst +++ b/modules/core/doc/basic_structures.rst @@ -1355,7 +1355,7 @@ The method copies the matrix data to another matrix. Before copying the data, th so that the destination matrix is reallocated if needed. While ``m.copyTo(m);`` works flawlessly, the function does not handle the case of a partial overlap between the source and the destination matrices. -When the operation mask is specified and the ``Mat::create`` call shown above is invoked to reallocate the matrix, the newly allocated matrix is initialized with all zeros before copying the data. +When the operation mask is specified, if the ``Mat::create`` call shown above reallocates the matrix, the newly allocated matrix is initialized with all zeros before copying the data. .. _Mat::convertTo: