Apologies if this is a stupid question, I am not the most experienced with using pointers in c++.
I am using openCv, and have a cv::Mat initialized as:
cv::Mat* frame;
I also have another Mat, filled with data initialized as:
cv::Mat frameRaw;
Obviously one is a pointer, and the other is not.
I need to copy the data from frameRaw into frame.
I have tried *frame = frameRaw; but it gives me an exception error.
How should I do this?
Thanks.
framebefore use it? - apple applenewis avoided in modern C++. Opencv follows that idiom and make things easier to handle. - kebs