Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

pass cv::MAT as pointer to a function in C++

I am new to OpenCV, cv::MAT is class including many components, not like an pure array which I could directly use the pointer to pass it to another function, modify it, and still keep the values after that function.

How can I pass cv::MAT as a pointer?

Appreciate a lot for anyone's comments.