Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Copy one OutputArrayOfArrays object to another

I want to copy one OutputArrayOfArrays object to another. Something like this:

void function(OutputArrayOfArrays contour){ 
std::vector<std::vector<cv::Point>> contours; 
OutputArrayOfArrays _contour(contours);

....Doing something....

contour = _contour; 
}

Copy one OutputArrayOfArrays object to another

I want to copy one OutputArrayOfArrays object to another. Something like this:

void function(OutputArrayOfArrays contour){ 
std::vector<std::vector<cv::Point>> contours; 
OutputArrayOfArrays _contour(contours);

....Doing something....

contour = _contour; 
}

But I'm getting following error:

no viable overloaded '='
    contour = _contour;