First time here? Check out the FAQ!
answered 2017-04-06 01:35:28 -0600
the official way to do it would be:
int *p = mat.ptr<int>(); // pointer to 1st element