In c++ we can take input parameters and simply return the values to the calling function, but opencv
functions take output parameters as function arguments. Are there any performance/interoperability reasons for this? If not, then what are the reasons for this decision?
Mat img = cv::resize(someMat, ...);
cv::resize(someMat, img, ...);