I'm working with OpenCV (3.3.1) in C++. I have an initialized Mat object and an array
Mat mat(2, 3, CV_32F, Scalar::all(0.5));
float arr[6] = {1,2,3,4,5,6};
I would like to assign the data from the array to the Mat object after the latter has been initialized. How can one do this efficiently?
I know that I can initialize the Mat object with the array using Mat mat(2, 3, CV_32F, arr); but I want to do the assignment after the initialization.