In C if you wanted to emplace one mat into another, the code would simply be:
clone_img.emplace(out_mat);
Now, I know in C# there is no real equivalent to the "emplace" method. If I was working with other data types in a more standard collection, I can find the answer for what I want to do on Google. Working with a cv::Mat is a bit different though, and I can't find anything about that.
There is a Mat.PushBack method, but it doesn't construct the new object in-place within the collection. Or does that not matter?
What is the C#/EmguCV equivalent of this emplacement, and what would be the differences under the hood to be aware of?
CodePudding user response:
I found the answer for what I wanted to do, although it may not exactly answer this above question.
What I wanted to do, was create an empty mat, and then call Mat.emplace() to put something else in it. It was as simple as doing:
Mat newMat = old_mat;